Skip to content

featurebyte.FeatureList.save

save(
conflict_resolution: Literal["raise", "retrieve"]="raise"
)

Description

Adds a FeatureList object to the catalog. A conflict could be triggered when the object being saved has violated a uniqueness check at the catalog. If uniqueness is violated, you can either raise an error or retrieve the object with the same name, depending on the conflict resolution parameter passed in. The default behavior is to raise an error.

Parameters

  • conflict_resolution: Literal["raise", "retrieve"]
    default: "raise"
    "raise" raises error when we encounter a conflict error (default).
    "retrieve" handle conflict error by retrieving the object with the same name.

Examples

>>> feature_list = fb.FeatureList(
...     [
...         catalog.get_feature("InvoiceCount_60days"),
...         catalog.get_feature("InvoiceAmountAvg_60days"),
...     ],
...     name="feature_lists_invoice_features",
... )
>>> feature_list.save()