Neural Network Basics
Training Process
Loss & Optimization
PyTorch Functions
Concepts & Definitions
100

What does it mean to train a neural network?

Teaching it to make better predictions

100

What is the last step in the training process?

Updating the weights

100

Which loss function is used for regression problems?

Mean Squared Error (MSE)

100

Which PyTorch module is used to define a loss function?

torch.nn

100

What does an optimizer help with in neural networks?

Reducing the loss by updating weights

200

What is the main purpose of epochs in training a neural network?

To define the number of training iterations

200

What does zero_grad() do in the training loop?

Resets the gradients before the backward pass

200

Which optimizer is known to be simple but slow?

SGD

200

What does model.eval() do in PyTorch?

Sets the model to evaluation mode

200

What is a forward pass?

The process of making a prediction using the model

300

What does the backward pass in a neural network do?

Calculates gradients

300

What does the optimizer do in training a neural network?

Updates model parameters to reduce loss

300

Which optimizer is widely used for deep learning?

Adam

300

How do we save a PyTorch model?

torch.save(model, "model.pth")

300

What does it mean when a model "overfits"?

It performs well on training data but poorly on new data

400

What is the purpose of testing a trained model?

To see how well it performs on new data

400

Which step is NOT part of training a neural network?

Deleting the model after training

400

What happens if the learning rate is too high?

The model fails to learn properly

400

Which function loads a saved PyTorch model?

torch.load()

400

What is gradient descent used for?

Minimizing the loss function

500

What is the first step in training a neural network?

Making a prediction (forward pass)

500

What is the purpose of the loss function in a neural network?

To measure how wrong the prediction is

500

What is the purpose of a loss function?

To measure how wrong the prediction is

500

Which PyTorch module is used to define a neural network model?

torch.nn

500

Why do we use validation data during training?

To monitor the model’s performance on unseen data

M
e
n
u