-
-
Save nl-2021/e7f09afb8bee4736a454f9a39aaf3d47 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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