Two Basic Paradigms¶
| Paradigm | Data | Goal | Typical Tasks |
|---|---|---|---|
| Supervised Learning | Input–label pairs | Learn a mapping | Classification, Regression |
| Unsupervised Learning | Unlabeled feature vectors | Discover underlying structure | Clustering, Dimensionality Reduction |
Target Function, Hypothesis, and Hypothesis Space¶
| Concept | Definition |
|---|---|
| Target function | The unknown ground-truth mapping that generates the data: . We only observe finite data, not this function. |
| Hypothesis | A candidate function used to approximate . Example: . |
| Hypothesis space | The set of all allowable hypotheses. Example: . |
Cost Function, Training, and Testing¶
Cost (objective) function: measures how well a hypothesis fits the training data. Using squared loss as an example:
Training (learning): find the best hypothesis in by minimizing the cost on the training set (optimization):
Testing (evaluation): assess the performance of the learned model on the test set:
General Machine Learning Workflow¶
Data collection: gather relevant historical data.
Data preprocessing: handle missing values, outliers, and data quality issues.
Model design: choose the hypothesis space , objective function , and optimization method.
Training: learn model parameters from training data.
Testing: evaluate performance on unseen test data.
Model improvement: refine the model, features, or data to improve performance.
Other Learning Paradigms¶
| Paradigm | Description |
|---|---|
| Reinforcement Learning (RL) | An agent interacts with an environment over time, taking actions to maximize expected cumulative reward. At each step : observe state , take action , receive reward , transition to . |
| Semi-supervised learning | Learning from a mixture of labeled and unlabeled data, typically when labeled data is scarce. |
| Ensemble learning | Combining predictions from multiple models to obtain a final decision, often improving robustness and accuracy. |
| Transfer learning | Leveraging knowledge learned from a source domain to improve learning in a target domain, especially when target data is limited. |
| Federated learning | Training models across distributed clients using local data, sharing only model updates (not raw data) — privacy-preserving. |
| Machine unlearning | Removing the influence of specific training samples from a trained model, motivated by privacy and regulatory requirements. |