TGViewer
Artificial Intelligence & ChatGPT Prompts Artificial Intelligence & ChatGPT Prompts @curiousprogrammer · 42.2K subscribers
Post #2181 908
✅ ML Algorithms – Interview Questions & Answers 🤖🧠

1️⃣ What is Linear Regression used for?
To predict continuous values by fitting a line between input (X) and output (Y).
Example: Predicting house prices.

2️⃣ How does Logistic Regression work?
It uses the sigmoid function to output probabilities (0-1) for classification tasks.
Example: Email spam detection.

3️⃣ What is a Decision Tree?
A flowchart-like structure that splits data based on features to make predictions.

4️⃣ How does Random Forest improve accuracy?
It builds multiple decision trees and takes the majority vote or average.
Helps reduce overfitting.

5️⃣ What is SVM (Support Vector Machine)?
An algorithm that finds the optimal hyperplane to separate data into classes.
Great for high-dimensional spaces.

6️⃣ How does KNN classify a point?
By checking the 'K' nearest data points and assigning the most frequent class.
It's a lazy learner – no actual training.

7️⃣ What is K-Means Clustering?
An unsupervised method to group data into K clusters based on distance.

8️⃣ What is XGBoost?
An advanced boosting algorithm — fast, powerful, and used in Kaggle competitions.

9️⃣ Difference between Bagging & Boosting?
⦁ Bagging: Models run independently (e.g., Random Forest)
⦁ Boosting: Models learn sequentially (e.g., XGBoost)

🔟 When to use which algorithm?
⦁ Regression → Linear, Random Forest
⦁ Classification → Logistic, SVM, KNN
⦁ Unsupervised → K-Means, DBSCAN
⦁ Complex tasks → XGBoost, LightGBM

💬 Tap ❤️ if this helped you!
  • ❤ 3
More from @curiousprogrammer
  1. Oct 9, 2026🇮🇳 𝗚𝗢𝗩𝗘𝗥𝗡𝗠𝗘𝗡𝗧 𝗢𝗙 𝗜𝗡𝗗𝗜𝗔 — 𝗔𝗜𝗖𝗧𝗘 𝗜𝗡𝗧𝗘𝗥𝗡𝗦𝗛𝗜𝗣𝗦 𝟮𝟬𝟮𝟲 🚀…
  2. Oct 8, 2026🎓 𝗠𝗶𝗰𝗿𝗼𝘀𝗼𝗳𝘁 𝗙𝗥𝗘𝗘 𝗖𝗼𝘂𝗿𝘀𝗲𝘀 𝘄𝗶𝘁𝗵 𝗖𝗲𝗿𝘁𝗶𝗳𝗶𝗰𝗮𝘁𝗲𝘀! 🚀🔥 Upgr…
  3. Oct 7, 2026🚀𝗣𝗮𝘆 𝗔𝗳𝘁𝗲𝗿 𝗣𝗹𝗮𝗰𝗲𝗺𝗲𝗻𝘁 𝗧𝗿𝗮𝗶𝗻𝗶𝗻𝗴 | 𝗕𝗲𝗰𝗼𝗺𝗲 𝗮 𝗙𝘂𝗹𝗹𝘀𝘁𝗮𝗰…
  4. Oct 7, 2026𝗠𝗮𝘀𝘁𝗲𝗿 𝗣𝗼𝘄𝗲𝗿 𝗕𝗜 𝗳𝗼𝗿 𝗙𝗥𝗘𝗘! 🔥 Learn Power BI through these FREE learnin…
  5. Oct 4, 2026Frontend vs Backend Developer ✅
  6. Sep 29, 2026𝗙𝗥𝗘𝗘 𝗥𝗲𝘀𝗼𝘂𝗿𝗰𝗲𝘀 𝗧𝗼 𝗟𝗲𝗮𝗿𝗻 𝗔𝗜 𝗶𝗻 𝟮𝟬𝟮𝟲🚀 ​ Explore 6 free resource…
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 →