L1 Regularization L2 Regularization
A regression model that makes use of the L1 A regression model that makes use of the L1
regularization process is called Lasso regularization process is called Ridge
Regression. Regression.
Lasso Regression adds the absolute value of Ridge regression adds the squared
the magnitude of coefficient as a penalty term magnitude of coefficient as a penalty term to
to the loss function. the loss function.
It tries to estimate the median of the data. It tries to estimate the mean of the data.
14. Explain Fourier Transform?
The Fourier transform is a way to split something up into a bunch of sine waves. In terms of
mathematics, The Fourier Transform is a process that can transform a signal into its respective
constituent components and frequencies. Fourier transform is used not only in signal, radio,
acoustic, etc.
15. What Is The F1 Score? How To Use It?
The F1-score combines both the precision and recall of a classifier into one single metric by
taking the harmonic mean. It is used to compare the performances of two classifiers. For
example, classifier X has a higher recall, and classifier Y has higher precision. Now the
F1-scores calculated for both the classifiers will be used to predict which one produces the
better results.
The F1 score can be calculated as
2(P*R)/(P+R)
Where P is the precision.
R is the Recall of the classification model.
Machine Learning Interview Questions And Answers
16. Differentiate Between Type I And Type II Error?
Type I Error Type II Error
It is equivalent to a False positive. It is equivalent to a False negative
It refers to non-acceptance of hypothesis It refers to the acceptance of the hypothesis
There can be a rejection even with an There can be an acceptance even with an
authorized match. unauthorized match.
17. Can You Explain How A ROC Curve Works?