Featurizers 类
特征化器工厂。
- 继承
-
builtins.objectFeaturizers
构造函数
Featurizers()
方法
| get |
在给定了 id 和类型的情况下获取特征化器。 使用配置中定义的 param 进行初始化。 |
| get_transformer |
在给定了工厂方法、特征化器类型、参数和关键字参数的情况下获取特征化器。 |
get
在给定了 id 和类型的情况下获取特征化器。 使用配置中定义的 param 进行初始化。
get(config: azureml.automl.core.configuration.feature_config.FeatureConfig, featurization_config: Optional[azureml.automl.core.featurization.featurizationconfig.FeaturizationConfig] = None) -> Any
参数
- config
必需
包含所需特征详细信息的配置。
- featurization_config
必需
由用户提供的经过自定义的特征化配置。
- featurization_config
默认值: None
返回
特征化器实例或“无”。
get_transformer
在给定了工厂方法、特征化器类型、参数和关键字参数的情况下获取特征化器。
get_transformer(featurizer_type: str, factory_method_name: str, args: Optional[Any] = None, kwargs: Optional[Any] = None) -> Any
参数
- featurizer_type
必需
特征化器类型。
- factory_method_name
必需
转换器工厂方法名称。
- args
必需
要发送到特征化器的参数。
- kwargs
默认值: None
要发送到特征化器的关键字参数。
- kwargs
默认值: None
返回
特征化器实例或“无”。
属性
FEATURE_NAME_TO_FACTORY
FEATURE_NAME_TO_FACTORY = {'categorical': <class 'azureml.automl.runtime.featurizer.transformer.categorical.categorical_featurizers.CategoricalFeaturizers'>, 'datetime': <class 'azureml.automl.runtime.featurizer.transformer.datetime.datetime_featurizers.DateTimeFeaturizers'>, 'generic': <class 'azureml.automl.runtime.featurizer.transformer.generic.generic_featurizers.GenericFeaturizers'>, 'numeric': <class 'azureml.automl.runtime.featurizer.transformer.numeric.numeric_featurizers.NumericFeaturizers'>, 'text': <class 'azureml.automl.runtime.featurizer.transformer.text.text_featurizers.TextFeaturizers'>}
反馈
提交和查看相关反馈