Skip to content

featurebyte.FeatureList.as_default_version

Description

When a feature list has its default version mode set to manual, this method designates the FeatureList object as the default version for that specific feature list.

Each feature list is recognized by its name and can possess numerous versions, though only a single default version is allowed.

The default version streamlines feature list reuse by supplying the most suitable version when none is explicitly indicated. By default, the feature list's default version mode is automatic, selecting the version with the highest percentage of production ready features. If several versions share the same readiness level, the most recent one becomes the default."

Examples

>>> feature_list = catalog.get_feature_list_by_id(<FeatureList_Object_ID>)
>>> feature_list.update_default_version_mode(DefaultVersionMode.MANUAL)
>>> feature_list.as_default_version()

See Also