← Back to list

What are hyperparameters?

Hyperparameters are the settings or configurations of a machine learning model that are set before training and control how the model…

Nivethabaskar · 2026-03-30 04:45 · 0 claps · 0.9 min read
#hyperparameter #machine-learning #bayesian-optimization #neural-networks
Open on Medium ↗
Wiki topics: ML · Machine Learning GEN · Genomics & Sequencing EDU · Education & Learning

What are hyperparameters?

Hyperparameters are the settings or configurations of a machine learning model that are set before training and control how the model learns.

🔍 In simple terms:

They are like knobs” you tune manually to get the best performance.

🧠 Example:

In Linear Regression, there aren’t many hyperparameters, but in more complex models like:

  • **Neural Network** → number of layers, learning rate
  • Random Forest → number of trees, depth of trees

These values must be chosen before training starts.

⚙️ Common Hyperparameters:

  • Learning rate → how fast the model updates
  • Number of epochs → how many times the model sees the data
  • Batch size → number of samples per update
  • Number of layers / neurons (in neural networks)
  • Regularization strength

❗ Hyperparameters vs Parameters:

  • Parameters → learned automatically during training (e.g., weights in a neural network)
  • Hyperparameters → set manually before training

🛠️ How to Choose Them:

📌 Quick Analogy:

Think of cooking:

  • Ingredients & quantities learned while cooking → parameters
  • Recipe settings (temperature, time, method) → hyperparameters

메타데이터
post_id
700f8cebe23c
slug
what-are-hyperparameters-700f8cebe23c
url
https://medium.com/@nivethabaskar88/what-are-hyperparameters-700f8cebe23c
canonical_url
https://medium.com/@nivethabaskar88/what-are-hyperparameters-700f8cebe23c
author_url
https://medium.com/@nivethabaskar88
status
ok
fetched_at
2026-07-23 04:34:32