13 Useful Deep Learning Interview Questions and Answer
13 Useful Deep Learning Interview Questions and Answer
So you have nally found your dream job in Deep Learning but are
wondering how to crack the Deep Learning Interview and what could be
the probable Deep Learning Interview Questions. Every interview is
di erent and the scope of a job is di erent too. Keeping this in mind we
have designed the most common Deep Learning Interview Questions
and Answers to help you get success in your interview.
This rst part covers basic Deep Learning Interview Questions and
Answers
Answer:
There are studies which say that both shallow and deep networks can
t at any function, but as deep networks have several hidden layers
often of di erent types so they are able to build or extract better
features than shallow models with fewer parameters.
Answer:
A cost function is a measure of the accuracy of the neural network with
respect to given training sample and expected output. It is a single
value, nonvector as it gives the performance of the neural network as a
whole. It can be calculated as below Mean Squared Error function:-
MSE=1n∑i=0n(Y^i–Yi)^2
Where Y^ and desired value Y is what we want to minimize.
Answer:
Gradient descent is basically an optimization algorithm, which is used
an iterative algorithm which moves in the direction of steepest descent
as de ned by the negative of the gradient. We compute the gradient
descent of the cost function for given parameter and update the
parameter by the below formula:-
Θ:=Θ–αd∂ΘJ(Θ)
Where Θ – is the parameter vector, α – learning rate, J(Θ) – is a cost
function.
5. What is a backpropagation?
Answer:
Backpropagation is training algorithm used for multilayer neural
network. In this method, we move the error from an end of the network
to all weights inside the network and thus allowing e cient
computation of the gradient. It can be divided into several steps as
follows:-
Answer:
Stochastic Gradient Descent: Here we use only single training example
for calculation of gradient and update parameters.
Batch Gradient Descent: Here we calculate the gradient for the whole
dataset and perform the update at each iteration.
Mini-batch Gradient Descent: It’s one of the most popular
optimization algorithms. It’s a variant of Stochastic Gradient Descent
and here instead of single training example, mini-batch of samples is
used.
Answer:
Below are the bene ts of mini-batch gradient descent
•This is more e cient compared to stochastic gradient descent.
•The generalization by nding the at minima.
•Mini-batches allows help to approximate the gradient of entire
training set which helps us to avoid local minima.
Answer:
Data normalization is used during backpropagation. The main motive
behind data normalization is to reduce or eliminate data redundancy.
Here we rescale values to t into a speci c range to achieve better
convergence.
Answer:
Weight initialization is one of the very important steps. A bad weight
initialization can prevent a network from learning but good weight
initialization helps in giving a quicker convergence and a better overall
error. Biases can be generally initialized to zero. The rule for setting the
weights is to be close to zero without being too small.
Answer:
An autoencoder is an autonomous Machine learning algorithm that
uses backpropagation principle, where the target values are set to be
equal to the inputs provided. Internally, it has a hidden layer that
describes a code used to represent the input.
Some Key Facts about the autoencoder are as follows:-
Answer:
Yes, this can be done considering that layer 4 output is from previous
time step like in RNN. Also, we need to assume that previous input
batch is sometimes- correlated with current batch.
Answer:
The activation function is used to introduce non-linearity into the
neural network helping it to learn more complex function. Without
which the neural network would be only able to learn linear function
which is a linear combination of its input data.
Recommended Articles
This has been a guide to List Of Deep Learning Interview Questions and
Answers so that the candidate can crackdown these Deep Learning
Interview Questions easily. You may also look at the following articles
to learn more
1500+ Hours
Lifetime Access
Learn More