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
.with_query('SELECT col FROM <entity_id>.<feature_group_name>')
32
31
)
33
32
@@ -56,12 +55,50 @@ Use the the ``create()`` method of the ``Dataset`` instance to create a dataset.
56
55
57
56
.. important::
58
57
59
-
This method doesn’t persist any metadata or feature data in the Feature Store. To persist the dataset and save feature data including the metadata in the Feature Store, use the ``materialise()`` method with a dataframe.
58
+
This method does not persist any metadata or feature data in the Feature Store. To persist the dataset and save feature data including the metadata in the Feature Store, use the ``materialise()`` method with a dataframe. For simple queries with only one level of nesting, users do not need to define ``with_feature_groups``. However, in complex queries involving more than one level of nesting, users are required to define ``with_feature_groups``.
60
59
61
-
.. code-block:: python3
62
60
63
-
# Create an dataset
64
-
dataset.create()
61
+
.. tabs::
62
+
63
+
.. code-tab:: Python3
64
+
:caption: Simple SQL
65
+
66
+
from ads.feature_store.dataset import Dataset
67
+
68
+
dataset = (
69
+
Dataset
70
+
.with_name("<dataset_name>")
71
+
.with_entity_id(<entity_id>)
72
+
.with_feature_store_id("<feature_store_id>")
73
+
.with_description("<dataset_description>")
74
+
.with_compartment_id("<compartment_id>")
75
+
.with_query('SELECT col FROM <entity_id>.<feature_group_name>')
76
+
)
77
+
78
+
dataset.create()
79
+
80
+
81
+
.. code-tab:: Python3
82
+
:caption: Complex SQL
83
+
84
+
from ads.feature_store.dataset import Dataset
85
+
from ads.feature_store.feature_group import FeatureGroup
Copy file name to clipboardExpand all lines: ads/feature_store/docs/source/feature_group.rst
+14Lines changed: 14 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,6 +11,9 @@ In feature group, three key types play crucial roles:
11
11
- **Partition Keys**: These keys assist in distributing and organizing data across different partitions in the feature group. They enable efficient data retrieval by logically grouping related information, optimizing query performance, and minimizing resource utilization.
12
12
- **Event Timestamp Keys**: These keys capture the temporal aspect of the data by indicating the time or timestamp associated with a specific event or entry in the feature group. They facilitate time-based querying, trend analysis, and time-series operations.
13
13
14
+
.. important::
15
+
By default, special characters such as spaces and any of the characters ,;{}()\n\t= are not supported in feature group column names.
16
+
14
17
Define
15
18
======
16
19
@@ -353,6 +356,17 @@ Feature store provides an API similar to Pandas to join feature groups together,
0 commit comments