Skip to content

featurebyte.TargetNamespace.create

create(
name: str,
primary_entity: List[str],
dtype: DBVarType,
window: Optional[str]=None
) -> TargetNamespace

Description

Create a new TargetNamespace.

Parameters

  • name: str
    Name of the TargetNamespace

  • primary_entity: List[str]
    List of entities.

  • dtype: DBVarType
    Data type of the TargetNamespace

  • window: Optional[str]
    Window of the TargetNamespace

Returns

  • TargetNamespace
    The created TargetNamespace

Examples

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