Code state 1
Train
model.fit(measurements, labels)
1 / 11
One static lecture with two views over the same document. Reading mode is the default continuous study document. Present mode changes layout, type, and navigation only.
A learned model maps measurements to a species prediction.
| Sepal length | Sepal width | Petal length | Petal width | Known species |
|---|---|---|---|---|
| 5.1 | 3.5 | 1.4 | 0.2 | setosa |
Train
model.fit(measurements, labels)
Use
model.predict(new_measurements)
Conceptual fitting patterns; shapes identify groups. Not measured Iris results.
CS 450 · original conceptual illustration · Original course schematic; all rights reserved
The score summarizes predictions on the separate cases.
Separate cases provide a check on a trained model.
Get a working notebook or join the paper/projected route.
Explain one example and one prediction.
Predict what could change before you rerun.
Complete three lines.