Skip to content

Instantly share code, notes, and snippets.

@thirteen37
Last active February 7, 2020 04:00
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 thirteen37/6a50c962980e6beb457bb19d76203669 to your computer and use it in GitHub Desktop.
Save thirteen37/6a50c962980e6beb457bb19d76203669 to your computer and use it in GitHub Desktop.
# Batch retrieval from warehouse store at training
features = feast_client.get_batch_features(
entity_rows = df, # dataframe containing entity values to join features to
feature_refs = [ "humidity", "rainfall", "temperature" ]
)
# Online retrieval from low-latency store at serving
features = feast_client.get_online_features(
entity_rows = entity_rows, # list of entity values to join features to
feature_refs = [ "humidity", "rainfall", "temperature" ]
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment