question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Historical retrieval without an entity dataframe

See original GitHub issue

Is your feature request related to a problem? Please describe. The current Feast get_historical_features() method requires that users provide an entity dataframe as follows

training_df = store.get_historical_features(
    entity_df=entity_df, 
    feature_refs = [
        'drivers_activity:trips_today'
        'drivers_profile:rating'
    ],
)

However, many users would like the feature store to provide entities to them for training, instead of having to query or provide entities as part of the entity dataframe.

Describe the solution you’d like Allow users to specify an existing feature view from which an entity dataframe will be queried.

training_df = store.get_historical_features(
    entity_df="drivers_activity", 
    feature_refs = [
        'drivers_activity:trips_today'
        'drivers_profile:rating'
    ],
)

With the addition of time range filtering.

training_df = store.get_historical_features(
    entity_df="drivers_activity", 
    feature_refs = [
        'drivers_activity:trips_today'
        'drivers_profile:rating'
    ],
    from_date=(today - timedelta(days = 7)),
    to_date=datetime.now(),
)

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:24
  • Comments:16 (10 by maintainers)

github_iconTop GitHub Comments

10reactions
lara-marinellicommented, Dec 13, 2021

Any workaround for the problem of getting “training datasets” (with no passing entity ids)?

7reactions
fcascommented, Mar 29, 2022

(2) Any workaround for the problem of getting “training datasets” (with no passing entity ids)?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Feature retrieval - Feast
A dataset is a collection of rows that is produced by a historical retrieval from Feast in order to train a model. A...
Read more >
Creating a Feature Store with Feast | by Kedion - Medium
As the next step, we need to get the historical features for our entity DataFrame and save them as a Feast dataset. This...
Read more >
Remote Data Access - Pandas-datareader - Read the Docs
Tiingo is a tracing platform that provides a data api with historical end-of-day ... Alpha Vantage Batch Stock Quotes endpoint allows the retrieval...
Read more >
Flyte Pipeline with Feast
File data sources allow for the retrieval of historical feature values from files ... Enriches an entity dataframe with historical feature values for...
Read more >
Feature Store - Made With ML
Once we've registered our feature definition, along with the data source, entity definition, etc., we can use it to fetch historical features. This...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found