Skip to main content
Crowdfunding
Python + AI for Geeks
Practice

Hyperparameters That Influence Model Performance

When preparing for an exam, setting up a study plan that includes study time, breaks, and methods can significantly impact your grades.

Similarly, when training an AI model, you set Hyperparameters to determine the model's learning approach.

Hyperparameters are values that define how the model learns and are elements that need to be set manually before training.

Unlike weights or biases that are adjusted automatically during learning, hyperparameters must be preset, greatly impacting model performance.


A model that is well-trained to make excellent predictions for any problem is said to have achieved Convergence.

Conversely, a poorly performing model is said to have Divergence.

Hyperparameters are crucial in determining whether a model converges or diverges, so it's essential to clearly understand the concepts of key hyperparameters.


Key Hyperparameters

Just as cramming too much information into short study sessions can lead to confusion and poor exam performance, training an AI requires an optimized learning strategy.

The main hyperparameters that form an AI learning strategy include the following:

Learning Rate

Determines how quickly the model adjusts its weights.

If it's too high, the model might overshoot the optimal value and bounce off, while if it's too low, the learning process can be slow.

Batch Size

Determines how many data points are used in one training step.

Smaller batches allow for more precise learning but slow the process, whereas larger batches allow faster learning but consume more computational resources like memory.

Epoch

Determines how many times the model will iterate over the entire dataset.

Too few, and the model might not learn enough; too many, and you risk overfitting.


Hyperparameters significantly influence the training process and performance of models, so they should be carefully set and adjusted, akin to a human's learning style.

In our next lesson, we'll explore Learning Rate in detail.

Want to learn more?

Join CodeFriends Plus membership or enroll in a course to start your journey.