QuestionQ26

VerifiedModel Deployment

A machine learning engineer needs to carry out batch model inference. They want to obtain predictions from the linear regression model stored at model_uri for the DataFrame batch_df. batch_df has this schema:

customer_id STRING  

The engineer runs the following code block to infer on batch_df with the linear regression model at model_uri:

Question Image

Under which circumstance will this code block perform the intended inference?

Explanation

FeatureStoreClient.score_batch requires a model logged with the Feature Store client so that the model artifact includes feature metadata. It uses that metadata to join the required Feature Store features to the input DataFrame using the required lookup keys, such as customer_id, and then produces predictions.

Learn more

Community Discussion

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