Machine learning replaces hand-written input-to-output rules with a mathematical model that learns a classification or quantitative estimate from data. It is best viewed as function approximation: a model stands in for an unknown transformation that maps inputs to desired outputs. section 1.1 section 1.2
A model architecture specifies the form of the approximation and exposes tunable parameters, or weights. Training uses examples with known outputs to choose weights whose predictions match those outputs as closely as possible. After training, inference applies the fully determined function to new inputs. section 1.2
The core workflow is:
- Frame a task as a transformation from input features to a class or estimated value. section 1.1
- Choose a parameterized model function suited to the task's physical nature and complexity. section 1.2 section 1.8
- Optimize its weights on training inputs paired with known outputs. section 1.2
- Deploy the learned function for inference on inputs beyond the training set. section 1.2
A two-feature cat brain
A toy decision-maker receives hardness and sharpness, combines them as a weighted sum plus a bias, and produces a threat score. A negative score leads to “approach and purr,” a near-zero score to “ignore,” and a high score to “run away.” This reduces classification to a quantitative estimate followed by a decision. section 1.1 section 1.3
| input: hardness = 0.01, sharpness = 0.02 → threat = —0.90 → decision: “approach and purr” input: hardness = 0.50, sharpness = 0.60 → threat = 0.01 → decision: “ignore” input: hardness = 0.99, sharpness = 0.97 → threat = 0.90 → decision: “run away” |
Compare three hardness-and-sharpness inputs with their threat scores and resulting decisions to see how one learned numeric output supports classification. section 1.1
Geometrically, a model transforms a point in a multidimensional input space into a point in an output space. Harder tasks require greater expressive power; nonlinearity and layered combinations of simpler machines lead to deep learning. section 1.8









































