Machine Learning
How machines learn patterns from data.
- Supervised, Unsupervised, and Reinforcement LearningBeginner
Supervised learns from labeled examples, unsupervised finds structure without labels, and RL learns from trial-and-error rewards.
- What is Regression?Beginner
Regression predicts a number from features — a line, a curve, or a tree — scored by how far predictions miss, usually with MSE.
- What is Classification?Beginner
Classification assigns a discrete label — spam or not, cat or dog — by learning a decision boundary from labeled examples.
- What is Clustering?Beginner
Clustering groups unlabeled examples by similarity. k-means is the starter method; k is a choice, and clusters are not classes.
- Overfitting vs UnderfittingBeginner
Overfitting memorizes training noise; underfitting is too simple. Watch train vs val curves — that is how later evaluation makes sense.
- What are Decision Trees?Intermediate
A decision tree asks yes/no questions to split tabular data. Depth buys fit and interpretability — and quickly overfits.
- What are Random Forests?Intermediate
A random forest averages many trees trained on bootstrap samples and random features, so the ensemble beats one overfit tree.
- Gradient Boosting and XGBoostIntermediate
Gradient boosting adds trees in sequence to fix leftover errors. XGBoost and LightGBM still default for tabular; use deep learning for images and language.
- Precision, Recall, F1, and ROC-AUCIntermediate
Accuracy lies under imbalance. Precision, recall, F1, and ROC-AUC measure different mistakes — pick the one that matches the cost.
- What is Cross-Validation?Intermediate
Cross-validation rotates which slice is the test set so one lucky split cannot lie. Watch leakage; time series needs a forward split.