Skip to content

Commit 1b809a7

Browse files
felixwang9817gitbook-bot
authored andcommitted
GitBook: [master] 62 pages modified
1 parent c2c1384 commit 1b809a7

File tree

2 files changed

+24
-14
lines changed

2 files changed

+24
-14
lines changed

docs/getting-started/concepts/data-model-and-concepts/feature-view.md

Lines changed: 20 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# Feature view
22

3-
## Feature View
3+
## Feature views
44

5-
A feature view is an object that represents a logical group of time-series feature data as it is found in a [data source](data-source.md). Feature views consist of zero or more [entities](entity.md), one or more [features](feature-view.md#feature), and a [data source](data-source.md). Feature views allow Feast to model your existing feature data in a consistent way in both an offline \(training\) and online \(serving\) environment. If a feature view contains features that are properties of a specific object, that object is typically defined as an entity and included in the feature view. If a feature view contains features that are not related to a specific entity, for example global features, the feature view can be defined without entities.
5+
A feature view is an object that represents a logical group of time-series feature data as it is found in a [data source](data-source.md). Feature views consist of zero or more [entities](entity.md), one or more [features](feature-view.md#feature), and a [data source](data-source.md). Feature views allow Feast to model your existing feature data in a consistent way in both an offline \(training\) and online \(serving\) environment. Feature views generally contain features that are properties of a specific object, in which case that object is defined as an entity and included in the feature view. If the features are not related to a specific object, the feature view might not have entities; see [feature views without entities](feature-view.md#feature-views-without-entities) below.
66

77
{% tabs %}
88
{% tab title="driver\_trips\_feature\_view.py" %}
@@ -20,14 +20,30 @@ driver_stats_fv = FeatureView(
2020
)
2121
```
2222
{% endtab %}
23+
{% endtabs %}
24+
25+
Feature views are used during
26+
27+
* The generation of training datasets by querying the data source of feature views in order to find historical feature values. A single training dataset may consist of features from multiple feature views.
28+
* Loading of feature values into an online store. Feature views determine the storage schema in the online store.
29+
* Retrieval of features from the online store. Feature views provide the schema definition to Feast in order to look up features from the online store.
30+
31+
{% hint style="info" %}
32+
Feast does not generate feature values. It acts as the ingestion and serving system. The data sources described within feature views should reference feature values in their already computed form.
33+
{% endhint %}
34+
35+
## Feature views without entities
2336

24-
{% tab title="global\_feature\_view.py" %}
37+
If a feature view contains features that are not related to a specific entity, the feature view can be defined without entities.
38+
39+
{% tabs %}
40+
{% tab title="global\_stats.py" %}
2541
```python
2642
global_stats_fv = FeatureView(
2743
name="global_stats",
2844
entities=[],
2945
features=[
30-
Feature(name="total_trips_today", dtype=ValueType.INT64),
46+
Feature(name="total_trips_today_by_all_drivers", dtype=ValueType.INT64),
3147
],
3248
batch_source=BigQuerySource(
3349
table_ref="feast-oss.demo_data.global_stats"
@@ -37,16 +53,6 @@ global_stats_fv = FeatureView(
3753
{% endtab %}
3854
{% endtabs %}
3955

40-
Feature views are used during
41-
42-
* The generation of training datasets by querying the data source of feature views in order to find historical feature values. A single training dataset may consist of features from multiple feature views.
43-
* Loading of feature values into an online store. Feature views determine the storage schema in the online store.
44-
* Retrieval of features from the online store. Feature views provide the schema definition to Feast in order to look up features from the online store.
45-
46-
{% hint style="info" %}
47-
Feast does not generate feature values. It acts as the ingestion and serving system. The data sources described within feature views should reference feature values in their already computed form.
48-
{% endhint %}
49-
5056
## Feature
5157

5258
A feature is an individual measurable property. It is typically a property observed on a specific entity, but does not have to be associated with an entity. For example, a feature of a `customer` entity could be the number of transactions they have made on an average month, while a feature that is not observed on a specific entity could be the total number of posts made by all users in the last month.

docs/getting-started/faq.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ The [quickstart](quickstart.md) is the easiest way to learn about Feast. For mor
1212

1313
Feature tables from Feast 0.9 have been renamed to feature views in Feast 0.10+. For more details, please see the discussion [here](https://github.com/feast-dev/feast/issues/1583).
1414

15+
### Do feature views have to include entities?
16+
17+
No, there are [feature views without entities](concepts/data-model-and-concepts/feature-view.md#feature-views-without-entities).
18+
1519
## Functionality
1620

1721
### Does Feast provide security or access control?

0 commit comments

Comments
 (0)