Skip to content

featurebyte.Target.update_positive_label

update_positive_label(
positive_label: Union[str, int, bool]
)

Description

Update positive label of target. The positive label is the value of the positive class in a target for binary classification. Only string, integer and boolean values are supported.

Parameters

  • positive_label: Union[str, int, bool]
    Positive label of the Target for binary classification

Examples

>>> target = catalog.get_target("CustomerActive_60days")
>>> target.update_target_type("CLASSIFICATION")