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")
14:05:59 | INFO | SDK version: 3.0.1.dev45 INFO :featurebyte:SDK version: 3.0.1.dev45 14:05:59 | INFO | No catalog activated. INFO :featurebyte:No catalog activated. 14:05:59 | INFO | Using profile: tutorial INFO :featurebyte:Using profile: tutorial 14:05:59 | INFO | Using configuration file at: /Users/gxav/.featurebyte/config.yaml INFO :featurebyte:Using configuration file at: /Users/gxav/.featurebyte/config.yaml 14:05:59 | INFO | Active profile: tutorial (https://tutorials.featurebyte.com/api/v1) INFO :featurebyte:Active profile: tutorial (https://tutorials.featurebyte.com/api/v1) 14:05:59 | INFO | SDK version: 3.0.1.dev45 INFO :featurebyte:SDK version: 3.0.1.dev45 14:05:59 | INFO | No catalog activated. INFO :featurebyte:No catalog activated.
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 = "Loan Applications Dataset SDK 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 = "Loan Applications Dataset SDK 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!