Skip to content

featurebyte.FeatureList.update_naive_prediction

update_naive_prediction(
feature_name: str,
structure: NaivePredictionStructure
)

Description

Set the naive prediction for this FeatureList. The feature name must be one of the features in the feature list.

Parameters

  • feature_name: str
    Name of the feature to use as naive prediction.

  • structure: NaivePredictionStructure
    Structure of the naive prediction model (additive or multiplicative).

Raises

  • ValueError
    If the feature name is not found in the feature list.

Examples

>>> feature_list = catalog.get_feature_list("invoice_feature_list")
>>> feature_list.update_naive_prediction(
...     "InvoiceCount_60days", NaivePredictionStructure.ADDITIVE
... )