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: ads/feature_store/docs/source/transformation.rst
+112Lines changed: 112 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -3,6 +3,118 @@ Transformation
3
3
4
4
Transformations in a feature store refers to the operations and processes applied to raw data to create, modify or derive new features that can be used as inputs for ML Models. These transformations are crucial for improving the quality, relevance and usefulness of features which in turn can enhance the performance of ml models. It is an object that represents a transformation applied on the feature group and can be a pandas transformation or spark sql transformation.
5
5
6
+
* ``TransformationMode.PANDAS``: Pandas Transformation allows users to do the transformation using native pandas functionality.
7
+
* ``TransformationMode.SQL``: Spark SQL brings native support for SQL to Spark. Users generally can give the spark transformation that they wish to do using spark SQL.
8
+
* ``TransformationMode.SPARK``: Spark Transformation allows users to do the transformation using native spark functionality.
9
+
10
+
.. tabs::
11
+
12
+
.. code-tab:: Python3
13
+
:caption: TransformationMode.SQL
14
+
15
+
def transactions_df(transactions_batch):
16
+
sql_query = f"select id, cc_num, amount from {transactions_batch}"
0 commit comments