1/11
These flashcards cover key concepts related to training neural networks, including cross entropy, the vanishing gradient problem, hyperparameters, and architecture considerations.
What is the purpose of cross entropy in machine learning?
Cross entropy is used to measure the difference between two probability distributions, promoting better class separation in classification tasks.
What problem does the vanishing gradient issue pose in deep neural networks?
It causes gradients to become very small, slowing down or stopping the learning process, particularly in earlier layers of the network.
Why is ReLU preferred over sigmoid in many neural networks?
ReLU allows for faster learning by avoiding the vanishing gradient problem and maintaining a gradient of 1 for positive inputs.
What is a hyperparameter?
A hyperparameter is a parameter that is set before the learning process begins and cannot be learned by the model itself, such as learning rate or batch size.
What is the function of the softmax activation function?
Softmax converts the raw output of the model into a probability distribution for multi-class classification problems, ensuring outputs sum to 1.
What is an epoch in the context of training neural networks?
An epoch is one complete pass through the entire training dataset during the training process.
How can the learning rate affect the training process?
A higher learning rate may lead to faster convergence but risks overshooting the optimal solution, while a lower learning rate may result in very slow convergence.
What does overfitting mean in the context of model training?
Overfitting occurs when a model learns noise and fluctuations in the training data to the extent that it negatively impacts the model's performance on new data.
What is the purpose of batch size in training neural networks?
Batch size determines the number of samples processed before the model's internal parameters are updated, affecting memory use and training dynamics.
How does adjusting batch size impact the training time and model performance?
Smaller batch sizes can increase the number of updates per epoch, improving learning opportunities, but they may also increase training time and lead to more fluctuation in gradients.
What is the significance of the learning curve during model training?
The learning curve helps visualize how a model's performance improves over time, indicating when to stop training or highlight issues such as overfitting.
When should you consider changing your model architecture?
You should consider changing your model architecture if performance plateaus or if the model is not adequately learning patterns from the data.