×
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 The 7 steps of machine learning:

  • How is data training done?
  • How is data training done? Is it done using libraries available for the Python language, or are there specific programs for this purpose?
  • What considerations are relevant for choosing the right training algorithm to start with?
  • What are the techniques for handling missing data? How do I realize I am missing data? Are there general references on pretraining treatment of data?
  • How similar is machine learning with genetic optimization of an algorithm?
  • Can we use streaming data to train and use a model continuously and improve it at the same time?
  • What is PINN-based simulation?
  • What data do I need for machine learning? Pictures, text?
  • What is the most effective way to create test data for the ML algorithm? Can we use synthetic data?
  • Can PINNs-based simulation and dynamic knowledge graph layers be used as a fabric together with an optimization layer in a competitive environment model? Is this okay for small sample size ambiguous real-world data sets?

View more questions and answers in The 7 steps of 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

    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.