scikit-learn Tutorial: 14 Free Hands-On Labs
scikit-learn has 14 free hands-on labs on this site: 1 beginner, 3 intermediate and 10 advanced. The most common subjects are AI engineering (6) and AI for security work (3), and the labs have you practise things like training a classifier end-to-end. A typical lab takes about 1.5 hours, and the list starts with the easiest, Train a classifier with scikit-learn. They sit mostly in AI Security.
14 labs, easiest first
- Train a classifier with scikit-learn
- Catch training-serving skew in a phishing model's feature pipeline, before it ships
- Pick an alert classifier's threshold from a cost matrix, instead of the default 0.5
- Split a phishing classifier's data by time, and measure how much a random split flatters it
- Build gradient-boosted trees from scratch for phishing URL detection, and match scikit-learn
- Detect a model-extraction attack against your own classifier from its query stream: build a PRADA-style monitor, measure detection vs false positives, and see why a patient attacker still slips through (free, local scikit-learn)
- Flag out-of-distribution alerts with ensemble disagreement, and measure what softmax confidence misses
- Give an alert classifier a coverage guarantee with conformal prediction, then break it with drift
- Group cross-validation by malware family, and measure what random folds hide
- Harden a malware feature classifier against benign-feature padding with monotonic constraints
- Label alerts on a budget with active learning, and measure it against random sampling
- Label phishing emails with weak supervision, and measure a label model against majority vote
- Probe a phishing classifier's hidden layers, catch the shortcut it learned, and prove with an intervention which concepts it actually uses
- Steal a model with a model-extraction attack: train a victim classifier, query it, and clone it into a surrogate (free, local scikit-learn — no API key)
Cheat sheets
Tool documentation
Certifications
Interview preparation
Lab catalog
Related topics
- Free AI Security Labs (241 hands-on) | Lion Cipher
- Free Foundations Labs (126 hands-on) | Lion Cipher
- Free SOC Analyst / Blue Team Labs: 155 Hands-On
Related
- Train a classifier with scikit-learn
- Catch training-serving skew in a phishing model's feature pipeline, before it ships
- Pick an alert classifier's threshold from a cost matrix, instead of the default 0.5
- Split a phishing classifier's data by time, and measure how much a random split flatters it
- Build gradient-boosted trees from scratch for phishing URL detection, and match scikit-learn
- Detect a model-extraction attack against your own classifier from its query stream: build a PRADA-style monitor, measure detection vs false positives, and see why a patient attacker still slips through (free, local scikit-learn)
- Flag out-of-distribution alerts with ensemble disagreement, and measure what softmax confidence misses
- Give an alert classifier a coverage guarantee with conformal prediction, then break it with drift
- Group cross-validation by malware family, and measure what random folds hide
- Harden a malware feature classifier against benign-feature padding with monotonic constraints
- Label alerts on a budget with active learning, and measure it against random sampling
- Label phishing emails with weak supervision, and measure a label model against majority vote
- Probe a phishing classifier's hidden layers, catch the shortcut it learned, and prove with an intervention which concepts it actually uses
- Steal a model with a model-extraction attack: train a victim classifier, query it, and clone it into a surrogate (free, local scikit-learn — no API key)
- Free AI Security Labs (241 hands-on) | Lion Cipher
- Free Foundations Labs (126 hands-on) | Lion Cipher
- Free SOC Analyst / Blue Team Labs: 155 Hands-On
- scikit-learn cheat sheet
- scikit-learn official documentation
- AI Security certifications and free study routes (3 listed)
- AI Security interview preparation
- All scikit-learn labs with filters
- Plain-English glossary
- Free cyber labs