Read features from the online store
Retrieving online features
1. Ensure that feature values have been loaded into the online store
Load data into the online store2. Define feature references
features = [
"driver_hourly_stats:conv_rate",
"driver_hourly_stats:acc_rate"
]3. Read online features
fs = FeatureStore(repo_path="path/to/feature/repo")
online_features = fs.get_online_features(
features=features,
entity_rows=[
# {join_key: entity_value, ...}
{"driver_id": 1001},
{"driver_id": 1002}]
).to_dict()Last updated
Was this helpful?