共用方式為


FeatureType 類別

定義 AutoML 中特徵工程辨識的功能類型名稱。

在一般使用案例中,您會使用 FeatureType 屬性來自訂 AutoMLConfig 類別和 featurization 參數的特徵。

繼承
builtins.object
FeatureType

建構函式

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'