Skip to content

featurebyte.TargetNamespace.update_target_type

update_target_type(
target_type: TargetType
)

Description

Update the target type of the target namespace. A target type can be one of the following:

The target type determines the nature of the prediction task and must be one of the following:

  1. REGRESSION - The target variable is continuous, predicting numerical values.
  2. CLASSIFICATION - The target variable has two possible categorical outcomes (binary classification).
  3. MULTI_CLASSIFICATION - The target variable has more than two possible categorical outcomes.

Parameters

  • target_type: TargetType
    Type of the Target used to indicate the modeling type of the target

Examples

>>> target_namespace = fb.TargetNamespace.create(
...     name="amount_7d_target",
...     window="7d",
...     dtype=DBVarType.FLOAT,
...     primary_entity=["customer"],
... )
>>> target_namespace.update_target_type(fb.TargetType.REGRESSION)