Skip to content

Commit 39b6e72

Browse files
authored
Updated feature view documentation to include blurb about feature inferencing (#2096)
* Updated feature view documentation to include blurb about inferencing Signed-off-by: David Y Liu <davidyliuliu@gmail.com> * Updated according to CR comments Signed-off-by: David Y Liu <davidyliuliu@gmail.com>
1 parent e55de06 commit 39b6e72

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

docs/getting-started/concepts/feature-view.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,12 @@ global_stats_fv = FeatureView(
5353
{% endtab %}
5454
{% endtabs %}
5555

56+
## Feature inferencing
57+
58+
If the `features` parameter is not specified in the feature view creation, Feast will infer the features during `feast apply` by creating a feature for each column in the
59+
underlying data source except the columns corresponding to the entities of the feature view or the columns corresponding to the timestamp columns of the feature view's
60+
data source. The names and value types of the inferred features will use the names and data types of the columns from which the features were inferred.
61+
5662
## Entity aliasing
5763

5864
"Entity aliases" can be specified to join `entity_dataframe` columns that do not match the column names in the source table of a FeatureView.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Registration Inferencing
2+
3+
## Overview
4+
5+
* FeatureView - When the `features` parameter is left out of the feature view definition, upon a `feast apply` call, Feast will automatically consider every column in the data source as a feature to be registered other than the specific timestamp columns associated with the underlying data source definition (e.g. event_timestamp_column) and the columns associated with the feature view's entities.
6+
* DataSource - When the `event_timestamp_column` parameter is left out of the data source definition, upon a 'feast apply' call, Feast will automatically find the sole timestamp column in the table underlying the data source and use that as the `event_timestamp_column`. If there are no columns of timestamp type or multiple columns of timestamp type, `feast apply` will throw an exception.
7+
* Entity - When the `value_type` parameter is left out of the entity definition, upon a `feast apply` call, Feast will automatically find the column corresponding with the entity's `join_key` and take that column's data type to be the `value_type`. If the column doesn't exist, `feast apply` will throw an exception.

0 commit comments

Comments
 (0)