×
1 Choose EITC/EITCA Certificates
2 Learn and take online exams
3 Get your IT skills certified

Confirm your IT skills and competencies under the European IT Certification framework from anywhere in the world fully online.

EITCA Academy

Digital skills attestation standard by the European IT Certification Institute aiming to support Digital Society development

LOG IN TO YOUR ACCOUNT

CREATE AN ACCOUNT FORGOT YOUR PASSWORD?

FORGOT YOUR PASSWORD?

AAH, WAIT, I REMEMBER NOW!

CREATE AN ACCOUNT

ALREADY HAVE AN ACCOUNT?
EUROPEAN INFORMATION TECHNOLOGIES CERTIFICATION ACADEMY - ATTESTING YOUR PROFESSIONAL DIGITAL SKILLS
  • SIGN UP
  • LOGIN
  • INFO

EITCA Academy

EITCA Academy

The European Information Technologies Certification Institute - EITCI ASBL

Certification Provider

EITCI Institute ASBL

Brussels, European Union

Governing European IT Certification (EITC) framework in support of the IT professionalism and Digital Society

  • CERTIFICATES
    • EITCA ACADEMIES
      • EITCA ACADEMIES CATALOGUE<
      • EITCA/CG COMPUTER GRAPHICS
      • EITCA/IS INFORMATION SECURITY
      • EITCA/BI BUSINESS INFORMATION
      • EITCA/KC KEY COMPETENCIES
      • EITCA/EG E-GOVERNMENT
      • EITCA/WD WEB DEVELOPMENT
      • EITCA/AI ARTIFICIAL INTELLIGENCE
    • EITC CERTIFICATES
      • EITC CERTIFICATES CATALOGUE<
      • COMPUTER GRAPHICS CERTIFICATES
      • WEB DESIGN CERTIFICATES
      • 3D DESIGN CERTIFICATES
      • OFFICE IT CERTIFICATES
      • BITCOIN BLOCKCHAIN CERTIFICATE
      • WORDPRESS CERTIFICATE
      • CLOUD PLATFORM CERTIFICATENEW
    • EITC CERTIFICATES
      • INTERNET CERTIFICATES
      • CRYPTOGRAPHY CERTIFICATES
      • BUSINESS IT CERTIFICATES
      • TELEWORK CERTIFICATES
      • PROGRAMMING CERTIFICATES
      • DIGITAL PORTRAIT CERTIFICATE
      • WEB DEVELOPMENT CERTIFICATES
      • DEEP LEARNING CERTIFICATESNEW
    • CERTIFICATES FOR
      • EU PUBLIC ADMINISTRATION
      • TEACHERS AND EDUCATORS
      • IT SECURITY PROFESSIONALS
      • GRAPHICS DESIGNERS & ARTISTS
      • BUSINESSMEN AND MANAGERS
      • BLOCKCHAIN DEVELOPERS
      • WEB DEVELOPERS
      • CLOUD AI EXPERTSNEW
  • FEATURED
  • SUBSIDY
  • HOW IT WORKS
  •   IT ID
  • ABOUT
  • CONTACT
  • MY ORDER
    Your current order is empty.
EITCIINSTITUTE
CERTIFIED

What is the difference between using CREATE MODEL with LINEAR_REG in BigQuery ML versus training a custom model with TensorFlow in Vertex AI for time series prediction?

by JOSE ALFONSIN PENA / Monday, 10 November 2025 / Published in Artificial Intelligence, EITC/AI/GCML Google Cloud Machine Learning, Advancing in Machine Learning, GCP BigQuery and open datasets

The distinction between using the `CREATE MODEL` statement with `LINEAR_REG` in BigQuery ML and training a custom model with TensorFlow in Vertex AI for time series prediction lies in multiple dimensions, including model complexity, configurability, scalability, operational workflow, integration into data pipelines, and typical use cases. Both approaches offer unique advantages and trade-offs, and the choice between them should be grounded in the requirements of the specific machine learning task, organizational expertise, and the characteristics of the dataset.

1. BigQuery ML (`CREATE MODEL … LINEAR_REG`)

BigQuery ML is a managed, in-database machine learning platform integrated directly into Google BigQuery. Its aim is to lower the barrier to entry for machine learning by allowing SQL users to build and deploy models using familiar SQL syntax. The `LINEAR_REG` model in BigQuery ML implements linear regression for both regression and time series forecasting tasks.

Features and Workflow

– SQL-First Approach: Modeling is performed using SQL, significantly reducing the need for advanced programming skills. The workflow is approachable for analysts and data engineers accustomed to SQL.
– Example:

sql
  CREATE OR REPLACE MODEL `project.dataset.model_name`
  OPTIONS(
    model_type='linear_reg',
    input_label_cols=['target_column']
  ) AS
  SELECT
    feature1,
    feature2,
    feature3,
    target_column
  FROM
    `project.dataset.table`
  

– Automatic Data Handling: BigQuery ML automates data preprocessing steps such as data splitting, feature normalization, and, in some cases, handling categorical features with encoding.
– Integration: As BigQuery ML operates within the BigQuery ecosystem, there is seamless access to large datasets without data export or movement. Predictions can be made using SQL queries, integrating naturally with downstream data analysis and reporting workflows.

Time Series Prediction Capabilities

– Supported Models: While BigQuery ML also supports ARIMA-based models (`ARIMA_PLUS`), the `LINEAR_REG` approach applies linear regression techniques, which may utilize time as a feature or lagged variables to predict future values.
– Limitations:
– Model Complexity: `LINEAR_REG` is inherently simple and best suited to problems where relationships between variables and the target are expected to be linear.
– Feature Engineering: Users may need to manually include lagged features, moving averages, or time-based encoding to capture temporal dependencies, as there is limited built-in support for advanced time series structures.
– Customization: Options for model customization (e.g., regularization parameters) are limited compared to deep learning frameworks.

Use Cases

– Prototyping and Rapid Iteration: Quick model development when advanced feature engineering or model complexity is not required.
– Operational Analytics: Embedding ML predictions directly within analytics pipelines, such as business intelligence dashboards.
– Resource Constraints: Situations where minimal infrastructure management and coding are priorities.

2. Vertex AI with Custom TensorFlow Models

Vertex AI is Google Cloud’s unified platform for machine learning and AI development, supporting the full ML lifecycle, including data preparation, model training, hyperparameter tuning, deployment, and monitoring. When using TensorFlow to build custom models, practitioners have fine-grained control over every aspect of model design and training.

Features and Workflow

– Custom Code and Architecture: Users write Python code using TensorFlow (or other supported frameworks). This allows for the definition of arbitrary neural network architectures, loss functions, and custom layers.
– Example:

python
  import tensorflow as tf

  model = tf.keras.Sequential([
      tf.keras.layers.LSTM(128, input_shape=(timesteps, features)),
      tf.keras.layers.Dense(1)
  ])

  model.compile(optimizer='adam', loss='mse')
  model.fit(train_X, train_y, epochs=20, batch_size=32, validation_data=(val_X, val_y))
  

– Advanced Time Series Modeling:
– Recurrent Neural Networks (RNNs), Long Short-Term Memory (LSTM) networks, and Gated Recurrent Units (GRUs) allow for the modeling of complex temporal dependencies, seasonality, trend, and nonlinear relationships.
– Sequence-to-Sequence Models and Attention Mechanisms can be implemented for advanced forecasting tasks.
– Data Handling: Data must typically be preprocessed outside Vertex AI or within custom training code. This allows complete flexibility in transforming, windowing, normalizing, and augmenting time series data.
– Hyperparameter Tuning and Experiment Tracking: Vertex AI provides built-in support for distributed hyperparameter tuning, experiment tracking, and model versioning.

Scalability and Operations

– Compute Flexibility: Training jobs can be run on CPUs, GPUs, or TPUs, with the ability to scale to large datasets and complex models.
– Serving and Pipelines: Deployment to Vertex AI endpoints supports REST API access, batch prediction, and integration into production pipelines.

Use Cases

– Complex Time Series Forecasting: Applications requiring the modeling of long-range dependencies, multiple correlated time series, or non-linear interactions.
– Custom Loss Functions or Metrics: When standard linear regression loss is insufficient.
– Research and Development: Experimenting with novel architectures or modeling approaches.
– High-Scale Production: Scenarios demanding custom serving logic, latency optimization, or integration with other AI tools.

3. Comparative Analysis

a. Model Complexity and Expressiveness

– BigQuery ML (`LINEAR_REG`): Restricted to simple, linear relationships. Suitable when the time series is well explained by linear trends and exogenous variables. Not capable of modeling nonlinear patterns or capturing intricate temporal dependencies without significant manual feature engineering.
– Vertex AI with TensorFlow: Unbounded model complexity. Capable of implementing deep learning models that can autonomously learn complex patterns, interactions, and hierarchical representations from the data. Particularly advantageous for tasks where historical values, seasonality, and trends are not linearly separable.

b. Data Preparation and Feature Engineering

– BigQuery ML: Automated handling of standard preprocessing. Feature engineering for time series (such as lagged features, rolling statistics) must be performed explicitly in the SQL used to CREATE MODEL.
– Vertex AI with TensorFlow: Users are responsible for all data preparation. While this increases the burden on practitioners, it also grants maximum flexibility—custom windowing, feature scaling, and domain-specific augmentations are all possible.

c. Scalability and Performance

– BigQuery ML: Highly scalable within the limits of BigQuery, leveraging distributed SQL execution. Optimized for tabular data with moderate modeling requirements.
– Vertex AI with TensorFlow: Scales horizontally and vertically based on resource allocation. Supports distributed training across multiple machines or accelerators, accommodating very large datasets and models.

d. Operational Integration

– BigQuery ML: Predictions are generated directly via SQL queries. This is highly beneficial for embedding ML outputs into existing data analytics pipelines, reports, or dashboards without additional infrastructure.
– Vertex AI with TensorFlow: Model deployment is handled through managed endpoints, enabling integration into microservices and applications via APIs. Batch and online prediction workflows are supported. More suited to operationalizing ML in systems outside the data warehouse.

e. Customization and Hyperparameter Tuning

– BigQuery ML: Limited options for hyperparameter customization. The system sets sensible defaults and offers only basic parameter tuning (such as learning rate or regularization strength).
– Vertex AI with TensorFlow: Extensive customization. Users can define all aspects of the training process and leverage Vertex AI’s managed hyperparameter tuning services.

f. Cost and Resource Management

– BigQuery ML: Costs are based on the amount of data processed during training and prediction. No need to manage infrastructure.
– Vertex AI with TensorFlow: Costs are determined by the compute and storage resources allocated for training and serving. Responsibility for resource selection and management lies with the user, though Vertex AI automates much of the operational overhead.

4. Illustrative Examples

Example 1: Sales Forecasting with BigQuery ML

Suppose a retail company wishes to forecast daily sales for the next 30 days using historical sales data and external features such as promotions and holidays.

– Approach: Use `CREATE MODEL … LINEAR_REG`.
– Data Preparation: SQL query creates lag features (e.g., sales from previous days) and encodes holiday information.
– Training:

sql
  CREATE OR REPLACE MODEL `retail.sales_forecast_model`
  OPTIONS(model_type='linear_reg', input_label_cols=['sales']) AS
  SELECT
    date,
    sales_lag_1,
    sales_lag_7,
    is_holiday,
    promotion_flag,
    sales
  FROM
    `retail.sales_data`
  

– Prediction: Generate forecasts by running a simple SQL SELECT query with the model.

Example 2: Energy Consumption Forecasting with Vertex AI and TensorFlow

An energy provider aims to forecast hourly electricity demand using several years of historical data, weather variables, and calendar features.

– Approach: Train a deep LSTM network in TensorFlow, orchestrated via Vertex AI.
– Data Preparation: Data is preprocessed to create input windows of historical consumption and aligned with exogenous variables.
– Model Definition:

python
  model = tf.keras.Sequential([
      tf.keras.layers.LSTM(128, input_shape=(24, num_features)),
      tf.keras.layers.Dense(1)
  ])
  model.compile(optimizer='adam', loss='mae')
  

– Training: Model is trained on Vertex AI using custom training jobs.
– Serving: Model is deployed to a Vertex AI endpoint, accepting input windows and returning hourly forecasts via REST API.

5. Decision Factors

The selection between BigQuery ML’s `LINEAR_REG` and custom TensorFlow models on Vertex AI depends on factors such as:

– Data Characteristics: Simpler, tabular, or linearly-behaved time series suit BigQuery ML. Highly nonlinear, multi-variate, long-sequence, or seasonally complex data favor custom TensorFlow models.
– Required Model Interpretability: Linear regression models are inherently interpretable, with coefficients directly representing feature impact. Deep learning models are generally opaque, though techniques such as SHAP or integrated gradients may be used to interpret predictions.
– Infrastructure and Skillset: Organizations with strong SQL expertise and existing BigQuery pipelines will benefit from in-database ML. Teams with experience in Python, TensorFlow, and ML engineering may prefer the flexibility and power of Vertex AI.
– Speed of Development: Prototyping and iteration are faster in BigQuery ML due to its declarative nature and minimal setup. Custom TensorFlow models require code, infrastructure configuration, and often longer development cycles.
– Productionization Needs: If predictions need to be surfaced in real-time applications or microservices, Vertex AI’s model endpoints provide direct API access. For batch reporting and analytics within the warehouse, BigQuery ML is more natural.
– Cost and Maintenance: BigQuery ML minimizes operational overhead, whereas custom models on Vertex AI require ongoing management of training jobs, endpoints, and resource utilization.

6. Advanced Considerations

a. Handling Multiple Time Series

– BigQuery ML: Requires manual feature engineering to represent multiple time series (e.g., adding an identifier column and building separate models or using the identifier as a feature).
– Vertex AI with TensorFlow: Can natively handle multiple time series within the same model using embedding layers or sequence-to-sequence architectures.

b. Incorporating Exogenous Variables

– Both approaches support the inclusion of exogenous variables (e.g., weather, holidays) as features, but preprocessing and feature representation may be more flexible in Vertex AI.

c. Automated Machine Learning (AutoML)

– Vertex AI: Offers AutoML for tables and time series, automating feature engineering, model selection, and hyperparameter tuning. This bridges the gap between the simplicity of BigQuery ML and the flexibility of custom TensorFlow coding.

d. Model Monitoring and Retraining

– Vertex AI: Provides managed tools for model monitoring, drift detection, and automated retraining pipelines.
– BigQuery ML: Model maintenance and retraining must be scheduled through standard BigQuery jobs or orchestrated via external workflow tools.

7. Security and Compliance

– BigQuery ML: Benefits from BigQuery's audited data access, fine-grained permissions, and integration with data governance tools.
– Vertex AI: Requires careful configuration of data access permissions, service accounts, and network security to align with compliance requirements.

8. Practical Recommendations

– Use BigQuery ML with `LINEAR_REG` when:
– The modeling task is exploratory, straightforward, or integrated within analytic workflows.
– The time series exhibits linear behavior, or the problem does not require deep temporal modeling.
– Simplicity, speed, and ease of use are prioritized over maximal predictive accuracy.
– The practitioner has limited experience with Python or machine learning frameworks.
– Use Vertex AI with custom TensorFlow models when:
– The prediction task is complex, involving long-range dependencies, nonlinear patterns, or multiple interacting time series.
– There is a need for custom model architectures, loss functions, or advanced feature encoding.
– The solution must scale to high-throughput, low-latency production APIs or integrate with broader cloud-native machine learning pipelines.
– The organization has machine learning engineering expertise and resources to support infrastructure management and model development.

Other recent questions and answers regarding GCP BigQuery and open datasets:

  • What is the TensorFlow playground?
  • What are the limitations in working with large datasets in machine learning?
  • Can machine learning do some dialogic assitance?
  • What is the TensorFlow playground?
  • Can Google cloud solutions be used to decouple computing from storage for a more efficient training of the ML model with big data?
  • Does the Google Cloud Machine Learning Engine (CMLE) offer automatic resource acquisition and configuration and handle resource shutdown after the training of the model is finished?
  • Is it possible to train machine learning models on arbitrarily large data sets with no hiccups?
  • When using CMLE, does creating a version require specifying a source of an exported model?
  • Can CMLE read from Google Cloud storage data and use a specified trained model for inference?
  • How can users enhance their data analysis skills by combining BigQuery public datasets with tools like Data Lab, Facets, and TensorFlow?

View more questions and answers in GCP BigQuery and open datasets

More questions and answers:

  • Field: Artificial Intelligence
  • Programme: EITC/AI/GCML Google Cloud Machine Learning (go to the certification programme)
  • Lesson: Advancing in Machine Learning (go to related lesson)
  • Topic: GCP BigQuery and open datasets (go to related topic)
Tagged under: Artificial Intelligence, BigQuery ML, Google Cloud Platform, TensorFlow, Time Series Forecasting, Vertex AI
Home » Artificial Intelligence » EITC/AI/GCML Google Cloud Machine Learning » Advancing in Machine Learning » GCP BigQuery and open datasets » » What is the difference between using CREATE MODEL with LINEAR_REG in BigQuery ML versus training a custom model with TensorFlow in Vertex AI for time series prediction?

Certification Center

USER MENU

  • My Account

CERTIFICATE CATEGORY

  • EITC Certification (117)
  • EITCA Certification (9)

What are you looking for?

  • Introduction
  • How it works?
  • EITCA Academies
  • EITCI DSJC Subsidy
  • Full EITC catalogue
  • Your order
  • Featured
  •   IT ID
  • EITCA reviews (Medium publ.)
  • About
  • Contact

EITCA Academy is a part of the European IT Certification framework

The European IT Certification framework has been established in 2008 as a Europe based and vendor independent standard in widely accessible online certification of digital skills and competencies in many areas of professional digital specializations. The EITC framework is governed by the European IT Certification Institute (EITCI), a non-profit certification authority supporting information society growth and bridging the digital skills gap in the EU.
Eligibility for EITCA Academy 90% EITCI DSJC Subsidy support
90% of EITCA Academy fees subsidized in enrolment

    EITCA Academy Secretary Office

    European IT Certification Institute ASBL
    Brussels, Belgium, European Union

    EITC / EITCA Certification Framework Operator
    Governing European IT Certification Standard
    Access contact form or call +32 25887351

    Follow EITCI on X
    Visit EITCA Academy on Facebook
    Engage with EITCA Academy on LinkedIn
    Check out EITCI and EITCA videos on YouTube

    Funded by the European Union

    Funded by the European Regional Development Fund (ERDF) and the European Social Fund (ESF) in series of projects since 2007, currently governed by the European IT Certification Institute (EITCI) since 2008

    Information Security Policy | DSRRM and GDPR Policy | Data Protection Policy | Record of Processing Activities | HSE Policy | Anti-Corruption Policy | Modern Slavery Policy

    Automatically translate to your language

    Terms and Conditions | Privacy Policy
    EITCA Academy
    • EITCA Academy on social media
    EITCA Academy


    © 2008-2026  European IT Certification Institute
    Brussels, Belgium, European Union

    TOP

    We care about your privacy

    EITCI uses cookies and similar technologies to keep this site secure, remember your choices, provide personalized experience, measure the traffic, serve more relevant content and certification programmes. You can accept all cookies or customize your preferences. Cookies are variables used to store website specific information on your device to facilitate processing of data for personalized website visit, such as login to your account, accessing the programmes, placing enrolment orders in chosen programmes and improving your EITC certification journey. You can change or withdraw your consent at any time by clicking the Consent Preferences button at the left-bottom of your screen. We respect your choices and are committed to providing you with a transparent and secure browsing experience, which may be limited when cookies aren't accepted. For more details refer to the Privacy Policy
    Customize Consent Preferences
    We use cookies to help you navigate efficiently and perform certain functions. You will find detailed information about all cookies under each consent category below.
    The cookies categorized as Necessary are stored on your browser as they are essential for enabling the basic functionalities of the site.
    To learn more about how Google processes personal information, visit: Google privacy policy

    Necessary

    Always Active

    Necessary cookies are required to enable the basic features of this site, such as providing secure log-in or adjusting your consent preferences. These cookies do not store any personally identifiable data.

    Functional

    Functional cookies help perform certain functionalities like sharing the content of the website on social media platforms, collecting feedback, and other third-party features.

    Preferences

    Stores personalization choices such as interface preferences.

    External media and social features

    Allows embedded video, social, chat, and external interactive services that may set their own cookies. Keep off until the user chooses these features.

    Analytics

    Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.

    Marketing and conversions

    Advertisement cookies are used to provide visitors with customized advertisements based on the pages you visited previously and to analyze the effectiveness of the ad campaigns.

    CHAT WITH SUPPORT
    Do you have any questions?
    Attach files with the paperclip or paste screenshots into the message box (Ctrl+V). Max 5 file(s), 10 MB each.
    We will reply here and by email. Your conversation is tracked with a support token.