FeatureSetSpecification Class

Feature Set Specification

Inheritance
azure.ai.ml.entities._mixins.RestTranslatableMixin
FeatureSetSpecification

Constructor

FeatureSetSpecification(*, path: str | PathLike | None = None, **kwargs: Any)

Parameters

Name Description
path
Required

Specifies the feature set spec path to file. Defaults to None.

kwargs
Required

A dictionary of additional configuration parameters.

path
Required
str

Specifies the spec path.

Keyword-Only Parameters

Name Description
path
Required

Examples

Using Feature Set Spec to create Feature Set


   from azure.ai.ml.entities import FeatureSet, FeatureSetSpecification

   transaction_fset_config = FeatureSet(
       name="transactions",
       version="1",
       description="7-day and 3-day rolling aggregation of transactions featureset",
       entities=["azureml:account:1"],
       stage="Development",
       specification=FeatureSetSpecification(path="../azure-ai-ml/tests/test_configs/feature_set/code_sample/"),
       tags={"data_type": "nonPII"},
   )

   feature_set_poller = featurestore_client.feature_sets.begin_create_or_update(transaction_fset_config)
   print(feature_set_poller.result())