Executive summary
A prediction is only useful when someone can demonstrate how well it performs against real outcomes. Yet evaluation is often treated as a separate data science project: export predictions, reconcile labels, run a notebook, circulate a metric, and repeat the exercise after the next model change. The distance between prediction and validation makes it easier for untested scores to appear in operational dashboards.
BigQuery ML.METRICS offers a simpler evaluation step for two common problems. Given a table or query containing predicted and actual values, it computes standard classification or regression metrics directly in BigQuery SQL. A stored BigQuery ML model is not required. Google Cloud introduced the function in Preview on September 10, 2026; its documentation still identifies it as Preview, so production use should be evaluated against current availability and support terms.
The executive opportunity is not to eliminate model governance. It is to make a repeatable quality check easier to run close to governed data. That means defining what a correct prediction means, joining outcomes without leakage, measuring performance by meaningful segments, and connecting the result to a business decision. One summary metric cannot answer those questions on its own.
What ML.METRICS actually does
The function accepts a table reference or a SQL query, the name of a predicted-value column, the name of an actual-value column, and a task type: classification or regression. It returns one row of metrics. For classification, the documented outputs are precision, recall, accuracy and F1 score. For regression, the outputs include mean absolute error, mean squared error, mean squared logarithmic error, median absolute error, R-squared and explained variance.
The source can contain predictions generated by a BigQuery model, a remote service, a business rule, or a model whose outputs were loaded from another platform. That is why the function is valuable beyond teams training models in BigQuery. The minimum common contract is a trustworthy pair of predicted and actual values for the same observation.

Google’s ML.METRICS reference describes the precise SQL syntax, accepted types and output semantics. Its distinction from model-specific evaluation matters: ML.EVALUATE works with BigQuery ML models, whereas ML.METRICS can assess a prediction table without a model object. Neither function decides whether a model is economically or operationally suitable for a particular business workflow.
Why evaluation becomes a reporting problem
Consider a company using a churn-risk score to prioritize customer outreach. A dashboard may show the number of high-risk accounts, the share of revenue at risk, and how many accounts received attention. Those are useful operational measures, but they do not establish whether the scores identify customers who later leave. A scoring pipeline can run perfectly while predictive quality deteriorates.
A sound evaluation dataset connects each prediction to a later, independently observed outcome. The team must decide when the prediction was made, which population was eligible, how much time the outcome needed to mature, and whether the observation was changed by an intervention. Without those definitions, a SQL metric can be mathematically correct and commercially misleading.
This is closely related to the wider disciplines of data modeling and metric ownership. Actiknow’s business intelligence consulting services describe data integration, analysis and modeling alongside reporting. Prediction evaluation belongs in that same governed analytical chain, not in an isolated slide deck.
A practical classification example
Suppose the business records one row per customer and evaluation period. The table contains customer_id, prediction_date, predicted_churn and actual_churn. Both churn columns are BOOL values. The actual value is populated only after a defined outcome window, such as whether the customer stopped renewing within the next 90 days. The period is illustrative; the right definition depends on the product and contract.
An evaluation query can be as small as the following. The project and dataset names are illustrative and must be replaced with real identifiers.

SELECT *
FROM ML.METRICS(
TABLE `analytics_eval.prediction_outcomes`,
predicted_col => ‘predicted_churn’,
actual_col => ‘actual_churn’,
task_type => ‘classification’
);
Before running it, confirm that the table has one eligible observation per customer and prediction window, that the labels were not available when predictions were generated, and that NULL outcomes represent not-yet-matured cases rather than negative outcomes. ML.METRICS omits rows with NULL predicted or actual values. That behavior is convenient for computation but dangerous if the omitted population differs systematically from the included one.
For BOOL classification, Google documents that the positive class is TRUE. Precision asks: among customers flagged as churn risks, how many actually churned? Recall asks: among customers who churned, how many were flagged? Accuracy asks how often the classification was correct overall. F1 combines precision and recall. Those definitions are useful only after the business explicitly agrees what TRUE means.
The BOOL versus STRING detail is not cosmetic
The function treats STRING classification labels as multiclass, even if there are only two distinct strings. It reports macro-averaged metrics across classes rather than the positive-class metrics returned for BOOL labels. A dashboard comparing F1 scores from a BOOL evaluation and a STRING evaluation may therefore be comparing different quantities. Standardize label representation before trend reporting, and record the calculation convention in the metric definition.
For multiclass routing, such as classifying support tickets into billing, product, access and other, macro averaging gives each class equal weight. That can reveal poor performance on smaller classes, but it does not show which class is failing. Preserve per-class counts and confusion details in a complementary SQL report. ML.METRICS itself does not return a confusion matrix.
A regression example for forecast accuracy
A revenue forecast, delivery-time estimate, inventory-demand prediction or expected invoice amount is a regression problem when the target is numeric. For each observation, store the forecast value, actual realized value, forecast issue time, observation identifier, and horizon. Compare predictions only with outcomes that correspond to the same horizon and business definition.
SELECT *
FROM ML.METRICS(
(
SELECT predicted_amount, actual_amount
FROM `analytics_eval.forecast_outcomes`
WHERE forecast_horizon = ‘next_month’
AND evaluation_period = ‘2026-10’
),
predicted_col => ‘predicted_amount’,
actual_col => ‘actual_amount’,
task_type => ‘regression’
);
Mean absolute error (MAE) expresses the average absolute miss in the same units as the target. If the target is dollars, MAE is in dollars. Mean squared error (MSE) penalizes larger misses more heavily but is expressed in squared units, which makes it less intuitive for executives. R-squared compares explained variation against a baseline, but it is not a percentage of forecasts that were correct. Negative R-squared values are possible.
Do not choose the most flattering metric. A finance team might care about aggregate bias and the risk of large under-forecasts; operations might care about absolute error at the item level; inventory planners might care more about shortages than excess stock. Add business-specific measures alongside ML.METRICS, such as signed error, underprediction frequency, volume-weighted error or cost of wrong decisions.
Mean squared logarithmic error needs special attention because logarithmic metrics have domain restrictions. Validate numeric ranges and null handling before relying on the output. Do not use a single aggregate regression metric to certify a model that operates across different currencies, price scales or forecast horizons.
The evaluation data contract is more important than the function call
1. Define the observation and its time boundaries
Write down the grain: customer-month, order, shipment, support ticket, SKU-location-week, or another unit. The prediction and actual must describe the same unit. Include a prediction timestamp, target window, label availability date, model or rule version, and source-system identifier. These fields let reviewers reproduce the exact evaluation cohort.
A common failure is to join current customer status to historical predictions. That can assign the same present-day outcome to multiple earlier scores or create leakage when current attributes are treated as historical features. Use event-time logic and point-in-time data wherever the evaluation depends on what was known at prediction time.
2. Validate label maturity and missingness
A prediction generated yesterday cannot be evaluated against a 90-day churn outcome. Define a maturity cutoff and exclude incomplete windows intentionally. Report how many predictions are excluded because their outcome has not matured, how many lack a usable identifier, and how many have no matching actual. Because the function silently omits NULL pairs from metric calculations, publish the evaluated-row count separately.
The absence of an observed outcome is not necessarily a negative outcome. In claims, fraud and collections workflows, delayed adjudication can bias the evaluated sample toward faster-resolving cases. A reliable scorecard distinguishes pending, unobserved, ineligible and verified-negative cases.
3. Control duplicates and joins
One prediction should not multiply into several rows because a customer has multiple transactions or status events. Use deterministic selection rules, unique keys and reconciliation queries. Check that the count of eligible prediction records matches the expected population after joining labels. If the join cardinality changes, treat the evaluation as invalid until the reason is understood.
4. Version the inputs and SQL
Save the evaluation SQL, label definition, prediction source, model version, date window and execution timestamp. If source tables can change, use appropriate snapshots or immutable partitions to support reproducibility. A metric without an auditable cohort is difficult to defend during a model incident or management review.
How to interpret classification metrics in business terms
Precision and recall often move in opposite directions when a classification threshold changes. For a fraud review process, low precision means investigators spend time on more false alarms. Low recall means more true fraud cases go unflagged. Neither metric is universally more important. Their relative value depends on review capacity, the cost of missed cases, customer friction and the consequences of acting on a false positive.
Accuracy can be deceptive when the positive class is rare. If only a small share of transactions are fraudulent, a classifier that predicts the majority class almost every time can achieve high accuracy while detecting few fraudulent transactions. Always display the base rate, true positives, false positives, false negatives and true negatives alongside aggregate quality measures.
F1 is useful as a compact balance between precision and recall, but it does not encode the monetary or operational cost of each error. A high F1 does not automatically mean a campaign, review queue or pricing decision should go live. Translate model output into expected decisions, capacity constraints and measured outcomes.
Threshold selection is a separate design decision
ML.METRICS evaluates the labels you give it. It does not automatically select the best probability threshold or optimize a business objective. If your source model produces probabilities, define how those scores become BOOL decisions before using the function. Compare candidate thresholds with controlled SQL and evaluate precision, recall, workload volume and expected costs for each.
For example, lowering a churn-risk threshold may identify more at-risk customers but also increase outreach to customers who would have stayed anyway. The right threshold may be the one that fits the retention team’s capacity and produces incremental value, not the one with the highest abstract score. Controlled experiments or causal analysis may be required to estimate the actual effect of an intervention.
Segment evaluation: where one-row summaries fall short
A single overall metric can hide problems for high-value accounts, new customers, specific regions, product categories or acquisition channels. Run the same evaluation on carefully defined subsets, ensuring each subset has enough observations to support interpretation. Publish denominators and uncertainty, especially when positive events are rare.
Useful cuts include customer tenure, forecast horizon, transaction value band, region, product family, model version and time period. Avoid reporting sensitive demographic slices without a legitimate governance purpose, appropriate access controls and a reviewed fairness methodology. Small groups can yield unstable estimates and create disclosure risks.

Segment-level evaluation should also be compared with a simple baseline. For churn, a naive rule might flag customers with a recent lapse in activity; for demand forecasting, a seasonal or last-period baseline may be appropriate. A complex model that cannot outperform a well-defined baseline does not earn its operational complexity merely because it uses advanced technology.
A governed evaluation architecture
A practical flow is: source transactions and events feed governed warehouse tables; a prediction service or SQL model writes timestamped scores; an outcome pipeline produces verified labels after the appropriate delay; an evaluation mart joins scores and labels at the defined grain; scheduled SQL computes metrics and supporting counts; and a controlled dashboard exposes quality trends and exceptions.
Keep the raw prediction log separate from the evaluation-ready table. The log preserves what the system actually predicted at the time. The evaluation table documents which records were eligible, how labels were assigned, and which version of the evaluation logic was used. This separation makes it easier to investigate disagreements between a data scientist’s notebook and an executive report.
Actiknow’s business intelligence dashboard services cover integration and reporting work. The dashboard layer can present prediction quality, but it should not become the only place where evaluation rules live. Store calculations in versioned, testable warehouse logic and use dashboards for interpretation and action.
Suggested evaluation mart fields
At minimum: observation_id; prediction_time; prediction_version; prediction_value; actual_value; outcome_window_start; outcome_window_end; label_maturity_status; evaluation_cohort; segment attributes; evaluation_rule_version; source lineage; and load timestamp. For thresholded classifiers, also retain the raw score and threshold version if available. Do not rely on a formatted dashboard label as the only evidence of what was predicted.
Data-quality tests before metric computation
Test uniqueness of observation keys, accepted label values, compatible data types, outcome completeness, valid time ordering, join cardinality, null-rate changes, and segment coverage. Set alerts on unexpected drops in evaluated population. A score can improve artificially if difficult cases disappear from the evaluation cohort.
Access and cost controls
Evaluation tables may contain customer identifiers, sensitive outcomes or proprietary predictions. Use least-privilege access, authorized views where appropriate, and retention rules aligned to business and regulatory requirements. Restrict raw records to users who need them, while exposing aggregated quality metrics to executives.
The SQL still consumes BigQuery resources. Filter by evaluation window, partition large prediction and outcome tables appropriately, avoid repeated full-history scans, and measure query costs before scheduling frequent runs. A compact evaluation function does not make upstream joins free.
What ML.METRICS does not replace
It does not create ground-truth labels, resolve mismatched identities, choose thresholds, calculate business ROI, explain model decisions, test causal impact, or establish fairness and regulatory compliance. It also does not guarantee that the sample represents future production traffic. Those are separate evaluation responsibilities.
It is not a complete monitoring system. Production monitoring should also detect schema changes, missing predictions, drift in inputs or scores, delayed outcomes, shifts in business population, and failures of the downstream action. A model may maintain similar aggregate F1 while becoming less useful for a critical customer segment.
It does not eliminate the distinction between offline predictive performance and live intervention results. If an outreach team contacts high-risk customers, the intervention can change the outcome being measured. Use suitable experimental design when the goal is to prove that acting on predictions creates incremental value.
A 30-day implementation plan
Week 1: define the decision and cohort
Choose one decision with a named business owner, such as churn outreach prioritization or demand forecast review. Document the target definition, prediction horizon, eligibility rules, acceptable error tradeoffs, baseline, and downstream action. Audit existing prediction logs and outcome sources. Decide which records are mature enough to evaluate.
Week 2: build the evaluation dataset
Create the prediction-to-outcome join, enforce observation uniqueness, implement label maturity logic, and add data-quality checks. Save cohort counts before and after each filter. Run a manual review of representative records, including edge cases, late outcomes and duplicate identifiers. Do not proceed solely because the SQL compiles.
Week 3: compute and challenge the metrics
Use ML.METRICS for the supported classification or regression outputs. Independently cross-check a sample calculation and compare results with a simple baseline. Analyze performance by period and material business segment. For classification, add confusion counts and threshold sensitivity; for regression, add bias and decision-relevant error measures.
Week 4: operationalize with guardrails
Schedule versioned evaluation queries at a cadence consistent with label maturity, publish a controlled scorecard, assign an owner to investigate breaches, and define the rollback or escalation process for deteriorating predictions. Because ML.METRICS remains a Preview feature, confirm support and compatibility before making it a single point of failure in a critical production workflow.
An executive scorecard that leads to action
An effective scorecard begins with the business decision, not the model name. Show the eligible prediction population, percentage with mature outcomes, metric trend, baseline comparison, segment exceptions, operational volume, and the cost or risk of wrong actions. Pair each metric with an owner and a response rule.
For a classification workflow, an executive view might show recall at the agreed threshold, false-positive review workload, positive-event base rate, and the number of cases waiting for labels. For a forecast workflow, it might show MAE by horizon, signed bias, large-error frequency and a comparison with the prior forecasting method. These are suggested scorecard elements, not reported results from an Actiknow client.

Do not set arbitrary green, amber and red bands without historical context. Establish thresholds using business tolerance, baseline performance and a representative evaluation period. When an alert fires, the team should know whether to investigate data quality, model behavior, a changed business process or an upstream source failure.
Production acceptance criteria
Before relying on the evaluation, require: a written target and cohort definition; a reproducible prediction-to-label join; zero unexplained duplicate observation keys; reported eligible and evaluated row counts; documented handling of NULL and pending outcomes; baseline comparison; segment checks; access review; a named metric owner; and a tested response to quality deterioration.
For Preview functionality, also record the dependency, fallback evaluation query or process, and the date the team last checked Google’s product status. A feature being available in a test project is not by itself a commitment of production support.

Common implementation mistakes
Mistake one: reporting accuracy without prevalence. A highly imbalanced dataset can produce a comforting number while missing the cases that matter. Mistake two: evaluating only records with fast outcomes. This biases the sample. Mistake three: changing a classification column from BOOL to STRING without realizing the averaging semantics change. Mistake four: comparing different prediction horizons as if they were equivalent.
Mistake five: treating a model metric as proof of financial return. A prediction can be accurate but uneconomic to act upon. Mistake six: forgetting the baseline. Mistake seven: computing metrics from a mutable table without preserving the cohort. Mistake eight: publishing a single summary score while the high-risk segment performs poorly.
Frequently asked questions
Does ML.METRICS require a BigQuery ML model?
No. It evaluates actual and predicted columns from a table or query. That makes it applicable to predictions produced elsewhere, provided the input types and task are supported.
Is ML.METRICS generally available?
Google’s current reference identifies it as Preview, and the September 10, 2026 release notes announced it in Preview. Recheck the official product documentation and terms before committing to a production dependency.
Can it evaluate probabilities directly?
For classification, the documented predicted and actual columns must be BOOL or STRING labels of the same type. Convert probability scores into labels using an explicit threshold, and retain the original probabilities for separate threshold analysis.
Can it evaluate multiclass classification?
Yes. With STRING labels, the function calculates macro-averaged precision, recall and F1 across classes. It does not provide the per-class confusion matrix in its one-row output.
Why does my evaluation row count differ from the prediction table?
Rows with NULL actual or predicted values are omitted. Additional differences can arise from cohort filters and joins. Count excluded and unmatched records explicitly rather than interpreting the metric output as proof of full coverage.
What is the difference between ML.METRICS and ML.EVALUATE?
ML.METRICS works on paired prediction and actual columns without requiring a stored model. ML.EVALUATE is a model-oriented BigQuery ML evaluation function. Their metrics and interpretation can differ, so read the applicable reference.
Which metric should an executive track?
Track the metric linked to the decision’s error costs, together with base rate, volume, baseline, coverage and material segment performance. For many workflows, one headline metric is insufficient.
Does a high F1 score mean the model is profitable?
No. F1 does not incorporate intervention costs, capacity constraints, customer impact or incremental outcomes. Evaluate those separately, ideally using a controlled business test where appropriate.
Can this replace a full MLOps platform?
No. It simplifies a specific evaluation calculation. Data lineage, experiment tracking, deployment controls, monitoring, incident response and model lifecycle governance remain separate needs.
How often should the metrics be refreshed?
As often as new mature outcomes justify. Daily computation is not meaningful for a label that matures quarterly unless there is sufficient newly eligible data. Align cadence with the decision cycle and outcome latency.
Conclusion: simpler evaluation, stronger accountability
BigQuery ML.METRICS reduces friction between stored predictions and a first-pass evaluation. That is worthwhile because teams should be able to test predictive quality without rebuilding the same notebook workflow for every reporting cycle. The larger improvement comes from making evaluation a governed, repeatable business process.
Start with one clearly defined prediction use case. Preserve the original scores, establish trustworthy outcomes, measure coverage and performance, challenge the result against a baseline, and connect quality to a decision owner. If those elements are missing, a convenient SQL function will only produce a more convenient misleading number.
How Actiknow can help
For organizations bringing predictive outputs into operational analytics, Actiknow’s BI and data integration work can support the design of evaluation-ready datasets, quality checks and decision-focused reporting. If you are reviewing how predictions flow into your warehouse and dashboards, contact Actiknow to discuss the data and reporting architecture. This is an invitation to assess fit, not a claim of a particular implementation outcome.
Sources and further reading
Google Cloud: ML.METRICS reference (Preview status, syntax, output metrics and label semantics).
Google Cloud: BigQuery release notes, September 10, 2026 (Preview announcement).
Google Cloud: BigQuery ML model evaluation overview (relationship to ML.EVALUATE).

