Introduction to Machine Learning

by Albert Major


Machine Learning Model Evaluation and Generalization

Generalization in Supervised Learning

Expected Error Decomposition (Bias-Variance Trade-off)

The expected error can be decomposed into three components:

Model Selection and Evaluation Methods

Model selection involves choosing the right algorithm type (e.g., Random Forest vs. Logistic Regression) and the best hyperparameters.

Train-Test Split

K-Fold Cross-Validation (CV)

Hyperparameter Tuning and Data Leakage

Handling Specific Data Types and Assumptions

Standard Cross-Validation assumes data is IID (Independent and Identically Distributed).

1. Imbalanced Data (Classification)

2. Grouped Data

3. Time Series Data

Evaluation Metrics

Regression Metrics

Binary Classification Metrics

Multi-Class Classification Metrics