×
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 are the hyperparameters m and b from the video?

by Victor Marcu / Tuesday, 10 February 2026 / Published in Artificial Intelligence, EITC/AI/GCML Google Cloud Machine Learning, First steps in Machine Learning, The 7 steps of machine learning

The question about the hyperparameters m and b refers to a common point of confusion in introductory machine learning, particularly in the context of linear regression, as typically introduced in Google Cloud Machine Learning context. To clarify this, it is essential to distinguish between model parameters and hyperparameters, using precise definitions and examples.

1. Understanding Parameters and Hyperparameters

Model Parameters: In machine learning, parameters are the internal variables of a model that are learned from the training data through the learning or training process. These variables directly define the model's behavior. For linear regression—often the first example presented in machine learning tutorials—the most common parameters are the slope and intercept in the equation of a straight line:

    \[ y = m x + b \]

– m: The slope of the line.
– b: The y-intercept of the line.

During training, the machine learning algorithm finds the optimal values of m and b so that the line best fits the data according to a loss function, commonly mean squared error.

Hyperparameters: Hyperparameters, on the other hand, are configuration settings external to the model that are set before the learning process begins. They are not learned from the data but instead control aspects of the training process or the structure of the model itself. Examples include the learning rate, number of training epochs, batch size, regularization strength, and, in some algorithms, the number of hidden layers or the number of trees in a random forest. Determining the optimal set of hyperparameters is often accomplished through processes such as grid search, random search, or Bayesian optimization.

2. The Role of m and b in Model Training

In the linear regression context often discussed in introductory machine learning videos, m and b are not hyperparameters. They are parameters. The distinction is based on their function:

– They are *learned from the data* by the algorithm during training.
– They directly define the predictive function of the model (i.e., the line fitted through the data points).
– They change as the algorithm iteratively improves the fit to the data.

For instance, if you provide different training data to the same linear regression algorithm, the resulting values of m and b will likely change, reflecting the new data's underlying trend.

3. Examples of Hyperparameters in Linear Regression and Other Algorithms

While m and b are parameters, linear regression and other models do have hyperparameters. In the case of basic, unregularized linear regression, hyperparameters might be minimal or even absent, but in practical applications or more advanced versions, common hyperparameters include:

– Learning Rate: Determines the size of steps taken in the direction of the gradient during optimization. Too high a learning rate can cause the model to overshoot the minimum; too low can result in slow convergence.
– Number of Epochs: The number of complete passes through the training dataset. Selecting too few epochs may result in underfitting, while too many may lead to overfitting.
– Batch Size: The number of training samples used to compute each update to the model parameters. A smaller batch size can lead to noisier updates but may generalize better.
– Regularization Strength (e.g., Ridge or Lasso Regression): Controls the penalty for large parameter values, helping prevent overfitting by discouraging overly complex models.

These hyperparameters must be selected or tuned by the practitioner, typically before training the model.

4. Didactic Value of the Distinction

Understanding the difference between parameters and hyperparameters is foundational in machine learning. This distinction impacts model training, experimentation, and deployment strategies. For example:

– Model Training: Only parameters are updated during training via algorithms such as gradient descent. Hyperparameters remain fixed unless the training loop is explicitly re-run with different values.
– Experimentation: Hyperparameter tuning is a separate process from training. Practitioners often set aside a validation set or use cross-validation to evaluate the effect of different hyperparameter values.
– Reproducibility: Documenting hyperparameters is important for reproducibility, while model parameters are typically saved with the trained model for inference.

5. Common Misconceptions and Clarifications

A recurring misconception is that any variable in a model is a hyperparameter. The video referenced in the question likely uses m and b to illustrate how a model "learns" from data, possibly using animation or stepwise fitting. These variables change as the model optimizes its loss function. Hyperparameters, in contrast, might be discussed in the context of setting up the learning process, such as specifying a learning rate for gradient descent:

Example:

– Linear regression with gradient descent might use a learning rate (\alpha) as a hyperparameter. The values of m and b start at initial guesses (often random or zero) and are updated iteratively according to the computed gradients and the learning rate.

Another example from logistic regression:

– Model parameters: weights and bias (analogous to m and b in linear regression).
– Hyperparameters: learning rate, number of iterations, regularization type and strength.

6. Broader Perspectives and Applications

The distinction is not unique to linear regression. In neural networks, for example:

– Parameters: Weights and biases of each neuron, learned during training.
– Hyperparameters: Number of layers, number of neurons per layer, activation functions, learning rate, batch size, optimizer type, and others.

In decision trees:

– Parameters: The specific splits chosen at each node, learned from data.
– Hyperparameters: Maximum depth of the tree, minimum samples per leaf, criterion for split selection.

7. Conclusion and Practical Tips

When approaching a new machine learning problem, a clear understanding of which variables are parameters (to be learned) and which are hyperparameters (to be set before training) enables more efficient experimentation and better model performance. Proper hyperparameter tuning can dramatically improve results, while correct parameter estimation ensures the model accurately captures the patterns in the data.

In direct response to the original question: m and b are parameters, not hyperparameters, in the context of the video and standard machine learning practice. The hyperparameters are other, external settings such as those controlling the optimization process or model complexity. Recognizing this distinction is fundamental for successful machine learning workflows.

Other recent questions and answers regarding EITC/AI/GCML Google Cloud Machine Learning:

  • How is a neural network built?
  • How can ML be used in construction and during the construction warranty period?
  • How are the algorithms that we can choose created?
  • How is an ML model created?
  • What are the most advanced uses of machine learning in retail?
  • Why is machine learning still weak with streamed data (for example, trading)? Is it because of data (not enough diversity to get the patterns) or too much noise?
  • Why, when the loss consistently decreases, does it indicate ongoing improvement?
  • How do ML algorithms learn to optimize themselves so that they are reliable and accurate when used on new/unseen data?
  • What data do I need for machine learning? Pictures, text?
  • Answer in Slovak to the question "How can I know which type of learning is the best for my situation?

View more questions and answers in EITC/AI/GCML Google Cloud Machine Learning

More questions and answers:

  • Field: Artificial Intelligence
  • Programme: EITC/AI/GCML Google Cloud Machine Learning (go to the certification programme)
  • Lesson: First steps in Machine Learning (go to related lesson)
  • Topic: The 7 steps of machine learning (go to related topic)
Tagged under: Artificial Intelligence, Hyperparameters, Linear Regression, Machine Learning, Model Parameters, Training Process
Home » Artificial Intelligence » EITC/AI/GCML Google Cloud Machine Learning » First steps in Machine Learning » The 7 steps of machine learning » » What are the hyperparameters m and b from the video?

Certification Center

USER MENU

  • My Account

CERTIFICATE CATEGORY

  • EITC Certification (105)
  • 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 by

    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
    CHAT WITH SUPPORT
    Do you have any questions?
    We will reply here and by email. Your conversation is tracked with a support token.