LSTM_CNN Flashcards

1
Q

Why does overfitting occur?

A
  • The training data size is too small and does not contain enough data samples to accurately
    represent all possible input data values.
  • The training data contains large amounts of irrelevant information, called noisy data.
  • The model trains for too long on a single sample set of data.
  • The model complexity is high, so it learns the noise within the training data
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is Overfitting?

A

Overfitting is an undesirable machine learning behavior that occurs when the machine learning
model gives accurate predictions for training data but not for new data.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

How to avoid Overfitting?

A

One approach to reduce overfitting is to fit all possible different neural networks on the same
dataset and to average the predictions from each model. This is not feasible in practice, and can
be approximated using a small collection of different models, called an ensemble

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What’s Dropout?

A

the practice of disregarding certain nodes in a layer at
random during training. A dropout is a regularization approach that prevents overfitting by
ensuring that no units are codependent with one another.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Question 1: What is overfitting in machine learning?

A

A) When a model performs well on the training data but poorly on new, unseen data.
B) When a model is under-trained on the training data.
C) When a model gives perfect predictions every time.
D) When a model is too simple to learn the underlying pattern of the data.

ANSWER: A

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Question 2: Which techniques are used to prevent overfitting? (Select all that apply)

A

A) Reducing the number of layers in the neural network.
B) Employing dropout layers during training.
C) Using all data available for training.
D) Implementing data augmentation.

ANSWER: B & D

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Question 3: What is the purpose of LSTM networks?

A

A) To classify images into different categories.
B) To improve the speed of training in neural networks.
C) To remember information for long periods of time in sequence prediction tasks.
D) To reduce the computational load during training.

ANSWER: C

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Question 4: Which statements are true about the use of LSTM for stock price prediction? (Select all that apply)

A

A) LSTMs are unable to process time-series data.
B) LSTMs can capture temporal dependencies in stock price movements.
C) The model predicts stock prices based on the previous 60 days of prices.
D) High accuracy is not crucial because even moderate predictions can be profitable.

ANSWER: B, C & D

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Question 5: What is Dropout in the context of neural networks?

A

A) Increasing the number of neurons in each layer to prevent loss of information.
B) Randomly dropping units during training to prevent co-adaptation of features.
C) A technique to speed up training by reducing the number of layers.
D) Adding noise to inputs to improve robustness.
ANSWER: B

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Question 6: What are the key components of the CNN used for CIFAR-10 image classification? (Select all that apply)

A

A) LSTM layers to process image sequences.
B) Dropout layers to regularize the model.
C) Convolutional layers to extract features from images.
D) Batch normalization to standardize the inputs within the network.

ANSWER: B, C & D

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Question 7: What role does batch normalization play in training neural networks?

A

A) It slows down training by adding additional computation.
B) It normalizes the output of a previous activation layer by subtracting the batch mean and dividing by the batch standard deviation.
C) It prevents the model from fitting to the data.
D) It increases the need for dropout.

ANSWER: B

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q
A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Question 8: How is the training data prepared for the CNN model working with the CIFAR-10 dataset?

A

A) Pixel values are normalized to be between 0 and 1.
B) Images are resized to 32x32 pixels, the size required by CIFAR-10.
C) Labels are encoded using one-hot encoding.
D) Images are converted to grayscale to reduce complexity.

ANSWER: A & C

How well did you know this?
1
Not at all
2
3
4
5
Perfectly