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/feature_group.rst
+40-32Lines changed: 40 additions & 32 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -152,32 +152,49 @@ Feature store provides an API similar to Pandas to join feature groups together
152
152
153
153
Save expectation entity
154
154
=======================
155
-
With a ``FeatureGroup`` instance, we can save the expectation entity using ``save_expectation()``
155
+
With a ``FeatureGroup`` instance, You can save the expectation details using ``with_expectation_suite()`` with parameters
156
+
157
+
- ``expectation_suite: ExpectationSuite``. ExpectationSuit of great expectation
158
+
- ``expectation_type: ExpectationType``. Type of expectation
159
+
- ``ExpectationType.STRICT``: Fail the job if expectation not met
160
+
- ``ExpectationType.LENIENT``: Pass the job even if expectation not met
156
161
157
162
.. note::
158
163
159
164
Great Expectations is a Python-based open-source library for validating, documenting, and profiling your data. It helps you to maintain data quality and improve communication about data between teams. Software developers have long known that automated testing is essential for managing complex codebases.
160
165
161
166
.. image:: figures/validation.png
162
167
163
-
The ``.save_expectation()`` method takes the following optional parameter:
168
+
.. code-block:: python3
164
169
165
-
- ``expectation: Expectation``. Expectation of great expectation
166
-
- ``expectation_type: ExpectationType``. Type of expectation
167
-
- ``ExpectationType.STRICT``: Fail the job if expectation not met
168
-
- ``ExpectationType.LENIENT``: Pass the job even if expectation not met
You can call the ``get_validation_output()`` method of the FeatureGroup instance to fetch validation results for a specific ingestion job.
173
194
174
195
Statistics Results
175
196
==================
176
-
You can call the ``get_statistics()`` method of the FeatureGroup instance to fetch validation results for a specific ingestion job.
177
-
178
-
.. note::
179
-
180
-
PyDeequ is a Python API for Deequ, a library built on top of Apache Spark for defining "unit tests for data", which measure data quality in large datasets.
197
+
You can call the ``get_statistics()`` method of the FeatureGroup instance to fetch statistics for a specific ingestion job.
181
198
182
199
.. code-block:: python3
183
200
@@ -196,26 +213,16 @@ With a FeatureGroup instance, we can get the last feature group job details usin
0 commit comments