1. Create catalog
Create a new catalog¶
Every FeatureByte project starts with setting up a catalog. Think of the catalog as the central hub for storing metadata. It keeps track of details about the tables, columns, and features you and your teammates will share and work with.
We will reuse this catalog in all subsequent notebooks.
In [1]:
Copied!
import featurebyte as fb
# Set your profile to the tutorial environment
fb.use_profile("tutorial")
import featurebyte as fb
# Set your profile to the tutorial environment
fb.use_profile("tutorial")
16:38:01 | INFO | Using configuration file at: /Users/viktor/.featurebyte/config.yaml 16:38:01 | INFO | Active profile: tutorial (https://tutorials.featurebyte.com/api/v1) 16:38:01 | INFO | SDK version: 0.6.0.dev121 16:38:01 | INFO | No catalog activated. 16:38:01 | INFO | 10 feature lists, 59 features deployed 16:38:01 | INFO | Using profile: tutorial 16:38:01 | INFO | Using configuration file at: /Users/viktor/.featurebyte/config.yaml 16:38:01 | INFO | Active profile: tutorial (https://tutorials.featurebyte.com/api/v1) 16:38:02 | INFO | SDK version: 0.6.0.dev121 16:38:02 | INFO | No catalog activated. 16:38:02 | INFO | 10 feature lists, 59 features deployed
In [2]:
Copied!
# Set the name of the feature store to associate with the catalog that you are creating
feature_store_name = "playground"
# if you change the catalog name, make sure it is consistent with the catalog name in other notebooks.
catalog_name = "Grocery Dataset Tutorial"
# create a catalog
catalog = fb.Catalog.create(catalog_name, feature_store_name=feature_store_name)
# Set the name of the feature store to associate with the catalog that you are creating
feature_store_name = "playground"
# if you change the catalog name, make sure it is consistent with the catalog name in other notebooks.
catalog_name = "Grocery Dataset Tutorial"
# create a catalog
catalog = fb.Catalog.create(catalog_name, feature_store_name=feature_store_name)
To create a catalog, we must provide the name of the feature store. Consider the feature store as an object that handles connections to your data warehouse and performs various optimizations to minimize feature serving delays.
Once catalog is created we are ready to work with it.
In [3]:
Copied!
catalog.list_tables()
catalog.list_tables()
Out[3]:
id | name | type | status | entities | created_at |
---|
It is empty for now, we will add more data into it in following notebooks.
In [ ]:
Copied!