wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

rnn_lstm_gru_autoencoder

Total questions: 71

Worksheet time: 33mins

Name
Class
Date
1.

What is the primary objective of an Autoencoder?

a)

Classification

b)

Clustering

c)

Data Reconstruction

d)

Dimensionality Increse

2.

Which of the following is NOT a component of an Autoencoder?

a)
Encoder
b)
Decoder
c)
Latent Space
d)

Optimizer

3.

What does the latent space in an Autoencoder represent?

a)
An uncompressed version of the input data.
b)
A random selection of the input data.
c)
A compressed representation of the input data.
d)
A detailed explanation of the input data.
4.

Which of the following techniques is commonly used to train an Autoencoder?

a)

Semi-supervised Learning

b)

Supervised Learning

c)

Reinforcement Learning

d)

Unsupervised Learning

5.

What is the role of the decoder in an Autoencoder?

a)

To reconstruct the input data from the latent space.

b)

To compress the input data.

c)

To classify the input data.

d)

To visualize the input data.

6.

Which loss function is commonly used in Autoencoders for reconstruction?

a)
Mean Squared Error (MSE)
b)
Categorical Cross-Entropy
c)
Hinge Loss
d)
Binary Cross-Entropy
7.

What is a common application of Autoencoders?

a)

Data Augumentation

b)

Image Denoising

c)

Sentiment Analysis

d)

Text Classification

8.

What is a Denoising Autoencoder trained to do?

a)

Reconstruct clean data from noisy input

b)

Reconstruct the noise

c)

Encode noisy data

d)

Maximize reconstruction error

9.

What distinguishes a Variational Autoencoder (VAE) from a standard Autoencoder?

a)

It has no decoder

b)

It uses probabilistic latent variables

c)

It skips the encoding process

d)

It does not use a loss function

10.

In a Variational Autoencoder, what distribution is typically assumed for the latent variables?

a)

Exponential distribution

b)

Bernoulli distribution

c)

Uniform distribution

d)

Gaussian distribution

11.

What is the purpose of the KL-divergence term in the VAE loss function?

a)

To measure reconstruction error

b)

To minimize noise

c)

To regularize latent space distribution

d)

To increase model complexity

12.

What is a Sparse Autoencoder trained to encourage?

a)

Very few neurons Active at a time

b)

More neurons Active at a time

c)

No hidden Layers

d)

Random Noise in Output

13.

What regularization technique is commonly used in Sparse Autoencoders?

a)
L1 regularization
b)

Gradient Clipping

c)
Dropout regularization
d)
L2 regularization
14.

What is the purpose of Contractive Autoencoders?

a)

Maximize the size of latent space

b)

Penalize sensitivity to input variations

c)

Denoise input data

d)

Increase reconstruction error

15.

Which of the following is NOT a regularized Autoencoder?

a)

Sparse Autoencoder

b)

Convolutional Autoencoder

c)

Denoising Autoencoder

d)

Contractive Autoencoder

16.

Feedback networks are used for?

a)

auto association

b)

pattern storage

c)

both auto association & pattern storage

d)

pattern recognition

17.

_________ is used to find local minima of the cost function

a)

stochastic gradient descent

b)

gradient descent

c)

linear regression

d)

logistic regression

18.

A = 1/(1 + e-x) is an equation representing which activation function?

a)

ReLU

b)

Sigmoid

c)

Leaky ReLu

d)

Tanh

19.

Identify the activation function from the given diagram

a)

Sigmoid, ReLU

b)

ReLU, Leaky ReLU

c)

ReLU, Tanh

d)

TanH, ReLU

20.

What type of deep learning architecture is used in a multimodal multistream framework to tackle egocentric activity recognition using both video and sensor data?

a)

A) Single Convolutional Neural Network (CNN)

b)

B) Feedforward Neural Network

c)

C) Dual CNNs and Long Short-Term Memory (LSTM)

d)

D) Recurrent Neural Network (RNN)

21.

they perform the same task for every element of a sequence, with the output being depended on the previous computations.

a)

RNN or Recurrent Neural Network

b)

CNN or Convolution Neural Network

c)

LSTMor Long-Short Term Memory

22.

What are general limitations of back propagation rule? Pick the right choice from the given options

i) local minima problem

ii) slow convergence

iii) scaling

a)

only i

b)

both ii and i

c)

both ii and iii

d)

i, ii and iii

23.

What does RNN stand for?

a)

Recurring Neural Network

b)

Removable Neural Network

c)

Recurrent Neural Network

d)

None

24.

Which type of Neural Network is suitable to solve spatial feature recognition?

a)

CNN

b)

Fully Connected Network

c)

ANN

d)

RNN

25.

These are all problems suitable to be solved by DL, except.....

a)

Image processing

b)

Syntax segmentation

c)

NLP

d)

Speech recognition

26.

Which statement best describes the training process of an LSTM model?

a)

a) It uses gradient descent to optimize the model’s weights

b)

b) It uses the forward-backward algorithm for sequence labeling

c)

c) It leverages the attention mechanism for contextual information

d)

d) It involves unfolding the LSTM through time and applying backpropagation through time (BPTT)

27.

Which variant of LSTM is designed to handle bidirectional sequence modeling?

a)

a) Gated Recurrent Unit (GRU)

b)

b) Clockwork RNN

c)

c) Bidirectional LSTM

d)

d) Stacked LSTM

28.

Which of the following techniques is commonly used to alleviate the vanishing gradient problem in LSTM networks?

a)

a) Dropout regularization

b)

b) Batch normalization

c)

c) Gradient clipping

d)

d) Learning rate decay

29.

Which component(s) is/are present in an LSTM cell?

a)

a) Input gate

b)

b) Output gate

c)

c) Forget gate

d)

d) All of the above

30.

Which activation function(s) are commonly used in LSTM networks?

a)

a) Sigmoid

b)

b) Tanh

c)

c) ReLU

d)

d) Both a) and b)

31.

Which of the following is not the promise of artificial neural network?

a)

a) it can explain result

b)

b) it can survive the failure of some nodes

c)

c) it has inherent parallelism

d)

d) it can handle noise

32.

Which of the following is the component of learning system?

a)

a) goal

b)

b) model

c)

c) learning rules

d)

d) all of the mentioned

33.

What is the purpose of the recurrent connection in an RNN?

a)

a) To propagate the hidden state across different time steps

b)

b) To adjust the weights and biases of the network

c)

c) To reduce the dimensionality of the input data

d)

d) None of the above

34.

Which layer type is commonly used in RNNs for speech recognition tasks?


a)

a) Input layer

b)

b) Hidden layer

c)

c) Output layer

d)

d) None of the above

35.

What is the primary purpose of a Recurrent Neural Network (RNN)?

a)

a) Image classification

b)

b) Text generation

c)

c) Reinforcement learning

d)

d) Object detection

36.

What is the basic concept of Recurrent Neural Network?

a)

Use previous inputs to find the next output according to the training set.

b)

Use a loop between inputs and outputs in order to achieve the better prediction.

c)

Use recurrent features from dataset to find the best answers.

d)

Use loops between the most important features to predict next output.

37.

According to the image, classify the type of connection we have in the example 1.

a)

One to one

b)

One to many

c)

Many to one

d)

Many to many

38.

According to the image, classify the type of connection we have in the example 3.

a)

Many to one

b)

Many to many

c)

One to one

d)

One to many

39.

What is 'gradient' when we are talking about RNN?

a)

A gradient is a partial derivative with respect to its inputs

b)

It is how RNN calls its features

c)

The most important step of RNN algorithm

d)

A parameter that can help you improve the algorithm's accuracy

40.

The other RNN's issue is called 'Vanishing Gradients'. What is that?

a)

When the values of a gradient are too small and the model stops learning or takes way too long because of that.

b)

When the values of a gradient are too big and the model stops learning or takes way too long because of that.

c)

When the values of a gradient are too small and the model joins in a loop because of that.

d)

When the values of a gradient are too big and the model joins in a loop because of that.

41.

LSTM? What is that?

a)

LSTM networks are an extension for recurrent neural networks, which basically extends their memory. Therefore it is well suited to learn from important experiences that have very long time lags in between

b)

LSTM networks are an extension for recurrent neural networks, which basically extends their memory. Therefore it is well suited to learn from important experiences that have very low time lags in between

c)

LSTM networks are an extension for recurrent neural networks, which basically shorten their memory. Therefore it is well suited to learn from important experiences that have very low time lags in between

d)

LSTM networks are an extension for recurrent neural networks, which basically extends their memory. Therefore it is not recommended to use it, unless you are using a small Dataset.

42.


Question 3

To which of these tasks would you apply a many-to-one RNN architecture?

a)

Image classification (input an image and output a label)

b)

Music genre recognition

c)

Language recognition from speech (input an audio clip and output a label indicating the language being spoken)

d)

Speech recognition (input an audio clip and output a transcript)

43.

Using this as the training model below, answer the following:
True/False: At the ttht^{th} time step the RNN is estimating

P (y<t>  y<1>, y<2>, ..., y<t1>)P\ \left(y^{<t>}\ \left|\ y^{<1>},\ y^{<2>},\ ...,\ y^{<t-1>}\right|\right)
p/s: This is ' P( ....| ....)'

a)

False

b)

True

44.

Suppose your training examples are sentences (sequences of words). Which of the following refers to the jthj^{th} word in the ithi^{th} training example?

a)

x(i)<j>x^{\left(i\right)<j>}

b)

x<i>(j)x^{<i>\left(j\right)}

c)

x(j)<i>x^{\left(j\right)<i>}

d)

x<j>(i)x^{<j>\left(i\right)}

45.

Consider this RNN:
This specific type of architecture is appropriate when:

a)

Tx = TyT_x\ =\ T_y

b)

Tx <TyT_{x\ }<T_y

c)

Tx >TyT_{x\ }>T_y

d)

Tx = 1T_{x\ }=\ 1

46.


Question 3

To which of these tasks would you apply a many-to-one RNN architecture?

a)

Image classification (input an image and output a label)

b)

Music genre recognition

c)

Language recognition from speech (input an audio clip and output a label indicating the language being spoken)

d)

Speech recognition (input an audio clip and output a transcript)

47.

Using this as the training model below, answer the following:
True/False: At the ttht^{th} time step the RNN is estimating

P (y<t>  y<1>, y<2>, ..., y<t1>)P\ \left(y^{<t>}\ \left|\ y^{<1>},\ y^{<2>},\ ...,\ y^{<t-1>}\right|\right)
p/s: This is ' P( ....| ....)'

a)

False

b)

True

48.


You have finished training a language model RNN and are using it to sample random sentences, as follows:

True/False: In this sample sentence, step t uses the probabilities output by the RNN to randomly sample a chosen word for that time-step. Then it passes this selected word to the next time-step.

a)

False

b)

True

49.

True/False: If you are training an RNN model, and find that your weights and activations are all taking on the value of NaN (“Not a Number”) then you have an exploding gradient problem.

a)

False

b)

True

50.

Suppose you are training an LSTM. You have an 80000 word vocabulary, and are using an LSTM with 800-dimensional activations a<t>a^{<t>} . What is the dimension of Γu​ at each time step?

a)

800

b)

80000

c)

100

d)

8

51.


True/False: In order to simplify the GRU without vanishing gradient problems even when training on very long sequences you should remove the Γr​ i.e., setting Γr​= 1 always. 

a)

False

b)

True

52.

True/False: Using the equations for the GRU and LSTM below the Update Gate and Forget Gate in the LSTM play a different role to Γu and 1- Γu.

a)

False

b)

True

53.

Your mood is heavily dependent on the current and past few days’ weather. You’ve collected data for the past 365 days on the weather, which you represent as a sequence as x<1>x^{<1>} ,…, x<365>x^{<365>} . You’ve also collected data on your mood, which you represent as y<1>y^{<1>} ,…, y<365>y^{<365>} . You’d like to build a model to map from xy. Should you use a Unidirectional RNN or Bidirectional RNN for this problem?

a)

Bidirectional RNN, because this allows the prediction of mood on day t to take into account more information

b)

Undirectional RNN, because the value of y<t>y^{<t>} depends on x<t>x^{<t>} , and not other days' weather

c)

Bidirectional RNN, because this allows the prediction of mood on day t to take into account more information

d)

Undirectional RNN, because the value of y<t>y^{<t>} depends only on x<1>x^{<1>} ,..., x<t>x^{<t>} , but not on x<1>x^{<1>} ,..., x<365>x^{<365>}

54.

Which type of Neural Network is suitable to solve spatial feature recognition?

a)

CNN

b)

Fully Connected Network

c)

ANN

d)

RNN

55.

Which statement best describes the training process of an LSTM model?

a)

a) It uses gradient descent to optimize the model’s weights

b)

b) It uses the forward-backward algorithm for sequence labeling

c)

c) It leverages the attention mechanism for contextual information

d)

d) It involves unfolding the LSTM through time and applying backpropagation through time (BPTT)

56.

Which variant of LSTM is designed to handle bidirectional sequence modeling?

a)

a) Gated Recurrent Unit (GRU)

b)

b) Clockwork RNN

c)

c) Bidirectional LSTM

d)

d) Stacked LSTM

57.

Which of the following techniques is commonly used to alleviate the vanishing gradient problem in LSTM networks?

a)

a) Dropout regularization

b)

b) Batch normalization

c)

c) Gradient clipping

d)

d) Learning rate decay

58.

Which component(s) is/are present in an LSTM cell?

a)

a) Input gate

b)

b) Output gate

c)

c) Forget gate

d)

d) All of the above

59.

Which activation function(s) are commonly used in LSTM networks?

a)

a) Sigmoid

b)

b) Tanh

c)

c) ReLU

d)

d) Both a) and b)

60.

What is the purpose of the recurrent connection in an RNN?

a)

a) To propagate the hidden state across different time steps

b)

b) To adjust the weights and biases of the network

c)

c) To reduce the dimensionality of the input data

d)

d) None of the above

61.

Which layer type is commonly used in RNNs for speech recognition tasks?


a)

a) Input layer

b)

b) Hidden layer

c)

c) Output layer

d)

d) None of the above

62.

What is the primary purpose of a Recurrent Neural Network (RNN)?

a)

a) Image classification

b)

b) Text generation

c)

c) Reinforcement learning

d)

d) Object detection

63.

How does the YOLO (You Only Look Once) algorithm improve object detection performance?

a)

By dividing the image into a grid and predicting bounding boxes and class probabilities for each grid cell

b)

By using a sliding window approach to scan the entire image for objects

c)

By applying a separate classifier for each object class in the image

d)

By resizing the input image to a fixed size before processing

64.

What is the purpose of non-maximum suppression in object detection algorithms?

a)

To reduce the number of redundant bounding box predictions for the same object

b)

To increase the resolution of the feature maps for better object localization

c)

To introduce randomness in the training process for better generalization

d)

To adjust the learning rate dynamically during optimization

65.

What is the primary advantage of using bidirectional LSTM networks over unidirectional ones?

a)

Improved memory cell capacity

b)

Ability to process sequence data in both forward and backward directions

c)

Reduced computational complexity

d)

Enhanced control over weight updates

66.

How does the concept of attention mechanism enhance the performance of LSTM networks?

a)

By focusing on specific parts of the input sequence during processing

b)

By increasing the number of memory cells in the network

c)

By reducing the number of layers in the LSTM architecture

d)

By using a different activation function for the forget gate

67.

What is the purpose of the forget gate in a Long Short-Term Memory (LSTM) network?

a)

To store the output of the activation function

b)

To control the flow of information through the network

c)

To maintain long-term dependencies in the sequence data

d)

To determine the learning rate for weight updates

68.

How does the LSTM architecture differ from traditional recurrent neural networks (RNNs)?

a)

LSTM networks have a single hidden layer, while RNNs have multiple layers

b)

LSTM networks use a memory cell to store information over time steps

c)

RNNs have a forget gate to control the flow of information

d)

LSTM networks do not support sequential data processing

69.

What is the purpose of the cell state in a Long Short-Term Memory (LSTM) network?

a)

To store the output of the activation function

b)

To control the flow of information through the network

c)

To maintain long-term dependencies in the sequence data

d)

To determine the learning rate for weight updates

70.

Why is regularization important in machine learning models?

a)

To control the size of the weight updates during optimization

b)

To optimize model parameters and reduce overfitting

c)

To define the number of layers in the neural network

d)

To select the type of activation function for the model

71.

What is the significance of the learning rate in gradient descent optimization?

a)

To determine the number of epochs for training

b)

To control the size of the weight updates during optimization

c)

To define the number of layers in the neural network

d)

To select the type of activation function for the model