Softwr

Machine Learning · head to head

BigQuery ML vs Optuna

BigQuery ML logo

BigQuery ML

Machine Learning

Machine learning in BigQuery using SQL

From
Free
Free plan
Yes
Optuna logo

Optuna

Machine Learning

Open-source Python framework for automated hyperparameter optimisation

From
Free
Free plan
Yes

The short version

  • Optuna is an MIT-licensed hyperparameter optimisation framework.
  • Optuna is free; BigQuery ML starts at $5/mo.
  • Only BigQuery ML lists SQL-based ML; only Optuna lists define-by-run search spaces.
  • Where BigQuery ML falls short: not available in BigQuery's Standard edition, so the cheapest tier cannot use it.
  • Where Optuna falls short: searches are only as good as the objective and search space defined.

How do BigQuery ML and Optuna differ?

BigQuery ML and Optuna differ on pricing model (Usage-based against Open-source). Only the attributes on which BigQuery ML and Optuna actually diverge.

Attributes where BigQuery ML and Optuna differ
AttributeBigQuery MLOptuna
Pricing modelUsage-basedOpen-source

Identical on both: starting price (Free), free tier (Yes), platforms (Web).

Not yet recorded: category for Optuna, founded for Optuna.

Which features does each one have?

They share no listed features; 10 appear only for BigQuery ML and 7 only for Optuna. Drawn from each product's published feature list. An absence here means we hold no record of it - not that the product lacks it.

Only in BigQuery ML

  • SQL-based ML
  • AutoML Tables
  • Model export
  • Prediction functions
  • Feature preprocessing
  • BigQuery
  • Vertex AI
  • TensorFlow

Only in Optuna

  • Define-by-run search spaces
  • Pruning of unpromising trials
  • Parallel and distributed search
  • Framework-agnostic integrations
  • Optuna Dashboard
  • OptunaHub feature sharing
  • Multiple search algorithms

What is each one used for?

BigQuery ML is most often brought in for training models in SQL without exporting data; Optuna for tuning deep learning models. The jobs each tool is most often brought in to do.

BigQuery ML

  • Training models in SQL without exporting datanot Optuna
  • Linear and logistic regression on warehouse datanot Optuna
  • K-means clustering and matrix factorisation for recommendationsnot Optuna
  • Time series forecasting with ARIMA_PLUSnot Optuna
  • Running imported ONNX, TensorFlow or XGBoost models against BigQuery datanot Optuna

Optuna

  • Tuning deep learning modelsnot BigQuery ML
  • Tuning gradient-boosted treesnot BigQuery ML
  • Pruning slow experiments earlynot BigQuery ML
  • Parallel searches across machinesnot BigQuery ML

Where do BigQuery ML and Optuna fall short?

BigQuery ML's most cited limit: not available in BigQuery's Standard edition, so the cheapest tier cannot use it. Optuna's: searches are only as good as the objective and search space defined. Documented limitations, not opinions. Every one is a constraint you would hit in normal use.

BigQuery ML

  • Not available in BigQuery's Standard edition, so the cheapest tier cannot use it
  • Billed through BigQuery compute and storage rather than as its own product, so training cost tracks data scanned
  • Remote models incur extra Agent Platform charges on top
  • Externally trained model types such as boosted trees and AutoML run through Agent Platform rather than inside BigQuery

Optuna

  • Searches are only as good as the objective and search space defined
  • Distributed runs need a shared storage backend set up by the user
  • Works only with Python code, so non-Python teams cannot use it
  • Tuning only; no experiment tracking or deployment features

How much do BigQuery ML and Optuna cost?

BigQuery ML has a free plan, with paid plans from $5/mo; Optuna is free to use. Plan by plan below, from each vendor's own pricing page.

BigQuery ML

Free
  • Free TierFree
    • 10GB storage
    • 1TB queries
  • On-Demand$5/tb
    • Pay per TB scanned
    • ML training costs

Optuna

Free

No published plan breakdown. See the Optuna review.

Which should you pick?

Choose BigQuery ML if

  • You need sql-based ml.
  • You want to start without paying.
  • You also want automl tables.

Choose Optuna if

  • You need define-by-run search spaces.
  • You want to start without paying.
  • You also want pruning of unpromising trials.

Questions people ask

Is BigQuery ML or Optuna better?
It depends on the job. BigQuery ML fits training models in SQL without exporting data; Optuna fits tuning deep learning models. BigQuery ML starts at Free and Optuna at Free.
Which is cheaper, BigQuery ML or Optuna?
BigQuery ML starts at Free and Optuna at Free.
Does BigQuery ML or Optuna run on more platforms?
Both run on Web, so platform support will not decide this one for you.
Can I use BigQuery ML for free?
Both have a free tier, so you can try either at no cost before committing.
What is BigQuery ML best used for?
BigQuery ML is most often used for training models in sql without exporting data, linear and logistic regression on warehouse data, k-means clustering and matrix factorisation for recommendations, time series forecasting with arima_plus. Of those, training models in sql without exporting data and linear and logistic regression on warehouse data are not what Optuna is typically brought in for.
What can BigQuery ML do that Optuna cannot?
BigQuery ML covers SQL-based ML, AutoML Tables, Model export, Prediction functions. Optuna covers Define-by-run search spaces, Pruning of unpromising trials, Parallel and distributed search, Framework-agnostic integrations.

Answered from the vendors’ own pages

BigQuery ML: How much does Google Cloud BigQuery ML cost?

BigQuery ML pricing is not specified separately on Google Cloud's pricing page. It follows the same pay-as-you-go model as BigQuery, charging per terabyte of data scanned during analysis. Customers receive $300 in free credits and can use 20+ products free up to monthly limits.

Source
Optuna: What licence does Optuna use?

The MIT License.

Source
BigQuery ML: Does Google Cloud offer a free trial?

Yes, new customers get $300 in free credits and all customers can use 20+ Google Cloud products free up to their monthly usage limits.

Source
Optuna: Who develops Optuna?

Preferred Networks, which first introduced it in 2018.

Source
Optuna: What Python version is needed?

Python 3.10 or newer.

Source
Share

Related pages

Other head to heads