ML interview questions
ML interview questions
Core ML Concepts
Math Foundations
Linear Algebra
o Matrix operations, eigenvalues/eigenvectors, vector spaces (important for
PCA, SVD, and deep learning).
Probability & Statistics
o Probability distributions, Bayes’ theorem, hypothesis testing, p-values, and
confidence intervals.
Calculus
o Partial derivatives, gradients, chain rule (especially for gradient descent).
Optimization
o Convex functions, gradient-based optimization methods like SGD, Adam, etc.
Python/Programming Basics
o Arrays, linked lists, stacks, queues, and hash maps.
o Sorting and searching algorithms (merge sort, binary search, etc.).
Specialized ML Algorithms
o Clustering, dimensionality reduction (PCA, t-SNE), and ensemble methods
(Random Forest, Gradient Boosting, etc.).
ML/DL Techniques
Coding Challenges
2. Viva Preparation
Understanding ML Frameworks
Explain Algorithms:
o Be prepared to explain basic algorithms (e.g., how Decision Trees split data,
why SVMs work well for high-dimensional spaces).
Discuss Trade-offs:
o Why use Logistic Regression over Neural Networks for certain problems?
o Why would you use one metric (like Recall) over another?
Scenario-Based Questions
Knowledge of Tools
1. Data Preprocessing:
o Imbalanced datasets, data cleaning, scaling.
2. Feature Selection:
o Explain methods like PCA, correlation matrices, recursive feature elimination.
3. Deep Learning Basics:
o Neural networks, activation functions, CNNs, RNNs, LSTMs.
4. Time Complexity:
o Know how to calculate it for ML pipelines or algorithms.
Basic:
o What is the difference between supervised and unsupervised learning?
o What is regularization in ML? Why is it important?
Intermediate:
o Explain the difference between bagging and boosting.
o How do you detect multicollinearity in a dataset?
Advanced:
o How does a Neural Network decide weights and biases during training?
o Explain the vanishing gradient problem and how it can be solved.
Final Tips
Good luck, Aranya! Let me know if you need specific explanations or resources!