Skip to content

featurebyte.Feature.update_default_version_mode

update_default_version_mode(
default_version_mode: Literal["AUTO", "MANUAL"]
)

Description

Sets the default version mode of a feature. By default, the feature default version mode is auto and the feature's version with the highest level of readiness is considered as the default version. In cases where multiple versions share the highest level of readiness, the most recent version is automatically chosen as the default.

If the default version mode is set as manual, you can choose to manually set any version as the default version for the feature.

Parameters

  • default_version_mode: Literal["AUTO", "MANUAL"]
    Feature default version mode.

Examples

>>> feature = catalog.get_feature("InvoiceCount_60days")
>>> feature.update_default_version_mode("MANUAL")