Full-data fits mislabelled as validated and how to fix them
An equation fitted on all the data cannot carry a held-out figure. Three kernels were shown that way and now appear as the one-term equations the gate chose.
Updated November 28, 2026
A full-data fit is an equation whose form or coefficients were chosen using every molecule in the dataset. It can be a perfectly good final model, but it cannot carry a held-out figure, because there is nothing left to hold out. Three MolBasis kernels were shown as two-term equations whose second term came from such a fit, and the findings page records the correction. The pages now show the one-term equations the gate selected on the training share, with the held-out figures that belong to them.
How the protocol is supposed to work
The MolBasis protocol sets aside 25 percent of the Bemis-Murcko scaffolds before any fitting. On the remaining 75 percent the search runs, the gate chooses an equation, one or two terms, and the coefficients are fitted there. Only then are the held-out molecules used, to compute Pearson r, the MAE lift against the train-mean baseline and the calibration slope. The equation that is evaluated is the equation the gate chose on the 75 percent. The methodology page states this sequence.
A figure produced this way is a held-out figure for one specific equation. If the gate chose one term on the 75 percent, the figure belongs to that one-term equation. A two-term equation fitted later, on the whole dataset, is a different model, and the held-out figure says nothing about it.
How the mislabelling happens
Pipelines often end with a final refit on all data. That step is legitimate. Once a form has been validated, refitting the coefficients on every molecule gives the most precise estimate of them for use. The trouble starts when the final refit also reruns the search and lands on a different form, or when a second term that the gate rejected on the 75 percent is accepted on the full set because the extra molecules tipped the feature-addition test.
The result is two objects in storage. One is a one-term equation with a held-out figure. The other is a two-term equation with no held-out figure, or with an in-sample figure. If the two are stored under the same kernel name without an equation identifier, a page builder that pulls the latest equation and the best figure will show the two-term equation beside the one-term figure. Nothing in the display is false in isolation. The combination is.
Tropsha and colleagues described the general form of this leak in 2003. Any step that uses the test molecules to choose the model turns the test figure into a training figure for that choice. The guide on in-sample versus held-out treats the distinction from first principles.
What the correction looks like
The findings page records that three two-term equations were full-data fits. The fix was not to recompute a held-out figure for the two-term forms, because the held-out molecules had already been used to choose them and no clean figure could exist. The fix was to show the equation the protocol actually supports. The three kernels now appear as one-term equations, with the held-out r and the number of molecules the gate's evaluation rested on. The in-sample figure remains as a secondary value.
The guide on one-term versus two-term equations explains when a second term earns its place. Here the point is narrower. A second term that earns its place on all the data but not on the training share has earned nothing a held-out test can confirm.
A provenance record that prevents it
The cure is to make the link between an equation and a statistic explicit in storage. Every equation gets an identifier that includes its form, its descriptors, its exponents and the data it was fitted on. Every statistic stores the identifier of the equation it was computed for and the identifier of the molecule set it was computed on. A display layer refuses to show a statistic beside an equation with a mismatched identifier.
equation = {
"id": "esol/one-term/sigma_variance^1.25/train75-seed2026",
"terms": [("sigma_variance", 1.25)],
"fitted_on": "train75-seed2026",
}
statistic = {
"equation_id": "esol/one-term/sigma_variance^1.25/train75-seed2026",
"evaluated_on": "heldout25-seed2026",
"metric": "pearson_r",
}
assert statistic["equation_id"] == equation["id"]
assert statistic["evaluated_on"] != equation["fitted_on"]The second assertion is the one that would have caught the mislabelled kernels. A statistic whose evaluation set overlaps the fitting set is in-sample by construction and must be labelled so. The guide on an audit trail for a property model extends this to the whole pipeline, and the guide on versioning models and publishing corrections covers what to do once a mismatch has already been published.
Why the fix is to show less
A reader might expect a correction to replace one number with a better one. Here it replaced a two-term equation with a one-term one, which looks like a step backwards. It is the opposite. The two-term equation had a figure it had not earned. The one-term equation has a figure it has. A page that shows a weaker model with an honest figure is worth more than a page that shows a stronger model with a borrowed one, and that is the standard the kernel pages are held to.
Key points
- A held-out figure belongs to the one equation that was chosen and fitted without the held-out molecules.
- A final refit on all data is legitimate but can carry no held-out statistic.
- Lost provenance between equations and statistics lets a full-data fit sit beside a borrowed figure.
- MolBasis now shows the three affected kernels as the one-term equations the gate chose.
- Store an equation identifier with every statistic and assert that evaluation and fitting sets differ.
Questions people ask
- What is a full-data fit?
- A model whose descriptors, exponents or coefficients were chosen using every molecule in the dataset, including those later presented as held out. Any statistic computed on those molecules is in-sample for that model, whatever the page beside it says.
- How does a full-data fit end up next to a held-out figure?
- Usually through lost provenance. A pipeline computes a held-out figure for the equation chosen on the training share, then refits a final equation on all data for display, and the two are stored without a link. Later the display equation and the held-out figure are shown together.
- What did MolBasis correct?
- Three kernels had been shown as two-term equations whose second term came from a fit on the full data. The findings page records this, and the kernel pages now show the one-term equations the gate selected on the training share, with their held-out figures.
- How do I prevent it in my own work?
- Give every equation an identifier, store every statistic with the identifier of the equation it was computed for, and refuse to display a figure next to an equation with a different identifier. A final refit on all data should carry no held-out statistic.
Further reading
In practice: The findings page lists every correction made to the record so far, with its cause. Figures on this site are reported from the record, not recomputed, and the site says so wherever it matters.
See the kernels themselves
Every kernel is shown with its held-out result, the number of molecules it rests on and what it cannot be trusted for.