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
Copy file name to clipboardexpand all lines: docs/user_guides/fs/feature_group/on_demand_transformations.md
+7-7
Original file line number
Diff line number
Diff line change
@@ -144,18 +144,18 @@ The `get_feature_vectors` function retrieves multiple feature vectors using a li
144
144
)
145
145
```
146
146
147
-
#### Retrieving untransformed feature vector
147
+
#### Retrieving feature vector without on-demand features
148
148
149
-
The `get_feature_vector` and `get_feature_vectors` can also return untransformed features vector without applying model-dependent transformations that contains on-demand features by setting the parameter `transform` to `False`.
149
+
The `get_feature_vector` and `get_feature_vectors`methods can return untransformed feature vectors without on-demand features by disabling model-dependent transformations and excluding on-demand features. To achieve this, set the parameters `transform` and `on_demand_features` to `False`.
150
150
151
151
=== "Python"
152
152
!!! example "Returning untransformed feature vectors"
It is important to note that in addition to the filters defined in feature view, [extra filters](./training-data.md#Extra-filters) will be applied if they are defined in the given training dataset version.
57
57
58
+
## Retrieving untransformed batch data
59
+
60
+
The `get_batch_data` function by default returns the batch data with model-dependent transformations applied. However it can also return untransformed batch data without applying model-dependent transformations but contains on-demand features by setting the parameter `transform` to `False`.
## Passing Context Variables to Transformation Functions
60
71
After [defining a transformation function using a context variable](../transformation_functions.md#passing-context-variables-to-transformation-function), you can pass the necessary context variables through the `transformation_context` parameter when fetching batch data.
Copy file name to clipboardexpand all lines: docs/user_guides/fs/feature_view/feature-vectors.md
+35
Original file line number
Diff line number
Diff line change
@@ -191,6 +191,41 @@ You can also use the parameter to provide values for all the features which are
191
191
)
192
192
```
193
193
194
+
## Retrieving untransformed feature vectors
195
+
196
+
By default, the `get_feature_vector` and `get_feature_vectors` functions return transformed feature vectors, which has model-dependent transformations applied and includes on-demand features.
197
+
198
+
However, you can retrieve the untransformed feature vectors without applying model-dependent transformations while still including on-demand features by setting the `transform` parameter to False.
199
+
200
+
=== "Python"
201
+
!!! example "Returning untransformed feature vectors"
## Retrieving feature vector without on-demand features
215
+
216
+
The `get_feature_vector` and `get_feature_vectors` methods can also return untransformed feature vectors without on-demand features by disabling model-dependent transformations and excluding on-demand features. To achieve this, set the parameters `transform` and `on_demand_features` to `False`.
217
+
218
+
=== "Python"
219
+
!!! example "Returning untransformed feature vectors"
## Passing Context Variables to Transformation Functions
195
230
After [defining a transformation function using a context variable](../transformation_functions.md#passing-context-variables-to-transformation-function), you can pass the required context variables using the `transformation_context` parameter when fetching the feature vectors.
#### Retrieving untransformed feature vector and batch inference data
133
+
134
+
The `get_feature_vector`, `get_feature_vectors`, and `get_batch_data` methods can return untransformed feature vectors and batch data without applying model-dependent transformations while still including on-demand features. To achieve this, set the `transform` parameter to False.
135
+
136
+
=== "Python"
137
+
!!! example "Returning untransformed feature vectors and batch data."
0 commit comments