Loading lesson…
Level 1 · Apprentice0 XP
What training means, why you hold data back, and why accuracy can lie.
Step 1 / 5
ProblemA fraud model scores 99% accuracy. Impressive, until you learn that only 1% of payments are fraud. A model that always answers 'not fraud' gets the same 99% and catches nothing.
← → step
Before this: Rust for Python and AI
🛠️ Your turn
Reading is not the skill, doing is. Try for ten minutes before you open the hint. Getting stuck first is what makes the solution stick.
1.With scikit-learn, train a LogisticRegression on the built-in breast cancer dataset with an 80/20 split. Print the classification report and say in one sentence which matters more here, precision or recall, and why.