FeatureType 类
定义 AutoML 中特征工程识别的特征类型的名称。
在典型用例中,可以使用 FeatureType 属性通过 AutoMLConfig 类和 featurization 参数自定义特征。
- 继承
-
builtins.objectFeatureType
构造函数
FeatureType()
注解
自定义特征化时使用 FeatureType 属性。 例如,若要更新列类型,请使用 FeaturizationConfig 类,如示例中所示。
featurization_config = FeaturizationConfig()
featurization_config.add_column_purpose('column1', 'Numeric')
featurization_config.add_column_purpose('column2', 'CategoricalHash')
有关详细信息,请参阅配置自动化 ML 试验。
属性
AllNan
AllNan = 'AllNan'
Categorical
Categorical = 'Categorical'
CategoricalHash
CategoricalHash = 'CategoricalHash'
DROP_SET
DROP_SET = {'AllNan', 'Hashes', 'Ignore'}
DateTime
DateTime = 'DateTime'
FULL_SET
FULL_SET = {'AllNan', 'Categorical', 'CategoricalHash', 'DateTime', 'Hashes', 'Ignore', 'Numeric', 'Text'}
Hashes
Hashes = 'Hashes'
Ignore
Ignore = 'Ignore'
Numeric
Numeric = 'Numeric'
Text
Text = 'Text'
反馈
提交和查看相关反馈