The Observation Theory EncyclopediaFrom TSKAboutBy kindBy chapterBy Lean fileLedgerProvenance

harness concept

DefinitionThe code that evaluates a model. It is itself a consumer with a read subspace, and chapter 8 shows how it reads the test fold when allowed to.
ExampleTen folds, five seeds, and 100 samples per fold is a budget of 5000 reads of the data.
BookData Mining as Observation, draft 0.2, commit f3914f0; entry id harness, kind concept.
Statusno ledger row names this entry. Corrections: 1 item(s), see below.
Defining equation

Book equation 8.1.

Assumptions and scope
  • The harness is the code that evaluates a model, and it is a consumer with its own read subspace, its output metric, and a budget of folds, samples, and seeds. What it reads decides what the reported score measures.
  • A harness that is allowed to see the test fold, through feature selection before the split, through repeated selection on one split, or through a metric that discriminates nothing, reports a score of itself.
  • Repeated cross-validation folds are not independent, so the variance of a fold mean is understated unless corrected, and the program’s own retracted comparison is the case.
Prior artnone recorded
Evidencetheory-radar/paper/REVISION_PLAN.md:39-45, lean/DataMiningAsObservation/Bonferroni.lean
Reviewednot yet reviewed; generated 2026-09-10 from records at the commits on the provenance page.
traintraintesttraintrainevery row is tested once across the 5 folds
The evaluation reads folds, samples, and seeds, and what it reads it can leak.

Equation

Book equation 8.1.

\[O_{\mathrm{harness}}=\big(C_{\mathrm{score}},\ G_{\mathrm{metric}},\ B=\text{folds}\times\text{samples}\times\text{seeds}\big).\]

Conditions

Conditions are curated in entries.toml rather than read from a record.

Ledger

none

First stated

Chapter 8 section 8.1 of Data Mining as Observation, with the program’s own harness failures in openvector-bench/results/QUERY_COUPLING_ARTIFACT.md:1-20 and constraint-gap/review/FINDINGS.md:1-35.

Measurements

none

Failures and corrections

Invariance envelope

none declared

Machine checked

lean/DataMiningAsObservation/Bonferroni.lean, theorems family_error_le, bonferroni, one_look, at observation-data-mining f3914f0; what the check covers is stated in the book’s appendix C.

Used in

Data Mining as Observation chapters 1, 2, 4, 6, 7, 8, 10, 12, 14.

Related

leakage; observer; preregistration; ledger class.

See also

Book equations stated beside the entry’s terms, not defining it: 8.2, 8.3.

Ledger rows that cite the entry’s records without naming it: OT-11, NEG-2, NEG-4.

Sources-table rows that share a record with the entry without naming it: chapter 1 section 1.4, chapter 2 section 2.5, chapter 3 section 3.2, chapter 6 section 6.4, chapter 8 section 8.1, chapter 8 section 8.2, chapter 8 section 8.4, chapter 8 section 8.5, chapter 11 section 11.1, chapter 11 section 11.2.

Status

Generated 2026-09-10 by encyclopedia/generate.py; book at observation-data-mining f3914f0; the commit of every record is listed in the encyclopedia’s provenance.

← graphhash →