This page is due for review. Re-read the key points and answer the self-check questions before recording your video.
ML/DL · Hub
ML algorithms
Fourteen classic machine-learning algorithms: linear and logistic regression, KNN, Naive Bayes, trees and their ensembles (random forest, AdaBoost, gradient boosting), SVMs, four clustering methods (k-means, hierarchical, GMM, DBSCAN) and PCA for dimensionality reduction.
Why it matters: knowing what each algorithm assumes, what it costs and where it shines lets you pick a strong model in minutes instead of trying everything.
5 random questions mixed from all fourteen algorithms.
Mixed review
Answer each one out loud before opening the sample answer.
flowchart TD
A{"Do you have labels?"} -->|"no"| U{"Goal?"}
U -->|"fewer features"| PCA["PCA"]
U -->|"groups, k known, round"| KM["k-means"]
U -->|"groups of any shape + outliers"| DB["DBSCAN"]
U -->|"soft, overlapping groups"| GMM["GMM"]
U -->|"structure at every scale"| HC["Hierarchical"]
A -->|"yes"| T{"Number or category?"}
T -->|number| R{"Linear enough?"}
R -->|yes| LR["Linear regression"]
R -->|no| GB["Gradient boosting / random forest"]
T -->|category| C{"What matters most?"}
C -->|"probabilities, interpretability"| LOG["Logistic regression"]
C -->|"text, many sparse features"| NB["Naive Bayes"]
C -->|"top accuracy on tables"| GB2["Gradient boosting / XGBoost"]
C -->|"small data, clear margin"| SVM["SVM"]
C -->|"readable rules"| DT["Decision tree"]
Key points
Linear models are fast and interpretable because they are weighted sums of the features.
Distance-based methods need scaling because large-valued features dominate distances.
Forests reduce variance and boosting reduces bias because one averages parallel trees and the other adds trees that fix errors.
Clustering methods differ in shape assumptions because k-means uses centres, GMM Gaussians, DBSCAN density and hierarchical a linkage rule.
PCA compresses features because correlated features share directions of variance.