You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 0f5bd69
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: docs/user-guide/feature-retrieval.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -48,7 +48,7 @@ features = self._features + [self._target]
48
48
# Retrieve training dataset from Feast. The "entity_df" is a dataframe that contains
49
49
# timestamps and entity keys. In this case, it is a dataframe with two columns.
50
50
# One timestamp column, and one customer id column
51
-
dataset = client.get_batch_features(
51
+
dataset = client.get_historical_features(
52
52
feature_refs=features,
53
53
entity_rows=entity_df
54
54
)
@@ -59,7 +59,7 @@ df = dataset.to_dataframe()
59
59
```
60
60
61
61
{% hint style="info" %}
62
-
When no project is specified when retrieving features with `get_batch_features()`, Feast infers that the features specified belong to the `default` project. To retrieve from another project, specify the `default` parameter when retrieving features.
62
+
When no project is specified when retrieving features with `get_historical_features()`, Feast infers that the features specified belong to the `default` project. To retrieve from another project, specify the `default` parameter when retrieving features.
63
63
{% endhint %}
64
64
65
65
In the above example, Feast does a point in time correct query from a single feature set. For each timestamp and entity key combination that is provided by `entity_df`, Feast determines the values of all the features in the `features` list at that respective point in time and then joins features values to that specific entity value and timestamp, and repeats this process for all timestamps.
@@ -88,7 +88,7 @@ features = [
88
88
]
89
89
90
90
91
-
dataset = client.get_batch_features(
91
+
dataset = client.get_historical_features(
92
92
feature_refs=features, # this is a list of feature references
93
93
entity_rows=entity_df # This is the entity dataframe above
94
94
)
@@ -111,10 +111,10 @@ Point-in-time-correct joins also prevents the occurrence of feature leakage by t
111
111
112
112
Feast is able to compute [TFDV](https://tensorflow.google.cn/tfx/tutorials/data_validation/tfdv_basic) compatible statistics over data retrieved from historical stores. The statistics can be used in conjunction with feature schemas and TFDV to verify the integrity of your retrieved dataset, or to [Facets](https://github.com/PAIR-code/facets) to visualize the distribution.
113
113
114
-
The computation of statistics is not enabled by default. To indicate to Feast that the statistics are to be computed for a given historical retrieval request, pass `compute_statistics=True` to `get_batch_features`.
114
+
The computation of statistics is not enabled by default. To indicate to Feast that the statistics are to be computed for a given historical retrieval request, pass `compute_statistics=True` to `get_historical_features`.
Copy file name to clipboardExpand all lines: examples/basic/basic.ipynb
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -572,7 +572,7 @@
572
572
"cell_type": "markdown",
573
573
"metadata": {},
574
574
"source": [
575
-
"By calling the `get_batch_features` method we are able to retrieve a `job` object. This object can be used to retrieve the resulting training dataset that is exported by Feast. \n",
575
+
"By calling the `get_historical_features` method we are able to retrieve a `job` object. This object can be used to retrieve the resulting training dataset that is exported by Feast. \n",
576
576
"\n",
577
577
"The dataset that is returned will contain feature values for each entity and timestamp combination in `entity_rows`."
Copy file name to clipboardExpand all lines: examples/feast-xgboost-churn-prediction-tutorial/Telecom Customer Churn Prediction (with Feast and XGBoost).ipynb
0 commit comments