CustomFeature
CustomFeature
Examples
feature = CustomFeature.from_columns(
custom_name=”user_behavior_cluster”,
cols=[“clicks”, “views”, “time_spent”],
n_clusters=5
)feature_dict = {
“name”: “text_sentiment”,
“type”: “FROM_TEXT_EMBEDDING”,
“column”: “embedding_col”,
“source_column”: “review_text”
}
feature = CustomFeature.from_dict(feature_dict)class Config
allow_mutation = False
use_enum_values = True
discriminator = 'type'
classmethod from_columns(custom_name, cols, n_clusters=5)
classmethod from_dict(deserialized_json)
Parameters
to_dict()
Last updated
Was this helpful?