QuestionQ34

VerifiedAdvanced Feature Store Concepts

A machine learning engineer developed a model and registered it by using the FeatureStoreClient fs. The model has the model URI model_uri. The engineer now must run batch inference on the training set logged with the model, but some feature values in the spend column have since changed and are present in the customer-level Spark DataFrame spark_df. The customer_id column is the primary key of both spark_df and the training set used to train and log the model.

Which code block can compute predictions for the training set while replacing its previous spend values with the new values from spark_df?

Explanation

FeatureStoreClient.score_batch performs batch inference for a model logged with Feature Store metadata and automatically retrieves required features using the supplied primary key. Custom feature values included in its input DataFrame are used for scoring, so the spend values in spark_df override previously stored values while customer_id enables the remaining feature lookups.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!