InterviewStack.io LogoInterviewStack.io

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
30 practiced

You suspect the relationship between a feature and the target isn't linear. How would you use polynomial features or interaction terms with linear regression, and how do you keep that from blowing up variance and overfitting as you add degree?

HardTechnical
26 practiced

What is nested cross-validation, and why do you need it when you're doing both feature selection or hyperparameter tuning and estimating generalization error? Walk through the outer/inner loop structure and the computational cost of doing it properly.

HardSystem Design
29 practiced

You need to predict customer churn from 10M rows and 200 mixed-type features, but production requires under 100ms inference latency and 500MB memory on CPU, with weekly retraining. Propose a shortlist of candidate model families with concrete configuration choices, and justify your final pick on accuracy, latency, memory, and maintainability.

MediumTechnical
21 practiced

Compare PCA and autoencoders for dimensionality reduction. When does the extra complexity of an autoencoder actually pay off, and when is PCA the better engineering choice?

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?

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.