TGViewer
Data Science & Machine Learning Data Science & Machine Learning @datasciencefun · 77.8K subscribers
Post #3808 5.39K
🧠 Machine Learning Interview Q&A

✅ 1. What is Overfitting & Underfitting?
• Overfitting: Model performs well on training data but poorly on unseen data.
• Underfitting: Model fails to capture patterns in training data.
🔹 Solution: Cross-validation, regularization (L1/L2), pruning (in trees).

✅ 2. Difference: Supervised vs Unsupervised Learning?
• Supervised: Labeled data (e.g., Regression, Classification)
• Unsupervised: No labels (e.g., Clustering, Dimensionality Reduction)

✅ 3. What is Bias-Variance Tradeoff?
• Bias: Error due to overly simple assumptions (underfitting)
• Variance: Error due to sensitivity to small fluctuations (overfitting)
🎯 Goal: Find a balance between bias and variance.

✅ 4. Explain Confusion Matrix Metrics
• Accuracy: (TP + TN) / Total
• Precision: TP / (TP + FP)
• Recall: TP / (TP + FN)
• F1 Score: Harmonic mean of Precision & Recall

✅ 5. What is Cross-Validation?
• A technique to validate model performance on unseen data.
🔹 K-Fold CV is common: data split into K parts, trained/tested K times.

✅ 6. Key ML Algorithms to Know
• Linear Regression – Predict continuous values
• Logistic Regression – Binary classification
• Decision Trees – Rule-based splitting
• KNN – Based on distance
• SVM – Hyperplane separation
• Naive Bayes – Probabilistic classification
• Random Forest – Ensemble of decision trees
• K-Means – Clustering algorithm

✅ 7. What is Regularization?
• Adds penalty to model complexity
• L1 (Lasso) – Can shrink some coefficients to zero
• L2 (Ridge) – Shrinks all coefficients evenly

✅ 8. What is Feature Engineering?
• Creating new features to improve model performance
🔹 Includes: Binning, Encoding (One-Hot), Interaction terms, etc.

✅ 9. Evaluation Metrics for Regression
• MAE (Mean Absolute Error)
• MSE (Mean Squared Error)
• RMSE (Root Mean Squared Error)
• R² Score (Explained Variance)

✅ 10. How do you handle imbalanced datasets?
• Use techniques like:
• SMOTE (Synthetic Oversampling)
• Undersampling
• Class weights
• Precision-Recall Curve over Accuracy

👍 Tap ❤️ for more!
  • ❤ 17
  • 👍 1
More from @datasciencefun
  1. Oct 17, 2026𝗜𝗕𝗠 𝗙𝗥𝗘𝗘 𝗧𝗘𝗖𝗛 𝗖𝗢𝗨𝗥𝗦𝗘𝗦 𝟮𝟬𝟮𝟲! 🎓 Explore IBM Cognitive Class and build…
  2. Oct 16, 2026𝗗𝗮𝘁𝗮 𝘀𝗰𝗶𝗲𝗻𝗰𝗲 𝗖𝗲𝗿𝘁𝗶𝗳𝗶𝗰𝗮𝘁𝗶𝗼𝗻 𝗪𝗶𝘁𝗵 𝗔𝗜😍 Future Ready Data Scien…
  3. Oct 15, 2026Post #4665
  4. Oct 15, 2026Post #4664
  5. Oct 15, 2026Post #4663
  6. Oct 15, 2026Post #4662
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →