Unit 10 of 11 · about 5 hours · measure
A baseline-only study of variance, slices, difficulty and headroom
A baseline-only study can show that the next useful experiment concerns data, measurement or scope rather than another model. Keep the losing learned baseline as evidence.
You'll be able to
- Use only baselines to characterize temporal variation, critical slices and task difficulty before adding a method.
- Separate deterministic-fit repeatability from variation across data periods and populations.
- Bound the headroom supported by observed errors without claiming to know irreducible error.
Covers
Read
In this order, only the parts listed
0 of 3 done
- Slices can expose a different problemCS329S - Machine Learning Systems Design
CS329S, 2022, Lecture 6: Slice-based Evaluation, including heuristic-based and error-analysis approaches
Skip Table 5-4 as a fixed-population model comparison: its models have different subgroup denominators. Use identical cases and weights across methods. Label discovered slices exploratory.
- A bounded pilot, not a demand benchmarkUCI Bike Sharing Dataset
Dataset Information, Additional Variable Information and Dataset Files: hourly rental counts in 2011 and 2012;
hr,weekday,mnth,workingday,cntCount the chosen archive: it has 17,379 hourly records, not the page's 17,389. Its no-missing-values claim concerns recorded fields, not a complete hourly time grid.
- Keep variance, errors and negative outcomesApplied Science Investigation - Research Charter
Milestone A; Measurement requirements; Design-defense questions 4 and 6
Focus on
- Labeled Bike Sharing pilot, rerun with NumPy 2.5.4: archive SHA-256
b70182d0d0508e9abbb79306ce5c0cec34869000f8220175ac83d11dbe845401; 8,645 observed hours in 2011 fit, 4,358 hours in January to June 2012 validate; July onward not scored. Validation MAE in rentals/hour was 154.23 for the training mean, 91.89 for the training hour-by-weekday mean and 101.50 for calendar ridge. One deterministic fit per method, no random seed or seed spread, no inferential interval. These are example results, not targets. - The pilot ridge used 68 columns: intercept, all 24 hour indicators, seven weekday indicators, 12 month indicators and 24 hour-by-workingday indicators. It solved penalized normal equations in
float64with penalty 10 on every coefficient except the intercept, then clipped predictions below zero. No tuning, same validation rows and MAE for all three. More terms did not help in this setup; this does not establish a general model ranking or identify a drift mechanism. - On development and selection evidence, report daily paired losses, predeclared weekday and hour slices with counts, missing-hour coverage and a declared alternative aggregation. Repeating a deterministic fit adds no independent data. Use the core resampling result to choose temporal blocks, not independent hourly bootstrap draws, if you quantify sampling uncertainty.
- Headroom is a question, not the distance to an assumed perfect model. Zero error is a mathematical lower bound for MAE, not an achievable benchmark. Persistent errors can come from unavailable predictors, supply-constrained labels, shift or model limitations. A residual slice motivates a discriminating experiment; it does not establish its cause.
Common mistakes · 3
- Calling the pilot ridge a published strong-baseline reproduction. It is an untuned starter with a fully stated setup.
- Equating deterministic rerun agreement with low uncertainty about future performance. New periods can differ even when numerical reruns match.
- Scoring absent bike hours as zero rentals. That changes both the labels and the evaluation population without evidence.
Try it yourself
Closed-book, before checking anything
Quiz yourself
Answer first, then mark it. Missed ones go to Review.
0 got · 0 missed
1.What does the pilot heuristic beating ridge establish?Answer
Only that this fitted heuristic had lower MAE on these selection-period observed hours under this setup. It does not establish significance, final-period superiority or a mechanism.
2.A deterministic baseline gives the same score on 20 reruns. Have you measured data-period variance?Answer
No. Those reruns reuse the same observations and fitted procedure. Examine variation across relevant held-out periods and preserve their dependence.
3.Does the block improvement of zero prove there is no possible improvement in that period?Answer
No. It describes this finite comparison. It neither estimates irreducible error nor excludes a useful effect with adequate precision.
You're done when
You recover the paired fixture's mean and block improvements and can name two different explanations for the library baseline's difficult slice, each with a different next measurement.
Only when you can do this without notes.
Leads to
Notes
Resources · 3 for this unit, 7 more in the section
- CS329S - Machine Learning Systems DesignStanford University · support
Use the 2022 notes for Lecture 1 (Machine learning in research vs. in production, Stakeholders and their objectives, Requirements for ML Systems) and Lecture 6 (Model Offline Evaluation: Baselines, then the perturbation, invariance and directional expectation tests and Slice-based Evaluation). Model selection, development and training is one combined Lecture 5; read its tip 3 on unequal tuning effort. Excluding a sensitive attribute does not remove proxies, and the Lecture 6 subgroup table uses different denominators per model, a composition effect rather than a same-population ranking reversal.
- Applied Science Investigation - Research CharterRoadmap-Final · support
Use Overview, Milestone A, Core requirements and Correctness requirements as the charter template. Begin one investigation here and keep extending the same artifact through the final stage. Freeze the development, selection, test and reserved extension periods or groups before any final scoring, and run a sub-minute baseline ladder (a global mean, a stratified mean, one regularized model) as development evidence. A more flexible model losing to a simple heuristic is a result to keep.
- UCI Bike Sharing DatasetUCI Machine Learning Repository (Fanaee-T and Gama) · support
A licensed starter for the investigation: hourly and daily Capital Bikeshare rentals for 2011 and 2012 with calendar and weather fields (DOI 10.24432/C5W894; keep the attribution and record your transformations). The archive has 17,379 hourly rows although the page states 17,389. Missing hours are not zero demand,
casualplusregisteredequals the target, same-hour weather is not a day-ahead forecast, and counts are realized rentals, not demand or the effect of rebalancing. Separate formulations it supports (next-day counts) from ones it cannot (a causal policy effect).
Also in this section
- REFORMS: Consensus-based Recommendations for Machine-learning-based ScienceKapoor et al., Science Advances · primary
Read the article's scope section and Table 1, then the paired guidelines for items 1a to 1c (population of interest rather than the sample, why that population, why ML), 3b and 3g (sampling frame, representativeness), 5f (baselines), 6c (feature legitimacy at prediction time) and 8a to 8b (generalizability and where the claim does not hold). Write the charter against those items. REFORMS targets ML-based science and excludes pure methods research, so a methods question uses the applicable items, never a compliance claim. Its checklist and guidelines (https://reforms.cs.princeton.edu/) are a 2024 consensus, not a tested intervention. No source here derives an estimand, timeline and stop threshold for you: write one worked contract with a counterexample for each.
- Project Design - Planning and ChecklistThe Turing Way · required
Organizational companion, not the design method. Read Getting Started with Project Design (Setting Expectations Explicitly, Getting Ethical and Legal Approval), the Getting Started Checklist (Methodology, Stakeholders, Reporting & Evaluation) and Reproducibility Methods (Choose a License, Documenting the Design of your Study). Record stakeholders, approvals, licence and which work is exploratory or confirmatory. The Computational Reproducibility claim that notebooks need no installation describes a hosted option, not notebooks in general.
- The Heilmeier CatechismDARPA · required
Answer all eight questions for the proposed investigation, including current practice, novelty, who cares, risks, cost, duration and the midterm and final examinations. Use the answers to remove vague scope.
- Machine Learning Problem FramingGoogle for Developers · support
The core already assigned these exercises. Reread only Predictions vs. actions, Proxy labels and Define the success metrics as a critique: does the product decision deserve improvement, and can proxy movement justify the action? Two passages need correcting: in Regression, model family alone does not make classification "produce the correct behavior" (actions need calibrated probabilities and costs or a decision loss), and the "undefined gap" between failure and success is exactly where your charter must predeclare an action.
- Rules of Machine Learning - Selected RulesGoogle for Developers · support
Read Rules 1 to 5, 12 and 13, 25, 27 to 29, 31, 33, 38 and 39. Pair Rule 12 ("Don't overthink") with 13 and 39: the Alice example (better logistic loss and installs, daily active users down 5%) shows a better predictor rejected for a wrong objective. Rule 1's "50%" boost is rhetoric, and Rule 33's stable AUC expectation fails under concept shift.
- UCI Wine Quality DatasetUCI Machine Learning Repository (Cortez et al., 2009) · support
An alternate investigation domain: 1,599 red and 4,898 white wines, 11 physicochemical inputs and an ordinal expert score (the median of at least three evaluations). There are no producer, lot, taster or date identifiers, so identical rows may be repeats or distinct samples; keep feature-identical rows in one split group and bound claims accordingly. Red-to-white transfer is a deliberately hard boundary, not evidence about all wine.
- Research Methods Knowledge Base: Construct ValidityWilliam M. K. Trochim, hosted by Conjointly · required
Construct Validity: opening definition, operationalizations of measures and treatments, convergent and discriminant evidence, and the final theoretical-pattern versus observed-pattern discussion (page read 2026-10-19). Use this to challenge a proxy, not as a checklist proving validity.