Use the FeatureCatalog class to provide catalog functionality for features.
Syntax
FeatureCatalog(repo, data_domain=None)
Required Parameter
- repo
- Specifies the name of the repository to which feature catalog points.
If a feature store is not set up on the repository, it will return an error.
Optional Parameter
- data_domain
- Specifies the name of the data domain the feature catalog refers to.
If not specified, then default database is used as the data domain.
Example setup
>>> from teradataml import FeatureCatalog
Example: Create a feature catalog
Create a feature store repository 'vfs_v1'.
>>> from teradataml import FeatureStore >>> fs = FeatureStore(repo='vfs_v1', data_domain='sales')
repo vfs_v1 does not exist. Run FeatureStore.setup() to create the repo and setup FeatureStore.
Set up the feature store for this repository.
>>> fs.setup()
True
Create a FeatureCatalog object.
>>> feature_catalog = FeatureCatalog(repo='vfs_v1', data_domain='sales') >>> feature_catalog
FeatureCatalog(repo=vfs_v1, data_domain=sales)