-
Notifications
You must be signed in to change notification settings - Fork 998
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added RFC for Feast Python SDK #14
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we change the sample workflow to follow more closely to what @pradithya and I have done? other than that, looks great
Absolutely. |
rfcs/0000-python-sdk.md
Outdated
The feature set is simply an object that locally tracks which entity, granularity, and features you are interested in. | ||
|
||
```python | ||
feature_set = fs.create_feature_set(entity='driver', granularity='minute', features=['latitude', 'longitude', 'event_time']) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you think it make more sense to have FeatureSet creation outside of client, and then to get training/serving data we pass the instance into the corresponding client method?
# create feature set
feature_set = FeatureSet(entity='driver', granularity='minute', features=['latitude', 'longitude', 'event_time'])
# training dataset
dataset_info = fs.create_training_dataset(feature_set, start_date='2018-01-01', end_date='2018-02-01')
dataset_info.download(dest=file_path, type='feather')
df = dataset_info.download_to_df()
# serving
feature_data = fs.get_serving_data(feature_set, keys, type='last')
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've incorporated your feedback @pradithya, @zhilingc. I have also written out a reference level explanation of the important classes and methods. Can you please have a look? |
This pull request adds an RFC for a Python SDK