Feature Bundle
A feature bundle is a logical grouping of features that share some data source and entity.
feature_bundle.py
from glacius import FeatureBundle, Entity
user_entity = Entity(keys=["user_id"])
user_bundle = FeatureBundle(
name="user_feature_bundle",
description="user features on item engagement data",
source=item_engagement_data_source,
entity=user_entity,
)
Entities consist of a join key that allow Glacius to perform the point in time join. For more advanced users who want to compute composite features, this feature is also available.
Below is an example of a composite entity.
feature_bundle.py
user_product_entity = Entity(keys=["user_id", "product_id"])