WeCodeAcademy

Practice: Classify Flowers

Put the steps together on a classic dataset: 150 flowers of three species, each described by four measurements. Load it, split it, build a pipeline, test it and check where it goes wrong.

Examplepython
Open in editor »
Quick check

Why pass `stratify=iris.target` to the split?

Your turn: write the code

Print the species name predicted for a flower measuring [6.5, 3.0, 5.5, 2.0].

Finish the quick check (and any code exercise) to complete this lesson, or mark it done yourself.

Tip: use the left and right arrow keys to move between lessons.