Applied concepts
Applied projects and practice
Practice the ideas in this book with small projects you can repeat and explain.
Ten days from concepts to demonstration
Spend each session reading, explaining one concept aloud, and producing one small piece of evidence. A shorter week can combine adjacent sessions; a two-week schedule can add repetition and feedback. Do not replace error analysis with more model tuning.
| Day | Read and rehearse | Practice output |
|---|---|---|
| 1 | Lifecycle; problem framing | Decision, stakeholder, baseline, and acceptance brief |
| 2 | Data preparation; validation | Temporal/group split diagram and leakage checklist |
| 3 | Linear models; evaluation | Hand-calculated prediction and metric example |
| 4 | Similarity and clustering; ensembles | Baseline comparison and failure cases |
| 5 | Neural anomalies | Forward/gradient calculation and alert budget |
| 6 | Optimization | Feasible plan and independent optimum check |
| 7 | Text mining; PII/PHI | Synthetic span annotation and redaction tests |
| 8 | Python engineering | Module sketch, contracts, and test matrix |
| 9 | Delivery; teamwork | Release gates, risk register, and runbook |
| 10 | Review all three capstones below | Repeatable demonstration, explanations, and handoff |
Three bounded synthetic capstones
1. Machine anomaly triage. Create hypothetical sensor windows with normal regimes, injected events, missing readings, and a later regime shift. Compare robust z-scores, IsolationForest, and an autoencoder under the same split and alert budget. Test that scaling uses training rows only, machine groups do not cross the intended boundary, and event grouping does not count one incident repeatedly. Artifacts: split manifest, model comparison, error examples, threshold rationale, and review queue sketch. Business measures: false alerts per day, detection delay, event recall, and estimated reviewer time. Success means a reproducible comparison with explicit uncertainty, not necessarily a neural-model win.
2. Production planning. Reproduce the two-product LP, verify its 2,200-margin optimum, then add a hypothetical minimum order and a downtime scenario. Test nonnegativity, every capacity residual, an intentionally infeasible case, and integer restrictions if introduced. Artifacts: variable/unit dictionary, model formulation, baseline plan, solver-status explanation, and sensitivity report. Business measures: feasible margin, resource use, violations, and robustness under downtime. Success means independently checked decisions and a clear explanation of when the recommendation changes.
3. Text review and redaction. Use invented placeholder records and ordinary health-language negatives. Combine rules with a proposed NER component; distinguish document routing from entity spans. Test Unicode offsets, overlapping spans, long text, template separation, and final redacted output. Artifacts: annotation guide, synthetic fixtures, exact/partial entity scorecard, privacy risk notes, and reviewer workflow. Business measures: missed sensitive spans, unnecessary removal, and review time. Success means transparent limitations and passing fixture checks, not a compliance guarantee.
Review questions and explanations
Explain your approach in ninety seconds.
Name the decision and stakeholder, describe the baseline and realistic split, explain one modeling choice, report evidence with uncertainty, and finish with the next controlled step. Separate completed work from proposed work.
Why is a reconstruction score not a failure probability?
It measures input reconstruction error, not a calibrated outcome likelihood. Select a threshold on clean validation data, then measure event detection and operational alert burden on held-out data.
How do you know an optimization answer is usable?
Check physical assumptions, units, feasibility residuals, integrality, solver status, and bounds. Stress-test uncertainty and obtain operational review; optimality only applies to the modeled problem.
How would you handle an unexpected result?
Reproduce a small case, inspect contracts and leakage, compare the baseline, communicate the blocker, and preserve an audit trail. Avoid silently changing acceptance criteria or exposing sensitive data while debugging.
Define a credible finish line
Use acceptance criteria and a baseline to assess progress, with explicit reproducibility evidence. End with one repeatable demonstration, reviewed tests, a limitations summary, and a handoff another person can follow. Assess progress through evidence delivered and risks clarified, without overstating production readiness.