Skip to content

featurebyte.Target.update_target_type

update_target_type(
target_type: Union[TargetType, str]
)

Description

Update target type of target. 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: Union[TargetType, str]
    Type of the Target used to indicate the modeling type of the target

Examples

>>> target = catalog.get_target("InvoiceCount_60days")
>>> target.update_target_type("REGRESSION")