Skip to content

featurebyte.TargetNamespace.create

create(
name: str,
entities: Union[List[str], NoneType]=None,
window: Union[str, NoneType]=None
) -> TargetNamespace

Description

Create a new TargetNamespace.

Parameters

  • name: str
    Name of the TargetNamespace

  • entities: Union[List[str], NoneType]
    List of entities.

  • window: Union[str, NoneType]
    Window of the TargetNamespace

Returns

  • TargetNamespace
    The created TargetNamespace

Examples

>>> target_namespace = fb.TargetNamespace.create(
...     name="amount_7d_target",
...     window="7d",
...     entities=["customer"]
... )