Python SDK for Elemeno's Feast
Project description
Overview
Feast is an open source feature store for machine learning. Feast is the fastest path to productionizing analytic data for model training and online inference.
Please see our documentation for more information about the project.
📐 Architecture
The above architecture is the minimal Feast deployment. Want to run the full Feast on Snowflake/GCP/AWS? Click here.
🐣 Getting Started
1. Install Feast
pip install feast
2. Create a feature repository
feast init my_feature_repo
cd my_feature_repo
3. Register your feature definitions and set up your feature store
feast apply
4. Explore your data in the web UI (experimental)
5. Build a training dataset
from feast import FeatureStore
import pandas as pd
from datetime import datetime
entity_df = pd.DataFrame.from_dict({
"driver_id": [1001, 1002, 1003, 1004],
"event_timestamp": [
datetime(2021, 4, 12, 10, 59, 42),
datetime(2021, 4, 12, 8, 12, 10),
datetime(2021, 4, 12, 16, 40, 26),
datetime(2021, 4, 12, 15, 1 , 12)
]
})
store = FeatureStore(repo_path=".")
training_df = store.get_historical_features(
entity_df=entity_df,
features = [
'driver_hourly_stats:conv_rate',
'driver_hourly_stats:acc_rate',
'driver_hourly_stats:avg_daily_trips'
],
).to_df()
print(training_df.head())
# Train model
# model = ml.fit(training_df)
event_timestamp driver_id conv_rate acc_rate avg_daily_trips
0 2021-04-12 08:12:10+00:00 1002 0.713465 0.597095 531
1 2021-04-12 10:59:42+00:00 1001 0.072752 0.044344 11
2 2021-04-12 15:01:12+00:00 1004 0.658182 0.079150 220
3 2021-04-12 16:40:26+00:00 1003 0.162092 0.309035 959
6. Load feature values into your online store
CURRENT_TIME=$(date -u +"%Y-%m-%dT%H:%M:%S")
feast materialize-incremental $CURRENT_TIME
Materializing feature view driver_hourly_stats from 2021-04-14 to 2021-04-15 done!
7. Read online features at low latency
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": 1001}]
).to_dict()
pprint(feature_vector)
# Make prediction
# model.predict(feature_vector)
{
"driver_id": [1001],
"driver_hourly_stats__conv_rate": [0.49274],
"driver_hourly_stats__acc_rate": [0.92743],
"driver_hourly_stats__avg_daily_trips": [72]
}
📦 Functionality and Roadmap
The list below contains the functionality that contributors are planning to develop for Feast
-
Items below that are in development (or planned for development) will be indicated in parentheses.
-
We welcome contribution to all items in the roadmap!
-
Want to influence our roadmap and prioritization? Submit your feedback to this form.
-
Want to speak to a Feast contributor? We are more than happy to jump on a call. Please schedule a time using Calendly.
-
Data Sources
-
Offline Stores
33429a1f0c314c29901b17c9b9e2032b4163c4c9
- In-memory / Pandas
- Custom offline store support
- Online Stores
- DynamoDB
- Redis
- Datastore
- SQLite
- Azure Cache for Redis (community plugin)
- Postgres (contrib plugin)
- Custom online store support
- Bigtable (in progress)
- Cassandra
- Streaming
- Custom streaming ingestion job support
- Push based streaming data ingestion
- Streaming ingestion on AWS
- Streaming ingestion on GCP
- Feature Engineering
- Deployments
- Feature Serving
- Data Quality Management (See RFC)
- Data profiling and validation (Great Expectations)
- Training-serving skew detection (in progress)
- Metric production
- Drift detection
- Feature Discovery and Governance
- Python SDK for browsing feature registry
- CLI for browsing feature registry
- Model-centric feature tracking (feature services)
- Amundsen integration (see Feast extractor)
- Feast Web UI (alpha)
- REST API for browsing feature registry
- Feature versioning
🎓 Important Resources
Please refer to the official documentation at Documentation
👋 Contributing
Feast is a community project and is still under active development. Please have a look at our contributing and development guides if you want to contribute to the project:
- Contribution Process for Feast
- Development Guide for Feast
- Development Guide for the Main Feast Repository
✨ Contributors
Thanks goes to these incredible people:
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distributions
File details
Details for the file elemeno_ai_feast-0.18.4-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: elemeno_ai_feast-0.18.4-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 9.1 MB
- Tags: CPython 3.10, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.8.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 83930068a1f2c4c1b2c6d3d48da7710cba423fd67835231a35deac0cd41ebf98 |
|
MD5 | 4581e7a0358cdb176d29773e782f142a |
|
BLAKE2b-256 | a631a42e8585a0929ce17615d54103266c8b3ce16cea2cfdd708bd991e16c486 |
File details
Details for the file elemeno_ai_feast-0.18.4-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: elemeno_ai_feast-0.18.4-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 9.1 MB
- Tags: CPython 3.9, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.8.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3f0bb4c45bcef3b4f1e47afdb2a7f869bd89f1ce68ba98407faf6a5fcb576414 |
|
MD5 | c0e49be293ee00e6b2a39694efab30c4 |
|
BLAKE2b-256 | b5e870d5746919d797982c882e92437ec3c3ef3d241aa6748b29fe3c5c6bcd84 |
File details
Details for the file elemeno_ai_feast-0.18.4-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: elemeno_ai_feast-0.18.4-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 9.1 MB
- Tags: CPython 3.8, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.8.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b211c7d3148a72da9ee2ec6324e1d2a9d5acdc1a0fde2f89c143c309ddd50e20 |
|
MD5 | 77221f42149ff708443010ee76d5ddd6 |
|
BLAKE2b-256 | 6c31c07743cec325c45d01651e52193355568321862116e0b94a7008d2b3a113 |
File details
Details for the file elemeno_ai_feast-0.18.4-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: elemeno_ai_feast-0.18.4-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 9.1 MB
- Tags: CPython 3.7m, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.8.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | be5ca28015a7c3053957693c68755d489dbde56029cb72ebb89dd4a35670c29a |
|
MD5 | 3b82dbd614fa8109773385d8e5a60b0c |
|
BLAKE2b-256 | 502504bfc473d8980a687587b06f2a277381ae737fc2995f1b246bc503f95b5c |