AI Terms Dictionary

A comprehensive multilingual AI terminology dictionary

Definition

The learning rate determines how much the model’s weights are updated relative to the calculated gradient during each training iteration. A rate that is too high may cause the model to overshoot optimal solutions, while a rate that is too low leads to slow convergence or getting stuck in local minima. Tuning this parameter is essential for efficient training, often involving schedulers that decay the rate over time to fine-tune the model near the end of the training process.

Summary

A hyperparameter that controls the step size during model optimization to minimize the loss function.

Key Concepts

Use Cases

Code Example

1
2
3
import torch.optim as optim
model = MyModel()
optimizer = optim.SGD(model.parameters(), lr=0.01)