Most asked top Interview Questions and Answers & Online Test
Education platform for interview prep, online tests, tutorials, and live practice

Build skills with focused learning paths, mock tests, and interview-ready content.

WithoutBook brings subject-wise interview questions, online practice tests, tutorials, and comparison guides into one responsive learning workspace.

Prepare Interview

Mock Exams

Make Homepage

Bookmark this page

Subscribe Email Address

Machine Learning Interview Questions and Answers

Test your skills through the online practice test: Machine Learning Quiz Online Practice Test

Ques 11. Explain the difference between batch gradient descent and stochastic gradient descent.

Batch gradient descent updates the model parameters using the entire dataset, while stochastic gradient descent updates the parameters using one randomly selected data point at a time. Mini-batch gradient descent is a compromise, using a small subset of the data for each update.

Is it helpful? Add Comment View Comments
 

Ques 12. What is the purpose of regularization in machine learning?

Regularization is used to prevent overfitting in machine learning models by adding a penalty term to the cost function. It discourages the model from fitting the training data too closely and encourages generalization to new, unseen data.

Is it helpful? Add Comment View Comments
 

Ques 13. Explain the K-nearest neighbors (KNN) algorithm.

KNN is a simple, instance-based learning algorithm used for classification and regression. It classifies a new data point based on the majority class of its k-nearest neighbors in the feature space.

Is it helpful? Add Comment View Comments
 

Ques 14. What is the difference between L1 and L2 regularization?

L1 regularization adds the absolute values of the coefficients to the cost function, encouraging sparsity, while L2 regularization adds the squared values, penalizing large coefficients. L1 tends to produce sparse models, while L2 prevents extreme values in the coefficients.

Is it helpful? Add Comment View Comments
 

Ques 15. What is the ROC curve, and what does it represent?

The Receiver Operating Characteristic (ROC) curve is a graphical representation of a binary classification model's performance across different thresholds. It plots the true positive rate against the false positive rate, helping to assess the trade-off between sensitivity and specificity.

Is it helpful? Add Comment View Comments
 

Most helpful rated by users:

Copyright © 2026, WithoutBook.