Machine learning is a way to create programs by giving a computer data instead of writing every behavior by hand. An engineer designs the model’s architecture; training fills its parameters with values that improve performance on a task. section 1.25
Teaching a model from examples
An LLM learns from large amounts of text. Self-supervised training automatically creates examples by asking the model to predict missing or next tokens; later, manually generated examples can refine its behavior toward user goals. The result is useful, but its learned representations are difficult to interpret. section 1.1 section 1.14 section 1.34
The basic machine-learning workflow separates human design from machine adjustment:
- Design an architecture: choose and arrange operations suited to the task, such as embeddings, projections, or a transformer. section 1.25
- Leave parameters unspecified: these numerical values form the adjustable blanks inside the architecture. section 1.25
- Train the model: run an algorithm over data to search for parameter values that improve performance. section 1.25
- Choose a learning style: supervised learning uses labeled examples, self-supervised learning generates examples from data, and unsupervised learning finds structure without supplied answers. section 1.34
A short PyTorch model makes the division visible: the engineer assembles an embedding and projection, while training determines their parameters. section 1.25
Machine learning is not identical to artificial intelligence: AI describes the broader goal of making programs perform tasks in human-like ways, while machine learning is a commonly used method for pursuing that goal. Its main tradeoff is predictive power versus explainability. Complex models may predict well but become black boxes, so simpler models or explainable-AI techniques may be preferable when people need to understand the reasons behind outputs. section 1.0 section 4.4









































