Skip to content

Deep Learning interview questions

Neural networks from backpropagation to attention, and the tricks that make them trainable.

54 questions in this category.

Name three different deep learning frameworks.
TensorFlow, PyTorch, Keras, Caffe, etc.
What is AdaGrad?
A sophisticated gradient descent algorithm that rescales the gradients of each parameter, effectively giving each parameter an independent learning rate.
Which ones are two actors in a convolutional operation?
Convolutional filter and a slice of an input matrix.
How does dropout regularization works in deep learning?
Dropout regularization works by removing a random selection of a fixed number of the units in a network layer for a single gradient step.
What is an epoch?
A full training pass over the entire dataset such that each example has been seen once.
What is a batch?
Number of training samples in 1 Forward/1 Backward pass.
What is the function of the discriminator in a GAN?
Determine whether examples are real or fake.
Explain what a softmax function does?
Provides probabilities for each possible class in a multi-class classification model. The probabilities add up to exactly 1.0
What is learning rate?
Is a tuning parameter in an optimization algorithm that determines the step size at each iteration while moving toward a minimum of a loss function.
What does LSTM means?
Long Short-Term Memory.
What does GRU means?
Gated Recurrent Unit.
What if we set all the weights of a neural network to 0?
The equations of the learning algorithm would fail to make any changes to the network weights, and the model will be stuck.
What happens when the learning rate is too large?
Can accelerate the training. However, it is possible that we “shoot” too far and miss the minimum of the function that we want to optimize.
What happens when the learning rate is too small?
Takes more time to train but it is possible to find a more precise minimum. The downside can be that the solution is stuck in a local minimum.
Why do we need activation functions?
The main idea of using neural networks is to learn complex nonlinear functions. The Nonlinearity comes only with the activation function without them we are just stacking up multiple linear layers.
What are the problems with sigmoid as an activation function?
The output of the sigmoid function for large positive or negative numbers is almost zero. From this comes the problem of vanishing gradient.
What is ReLU? How is it better than sigmoid?
ReLU is an activation function and it solves the problem of vanishing gradient since it doesn't saturates on higher values.
What’s pooling in CNN? Why do we need it?
Pooling is a technique to downsample the feature map. It allows layers which receive relatively undistorted versions of the input to learn low level features such as lines.

Created by santiviquez

To suggest new questions or report an error send me a dm.