Skip to content

featurebyte.TargetNamespace.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_namespace = fb.TargetNamespace.create(
...     name="active_7d_target",
...     window="7d",
...     dtype=DBVarType.BOOL,
...     primary_entity=["customer"],
...     target_type=fb.TargetType.CLASSIFICATION,
... )
>>> target_namespace.update_positive_label(True)