Classical Machine Learning Algorithms Questions

Foundational non-deep-learning models and when to reach for each. Covers linear and logistic regression, decision trees and ensemble methods (random forests, gradient boosting), support vector machines, k-nearest neighbors, and clustering, including their assumptions, strengths, and failure modes. Focuses on algorithm selection and the numerical and implementation considerations behind these workhorse models.

MediumTechnical
28 practiced

A decision tree on a fraud dataset fits the training data almost perfectly but loses a lot of accuracy on validation. Which tree-growth settings would you look at first, and how does each one change the tree's behavior?

MediumTechnical
28 practiced

You're comparing two models on cross-validation: Model A scores 0.78 with a std of 0.01, Model B scores 0.80 with a std of 0.07. How do you interpret that, and which would you pick for production?

MediumTechnical
25 practiced

You have a dataset with thousands of numeric features, many of them strongly correlated, and far fewer samples than you would like. Would you use PCA here? Walk through how you would decide, and what you gain and lose by applying it before modeling.

HardSystem Design
29 practiced

Decision trees can't extrapolate beyond the range of values seen in training. Where does that bite you in practice, and how might you combine a linear model with a tree ensemble to get the best of both?

EasyTechnical
30 practiced

What's cross-validation, and why do you use it? How does k-fold differ from stratified k-fold, and what goes wrong if you use plain random k-fold on time-dependent data?

Unlock Full Question Bank

Get access to all Classical Machine Learning Algorithms interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.