What do ML.PREDICT, ML.EVALUATE, and ML.FORECAST do in BigQuery ML, and how do they fit the model lifecycle?

Quick Overview

Asks what the BigQuery ML functions ML.PREDICT, ML.EVALUATE and ML.FORECAST do and where each fits between training and serving a model. Tests whether you know which model types each function accepts, what it returns, and how evaluation and preprocessing carry into production scoring.

What do ML.PREDICT, ML.EVALUATE, and ML.FORECAST do in BigQuery ML, and how do they fit the model lifecycle?

Role: Data Scientist

Category: Data Manipulation (SQL/Python)

Difficulty: easy

Interview Round: Other

What do `ML.PREDICT`, `ML.EVALUATE`, and `ML.FORECAST` do in BigQuery ML, and how do they fit the model lifecycle? ```hint Order the steps Start from `CREATE MODEL` and ask what you need to know about a model before anyone uses its outputs, then which model types each scoring function accepts. ``` ### What a Strong Answer Covers - What each function takes as input and returns, including which model types it applies to - Where each one sits between training and serving, and why evaluation comes before prediction - How preprocessing defined in a `TRANSFORM` clause carries over to scoring - Why time-series models use `ML.FORECAST` and how its output differs from row-level predictions ### Follow-up Questions - How would you set up `ML.EVALUATE` so the metrics reflect future performance on time-ordered data? - What does `ML.PREDICT` return for a binary classifier, and how would you change the decision threshold? - How would you schedule batch scoring of new customers and monitor the model after it ships?

Overview: Asks what the BigQuery ML functions ML.PREDICT, ML.EVALUATE and ML.FORECAST do and where each fits between training and serving a model. Tests whether you know which model types each function accepts, what it returns, and how evaluation and preprocessing carry into production scoring.

PracHub logo
General
Nov 25, 2026
easyData ScientistOtherData Manipulation (SQL/Python)
0
0

What do ML.PREDICT, ML.EVALUATE, and ML.FORECAST do in BigQuery ML, and how do they fit the model lifecycle?

What a Strong Answer Covers Guidance

  • What each function takes as input and returns, including which model types it applies to
  • Where each one sits between training and serving, and why evaluation comes before prediction
  • How preprocessing defined in a TRANSFORM clause carries over to scoring
  • Why time-series models use ML.FORECAST and how its output differs from row-level predictions

Follow-up Questions Guidance

  • How would you set up ML.EVALUATE so the metrics reflect future performance on time-ordered data?
  • What does ML.PREDICT return for a binary classifier, and how would you change the decision threshold?
  • How would you schedule batch scoring of new customers and monitor the model after it ships?