« Search  |  Retro Site View (Experimental)  |  Switch to Reader Mode Images: 56K  |  Retro Mode: ON  |  Original Site »
GitHub   (github.com · converted in 941 ms)
Sections: Homepage  |  Actions CI/CD and automation  |  All Features  |  Documentation  |  Training  |  Certifications  |  Build with Copilot  |  Customize Copilot  |  Integrations  |  Trending repos  |  GitHub Sponsors  |  Developer articles  |  Enterprises  |  Small and medium teams  |  Startups  |  Nonprofits

GitHub - feast-dev/feast: The Open Source Feature Store for AI/ML

Branches
Tags
Go to Branches page Go to Tags page

Latest commit


History


5,025 Commits
View commit history for this file.

Folders and files


Name Name Last commit message Last commit date
.claude .claude
.cursor/ rules .cursor/ rules
.github .github
.prow .prow
community community
docs docs
examples examples
go go
infra infra
java java
protos protos
scripts scripts
sdk/ python sdk/ python
skills skills
ui ui
.codecov.yaml .codecov.yaml
.commitlintrc.yaml .commitlintrc.yaml
.dockerignore .dockerignore
.gitbook.yaml .gitbook.yaml
.gitignore .gitignore
.gitpod.Dockerfile .gitpod.Dockerfile
.gitpod.yml .gitpod.yml
.helmdocsignore .helmdocsignore
.pre-commit-config.yaml .pre-commit-config.yaml
.prow.yaml .prow.yaml
.readthedocs.yml .readthedocs.yml
.releaserc.js .releaserc.js
.secrets.baseline .secrets.baseline
AGENTS.md AGENTS.md
CHANGELOG.md CHANGELOG.md
CLAUDE.md CLAUDE.md
CODEOWNERS CODEOWNERS
CODE_OF_CONDUCT.md CODE_OF_CONDUCT.md
CONTRIBUTING.md CONTRIBUTING.md
LICENSE LICENSE
MANIFEST.in MANIFEST.in
Makefile Makefile
OWNERS OWNERS
README.md README.md
SECURITY.md SECURITY.md
environment-setup.md environment-setup.md
go.mod go.mod
go.sum go.sum
pixi.lock pixi.lock
pyproject.toml pyproject.toml

Repository files navigation


image


PyPI - Downloads
GitHub contributors
unit-tests
integration-tests-and-build
linter
Docs Latest
Python API
License
GitHub Release

Join us on Slack!


Permalink: Join us on Slack!

👋👋👋 Come say hi on Slack!

Check out our DeepWiki!

Overview


Permalink: Overview

feast-dev%2Ffeast | Trendshift

Feast (Fea ture St ore) is an open source feature store for machine learning. Feast is the fastest path to manage existing infrastructure to productionize analytic data for model training and online inference.

Feast allows ML platform teams to:

  • Make features consistently available for training and serving by managing an offline store (to process historical data for scale-out batch scoring or model training), a low-latency online store (to power real-time prediction), and a battle-tested feature server (to serve pre-computed features online).
  • Avoid data leakage by generating point-in-time correct feature sets so data scientists can focus on feature engineering rather than debugging error-prone dataset joining logic. This ensure that future feature values do not leak to models during training.
  • Decouple ML from data infrastructure by providing a single data access layer that abstracts feature storage from feature retrieval, ensuring models remain portable as you move from training models to serving models, from batch models to realtime models, and from one data infra system to another.

Please see our documentation for more information about the project.

📐 Architecture


Permalink: 📐 Architecture

image

The above architecture is the minimal Feast deployment. Want to run the full Feast on Snowflake/GCP/AWS? Click here .

🐣 Getting Started


Permalink: 🐣 Getting Started

1. Install Feast

Permalink: 1. Install Feast
pip install feast

2. Create a feature repository

Permalink: 2. Create a feature repository
feast init my_feature_repo
cd my_feature_repo/feature_repo

3. Register your feature definitions and set up your feature store

Permalink: 3. Register your feature definitions and set up your feature store
feast apply

4. Explore your data in the web UI (experimental)

Permalink: 4. Explore your data in the web UI (experimental)

Web UI

feast ui

5. Build a training dataset

Permalink: 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

Permalink: 6. Load feature values into your online store

Option 1: Incremental materialization (recommended)

CURRENT_TIME=$(date -u +"%Y-%m-%dT%H:%M:%S")
feast materialize-incremental $CURRENT_TIME

Option 2: Full materialization with timestamps

CURRENT_TIME=$(date -u +"%Y-%m-%dT%H:%M:%S")
feast materialize 2021-04-12T00:00:00 $CURRENT_TIME

Option 3: Simple materialization without timestamps

feast materialize --disable-event-timestamp

The --disable-event-timestamp flag allows you to materialize all available data (from 1970-01-01 up to the current UTC time) without specifying start and end timestamps. Rows keep the event timestamps from the source.

Materializing feature view driver_hourly_stats from 2021-04-14 to 2021-04-15 done!

7. Read online features at low latency

Permalink: 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


Permalink: 📦 Functionality and Roadmap

The list below contains the functionality that contributors are planning to develop for Feast.

🎓 Important Resources


Permalink: 🎓 Important Resources

Please refer to the official documentation at Documentation

👋 Contributing


Permalink: 👋 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:

🌟 GitHub Star History


Permalink: 🌟 GitHub Star History

Star History Chart

✨ Contributors


Permalink: ✨ Contributors

Thanks goes to these incredible people:

image

About


The Open Source Feature Store for AI/ML

feast.dev

Topics

big-data data-engineering data-quality data-science feature-store features machine-learning ml mlops python

Resources

Readme Apache-2.0 license

Code of conduct

Code of conduct

Contributing

Contributing

Security policy

Security policy Activity Custom properties

Stars

7.4k stars

Watchers

87 watching

Forks

1.5k forks Report repository

Releases


Packages


Used by


Contributors


Languages