โ
ML Algorithms Interview Questions: Part-2 ๐ค๐ฌ
1๏ธโฃ Q: What is the difference between Bagging and Boosting?
๐ง A:
โฆ Bagging (e.g., Random Forest): Combines predictions from multiple models trained independently in parallel.
โฆ Boosting (e.g., XGBoost): Trains models sequentially, each learning from the previous oneโs errors.
๐ Boosting usually gives better performance but is prone to overfitting.
2๏ธโฃ Q: Why would you choose Logistic Regression over a Tree-based model?
๐ง A:
โฆ Faster training & better interpretability
โฆ Works well with linearly separable data
โฆ Ideal for small datasets with fewer features
3๏ธโฃ Q: How does a Decision Tree decide where to split?
๐ง A:
Uses criteria like Gini Impurity, Entropy, or Information Gain to find the feature and value that best separates the data.
4๏ธโฃ Q: What problem does Regularization solve in Linear Regression?
๐ง A:
Prevents overfitting by penalizing large coefficients.
โฆ L1 (Lasso): Feature selection (can zero out features)
โฆ L2 (Ridge): Shrinks coefficients but keeps all features
๐ก Pro Tip: Pair every algorithm with real-world use cases during interviews (e.g., Logistic Regression โ churn prediction, Random Forest โ credit scoring)
๐ฌ Double Tap โค๏ธ for more!
Post #3822
4.7K
- โค 12
- ๐ 1