Skip to content

Instantly share code, notes, and snippets.

@nl-2021
Created December 9, 2021 09:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nl-2021/e7f09afb8bee4736a454f9a39aaf3d47 to your computer and use it in GitHub Desktop.
Save nl-2021/e7f09afb8bee4736a454f9a39aaf3d47 to your computer and use it in GitHub Desktop.
from pprint import pprint
from feast import FeatureStore
store = FeatureStore(repo_path=".")
feature_vector = store.get_online_features(
features=[
"driver_hourly_stats:conv_rate",
"driver_hourly_stats:acc_rate",
"driver_hourly_stats:avg_daily_trips",
],
entity_rows=[
{"driver_id": 1004},
{"driver_id": 1005},
],
).to_dict()
pprint(feature_vector)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment