Warning: This is an experimental feature. It's intended for early testing and feedback, and could change without warnings in future releases.
To enable this feature, run feast alpha enable on_demand_transforms
On demand feature views allows users to use existing features and request time data (features only available at request time) to transform and create new features. Users define python transformation logic which is executed in both historical retrieval and online retrieval paths.
Currently, these transformations are executed locally. Future milestones include building a Feature Transformation Server for executing transformations at higher scale.
There are new CLI commands:
feast on-demand-feature-views list
lists all registered on demand feature view after feast apply
is run
feast on-demand-feature-views describe [NAME]
describes the definition of an on demand feature view
See https://github.com/feast-dev/on-demand-feature-views-demo for an example on how to use on demand feature views.
We register RequestDataSource
inputs and the transform in on_demand_feature_view
:
The on demand feature view's name is the function name (i.e. transformed_conv_rate
).
And then to retrieve historical or online features, we can call this in a feature service or reference individual features: