Step 3 of 7 in Artificial Intelligence & Machine Learning
Machine Learning Foundations
Supervised and unsupervised learning, loss, and generalization. Citation needed
The whole, before the parts
Machine learning fits a model to examples so it can perform a task on other data. A useful workflow separates fitting from evaluation and checks whether the examples resemble the intended setting. Citation needed
For example, to build a system that sorts messages, one collection of labeled messages can guide fitting and a separate collection can check the result. The check is useful only if it represents messages the system will actually encounter. Citation needed
The concepts follow this workflow: choose examples for fitting, assess performance on new examples, and prevent information from the evaluation from slipping into development. Each step protects the meaning of the final check. Citation needed
Terminology and core concepts
-
Training data
Training data are examples used to fit a model. Citation needed
- Should the final test set guide repeated model adjustments?
- no Citation needed
-
Generalization
Generalization is performance beyond the examples used for fitting. Citation needed
- Why evaluate on held-out examples?
- to estimate performance on unseen data Citation needed
-
Data leakage
Data leakage allows information unavailable in real use to influence training or evaluation. Citation needed
- What does leakage commonly inflate?
- apparent evaluation performance Citation needed
Try an example
A model predicts tomorrow’s sales using a field filled in after tomorrow ends. Why is its apparent accuracy misleading? Citation needed
Show the reasoning
The field contains information unavailable at prediction time. This leakage makes evaluation easier than the real task.
Citation needed
Sources and further reading
- Artificial Intelligence: A Modern Approach — background and further study for this introduction.
Core notes reviewed .
Learning path
Continue through Artificial Intelligence & Machine Learning in order, using the concepts above to connect this topic to the next.