AI Terms Dictionary

A comprehensive multilingual AI terminology dictionary

Definition

In neural networks, dropout prevents overfitting by temporarily removing a random subset of neurons during each training step. This forces the network to learn robust features that are useful in conjunction with many other random subsets of neurons, rather than relying on specific local patterns. During inference, all neurons are used, but their outputs are scaled to account for the increased activity compared to training time.

Summary

Dropout is a regularization technique that randomly ignores neurons during training to prevent overfitting.

Key Concepts

Use Cases

Code Example

1
2
3
4
5
6
7
import torch.nn as nn
model = nn.Sequential(
    nn.Linear(100, 50),
    nn.Dropout(0.5),
    nn.ReLU(),
    nn.Linear(50, 10)
)