Search…
Create a feature repository
A feature repository is a directory that contains the configuration of the feature store and individual features. This configuration is written as code (Python/YAML) and it's highly recommended that teams track it centrally using git. See Feature Repository for a detailed explanation of feature repositories.
The easiest way to create a new feature repository to use feast init command:
Local template
GCP template
AWS template
1
feast init
2
3
Creating a new Feast repository in /<...>/tiny_pika.
Copied!
1
feast init -t gcp
2
3
Creating a new Feast repository in /<...>/tiny_pika.
Copied!
1
feast init -t aws
2
AWS Region (e.g. us-west-2): ...
3
Redshift Cluster ID: ...
4
Redshift Database Name: ...
5
Redshift User Name: ...
6
Redshift S3 Staging Location (s3://*): ...
7
Redshift IAM Role for S3 (arn:aws:iam::*:role/*): ...
8
Should I upload example data to Redshift (overwriting 'feast_driver_hourly_stats' table)? (Y/n):
9
10
Creating a new Feast repository in /<...>/tiny_pika.
Copied!
The init command creates a Python file with feature definitions, sample data, and a Feast configuration file for local development:
1
$ tree
2
.
3
└── tiny_pika
4
├── data
5
│ └── driver_stats.parquet
6
├── example.py
7
└── feature_store.yaml
8
9
1 directory, 3 files
Copied!
Enter the directory:
1
# Replace "tiny_pika" with your auto-generated dir name
2
cd tiny_pika
Copied!
You can now use this feature repository for development. You can try the following:
  • Run feast apply to apply these definitions to Feast.
  • Edit the example feature definitions in example.py and run feast apply again to change feature definitions.
  • Initialize a git repository in the same directory and checking the feature repository into version control.
Last modified 20d ago
Export as PDF
Copy link