Your team has trained a binary logistic-regression model called marketing.churn_model in BigQuery ML using the default automatic data split (80% training, 20% evaluation). You now want to inspect the model's quality without incurring additional query costs or creating a separate test table. Which SQL statement both satisfies these requirements and returns metrics such as accuracy, precision, recall, F1 score, and log_loss?
SELECT * FROM ML.FEATURE_INFO(MODEL marketing.churn_model);
SELECT * FROM ML.EVALUATE(MODEL marketing.churn_model, TABLE marketing.test_churn);
SELECT * FROM ML.PREDICT(MODEL marketing.churn_model, (SELECT * FROM marketing.customers));
SELECT * FROM ML.EVALUATE(MODEL marketing.churn_model);
When you omit the TABLE (or sub-query) argument, ML.EVALUATE uses the evaluation data that BigQuery ML automatically held out during training, so no extra query processing of external data is billed. Calling ML.EVALUATE in this way returns the standard classification metrics-including accuracy, precision, recall, F1 score, log_loss, and others-for logistic-regression models. Supplying a TABLE clause (or using ML.PREDICT or ML.FEATURE_INFO) would either evaluate on new data-incurring additional query charges-or serve a different purpose entirely.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is the purpose of ML.EVALUATE in BigQuery ML?
Open an interactive chat with Bash
What are accuracy, precision, recall, and F1 score metrics?
Open an interactive chat with Bash
Why does BigQuery ML split data into training and evaluation sets automatically?
Open an interactive chat with Bash
What does ML.EVALUATE do in BigQuery ML?
Open an interactive chat with Bash
Why does using ML.EVALUATE with the held-out dataset save costs?
Open an interactive chat with Bash
What are the key metrics provided by ML.EVALUATE for a logistic regression model?
Open an interactive chat with Bash
GCP Professional Data Engineer
Preparing and using data for analysis
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
Pass with Confidence.
IT & Cybersecurity Package
You have hit the limits of our free tier, become a Premium Member today for unlimited access.
Military, Healthcare worker, Gov. employee or Teacher? See if you qualify for a Community Discount.
Monthly
$19.99 $11.99
$11.99/mo
Billed monthly, Cancel any time.
$19.99 after promotion ends
3 Month Pass
$44.99 $26.99
$8.99/mo
One time purchase of $26.99, Does not auto-renew.
$44.99 after promotion ends
Save $18!
MOST POPULAR
Annual Pass
$119.99 $71.99
$5.99/mo
One time purchase of $71.99, Does not auto-renew.
$119.99 after promotion ends
Save $48!
BEST DEAL
Lifetime Pass
$189.99 $113.99
One time purchase, Good for life.
Save $76!
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .