Use the DataDomain class to represent a data domain in the Feature Store.
Syntax
DataDomain(repo, data_domain)
Required Parameters
- repo
- Specifies the repository name.
- data_domain
- Specifies the data domain.
Example setup
Load the data to be used and create the 'sales' DataFrame.
>>> from teradataml import load_example_data, DataFrame
>>> load_example_data('dataframe', ['sales'])
>>> df = DataFrame('sales')
Example 1: Create a DataDomain object
Define the repository and data domain.
>>> repo = 'vfs_test' >>> data_domain = 'sales'
Create a feature store.
>>> from teradataml import FeatureStore >>> fs = FeatureStore(repo=repo, data_domain=data_domain)
repo vfs_test does not exist. Run FeatureStore.setup() to create the repo and setup FeatureStore.
Set up the feature store.
>>> fs.setup()
True
Create the data domain.
>>> from teradataml import DataDomain >>> data_domain = DataDomain(repo='vfs_test', ... data_domain='sales')