Skip to content

RecommenderSchemaField

Source code in docs_src/capo_customer_profiles/types/recommender_schema_field.py
class RecommenderSchemaField(TypedDict, closed=True):
    target_field_name: "capo_customer_profiles.types.text.text"
    """<p>The name of the target field in the dataset, such as <code>Location.City</code> or <code>Attributes.MealTime</code>.</p>"""
    content_type: NotRequired["capo_customer_profiles.types.content_type.ContentType"]
    """<p>The data type of the column value. Valid values are <code>String</code> and <code>Number</code>. The default value is <code>String</code>.</p>"""
    feature_type: NotRequired["capo_customer_profiles.types.feature_type.FeatureType"]
    """<p>How the column is treated for model training. Valid values are <code>CATEGORICAL</code> and <code>TEXTUAL</code>.</p>"""

content_type instance-attribute

content_type: NotRequired[ContentType]

The data type of the column value. Valid values are String and Number. The default value is String.

feature_type instance-attribute

feature_type: NotRequired[FeatureType]

How the column is treated for model training. Valid values are CATEGORICAL and TEXTUAL.

target_field_name instance-attribute

target_field_name: text

The name of the target field in the dataset, such as Location.City or Attributes.MealTime.