Skip to content

Commit e01c9a6

Browse files
woopgitbook-bot
authored andcommitted
GitBook: [master] 14 pages and 2 assets modified
1 parent 5ff4556 commit e01c9a6

14 files changed

Lines changed: 1756 additions & 12 deletions

File tree

‎docs/.gitbook/assets/image.png‎

13.6 KB
Loading

‎docs/README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Overview
1+
# What is Feast?
22

33
Feast \(**Fea**ture **St**ore\) is a tool for managing and serving machine learning features.
44

‎docs/SUMMARY.md‎

Lines changed: 27 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,32 @@
11
# Table of contents
22

3-
* [Overview](README.md)
4-
* [Why Feast?](why-feast.md)
5-
* [Concepts](concepts.md)
6-
* [Getting Help](getting-help.md)
7-
* [Contributing](contributing.md)
3+
* [What is Feast?](README.md)
4+
5+
## Introduction
6+
7+
* [Why Feast?](introduction/why-feast.md)
8+
* [Getting Help](introduction/getting-help.md)
9+
* [Changelog](https://github.com/gojek/feast/blob/master/CHANGELOG.md)
810
* [Roadmap](roadmap.md)
911

10-
## Installing Feast
12+
## Concepts
13+
14+
* [Concepts](concepts/concepts.md)
15+
16+
## Installation
1117

12-
* [Overview](installing-feast/overview.md)
13-
* [Docker Compose](installing-feast/docker-compose.md)
14-
* [Google Kubernetes Engine \(GKE\)](installing-feast/gke.md)
15-
* [Troubleshooting](installing-feast/troubleshooting.md)
18+
* [Overview](installation/overview.md)
19+
* [Docker Compose](installation/docker-compose.md)
20+
* [Google Kubernetes Engine \(GKE\)](installation/gke.md)
21+
* [Troubleshooting](installation/troubleshooting.md)
1622

17-
## Using Feast
23+
## Tutorials
1824

25+
* [Basic](https://github.com/gojek/feast/blob/master/examples/basic/basic.ipynb)
1926
* [Using Feast](https://github.com/gojek/feast/blob/master/examples/basic/basic.ipynb)
2027

28+
## Administration
29+
2130
## Reference
2231

2332
* [Python SDK](https://api.docs.feast.dev/python/)
@@ -26,3 +35,10 @@
2635
* [Core gRPC API](https://api.docs.feast.dev/grpc/feast.core.pb.html)
2736
* [Serving gRPC API](https://api.docs.feast.dev/grpc/feast.serving.pb.html)
2837

38+
## Contributing
39+
40+
* [Contribution Process](contributing/contributing.md)
41+
* [Development Guide](contributing/development-guide.md)
42+
* [Style Guide](contributing/style-guide.md)
43+
* [Release Process](contributing/release-process.md)
44+

‎docs/concepts/concepts.md‎

Lines changed: 124 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,124 @@
1+
# Concepts
2+
3+
## Architecture
4+
5+
![Logical diagram of a typical Feast deployment](../.gitbook/assets/basic-architecture-diagram%20%282%29.svg)
6+
7+
The core components of a Feast deployment are
8+
9+
* **Feast Core:** Feast Core is a centralized service that acts as the authority on features within an organization. Typically there is only one "Core" deployment per organization, with all feature management happening through it.
10+
* **Feast Ingestion Jobs:** Feast ingestion jobs retrieve feature data from user defined data sources and populate serving stores with this feature data. These jobs are managed by Feast Core. Data can either be sources from existing sources \(like [Kafka](https://kafka.apache.org/)\), or it can be loaded into Feast through its API.
11+
* **Feast Serving:** Feast Serving is the data access layer through which end users and production systems retrieve feature data. Each Serving store is backed by one or more databases. These databases are updated by the Feast ingestion jobs. There are two types of stores: batch and online. Batch stores hold large volumes historical data, while online stores only hold the latest feature values.
12+
13+
## Data Model
14+
15+
### Feature Set
16+
17+
User data is typically in the form of dataframes, tables in data warehouses, or events on a stream. These data sources are loaded into Feast in order to serve features for model training or serving.
18+
19+
Feature sets allow for groups of fields in these data sources to be ingested and stored together. This allows for efficient storage and logical namespacing of data.
20+
21+
When data is loaded from these sources, each field in the feature set must be found in every record of the data source. Fields from these data sources must be either a timestamp, an entity, or a feature.
22+
23+
{% hint style="info" %}
24+
Feature sets are a grouping of feature sets based on how they are loaded into Feast. They ensure that data is efficiently stored during ingestion. Feature sets are not a grouping of features for retrieval of features. During retrieval it is possible to retrieve feature values from any number of feature sets.
25+
{% endhint %}
26+
27+
#### Customer Transactions Example
28+
29+
Below is an example of a basic `customer transactions` feature set that has been exported to YAML:
30+
31+
{% tabs %}
32+
{% tab title="customer\_transactions\_feature\_set.yaml" %}
33+
```yaml
34+
name: customer_transactions
35+
kind: feature_set
36+
entities:
37+
- name: customer_id
38+
valueType: INT64
39+
features:
40+
- name: daily_transactions
41+
valueType: FLOAT
42+
- name: total_transactions
43+
valueType: FLOAT
44+
maxAge: 3600s
45+
```
46+
{% endtab %}
47+
{% endtabs %}
48+
49+
The dataframe below \(`customer_data.csv`\) contains the features and entities of the above feature set
50+
51+
| datetime | customer\_id | daily\_transactions | total\_tra**nsactions** |
52+
| :--- | :--- | :--- | :--- |
53+
| 2019-01-01 01:00:00 | 20001 | 5.0 | 14.0 |
54+
| 2019-01-01 01:00:00 | 20002 | 2.6 | 43.0 |
55+
| 2019-01-01 01:00:00 | 20003 | 4.1 | 154.0 |
56+
| 2019-01-01 01:00:00 | 20004 | 3.4 | 74.0 |
57+
58+
In order to ingest feature data into Feast for this specific feature set:
59+
60+
```python
61+
# Load dataframe
62+
customer_df = pd.read_csv("customer_data.csv")
63+
64+
# Create feature set from YAML (using YAML is optional)
65+
cust_trans_fs = FeatureSet.from_yaml("customer_transactions_feature_set.yaml")
66+
67+
# Load feature data into Feast for this specific feature set
68+
client.ingest(cust_trans_fs, customer_data)
69+
```
70+
71+
### Feature
72+
73+
A feature is an individual measurable property or characteristic of a phenomenon being observed. Features are the most important concepts within a feature store. Feature data is used both as input to models during training and when models are served in production.
74+
75+
In the context of Feast, features are values that are associated with either one or more entities over time. In Feast, these values are either primitives or lists of primitives. Each feature can also have additional information attached to it. For example whether it is a categorical feature or numerical.
76+
77+
{% hint style="info" %}
78+
Features in Feast are defined within Feature Sets and are not treated as standalone concepts.
79+
{% endhint %}
80+
81+
### Entity
82+
83+
An entity type is any object in an organization that needs to be modeled and on which information should be stored. Entity types are usually recognizable concepts, either concrete or abstract, such as persons, places, things, or events which have relevance to the modeled system.
84+
85+
An entity is an instance of an entity type.
86+
87+
* Examples of entity types in the context of ride-hailing and food delivery: `customer`, `order`, `driver`, `restaurant`, `dish`, `area`.
88+
* A specific driver, for example a driver with ID `D011234` would be an entity of the entity type `driver`
89+
90+
An entity is the object on which features are observed. For example we could have a feature `total_trips_24h` on the driver `D01123` with a feature value of `11`.
91+
92+
In the context of Feast, entities are important because they are used as keys when looking up feature values. Entities are also used when joining feature values between different feature sets in order to build one large data set to train a model, or to serve a model.
93+
94+
{% hint style="info" %}
95+
Entities in Feast are defined within Feature Sets and are not treated as standalone concepts.
96+
{% endhint %}
97+
98+
### Types
99+
100+
Feast supports the following types for feature values
101+
102+
* BYTES
103+
* STRING
104+
* INT32
105+
* INT64
106+
* DOUBLE
107+
* FLOAT
108+
* BOOL
109+
* BYTES\_LIST
110+
* STRING\_LIST
111+
* INT32\_LIST
112+
* INT64\_LIST
113+
* DOUBLE\_LIST
114+
* FLOAT\_LIST
115+
* BOOL\_LIST
116+
117+
## Glossary
118+
119+
| Term | Description |
120+
| :--- | :--- |
121+
| Feast deployment | A complete Feast system as it is deployed. Consists out of a single Feast Core deployment and one or more Feast Serving deployments. |
122+
| Feast Core | The centralized service which acts as a registry and authority of features. Organizations should only deploy a single Feast Core instance. Feast Core also manages the ingestion of feature data and population of Feast Serving data stores. |
123+
| Feast Serving | Feast Serving is a service used to access both online and batch feature data. Feast Serving deployments are backed by one or more databases. |
124+

0 commit comments

Comments
 (0)