Skip to content

Feature#

[source]

Feature#

hsfs.feature.Feature(
    name,
    type=None,
    description=None,
    primary=None,
    partition=None,
    online_type=None,
    default_value=None,
)

Metadata object representing a feature in a feature group in the Feature Store.

See Training Dataset Feature for the feature representation of training dataset schemas.


Properties#

[source]

default_value#

Default value of the feature as string, if the feature was appended to the feature group.


[source]

name#

Name of the feature.


[source]

partition#

Whether the feature is part of the partition key of the feature group.


[source]

primary#

Whether the feature is part of the primary key of the feature group.


[source]

type#

Data type of the feature in the feature store.

Not a Python type

This type property is not to be confused with Python types. The type property represents the actual data type of the feature in the feature store.


Methods#

[source]

from_response_json#

Feature.from_response_json(json_dict)

[source]

to_dict#

Feature.to_dict()