The one-seed, one-split problem in model validation
A held-out figure from one split and one seed is one draw from the distribution of possible splits. How wide that distribution is and how to report the figure.
Updated November 28, 2026
A held-out figure from one split with one seed is a single draw from the distribution of figures that other equally valid splits would have given. On a small dataset grouped by scaffold that distribution is wide, because the draw decides how many molecules are held out and how far their chemistry sits from the training set. The MolBasis protocol uses one split with seed 2026, declared in advance, and holds no confidence interval for the held-out figures. This guide shows how large the split-to-split spread can be, why a declared seed is honest while an undeclared one is not, and how to report a single-split figure so that the reader can weigh it.
How many splits there are
Take a dataset with 20 unique Bemis-Murcko scaffolds. A 25 percent scaffold split holds out 5 of them. The number of distinct ways to choose 5 from 20 is 15504. Each seed selects one of those 15504 splits. The scaffold groups have different sizes, so the splits differ in held-out molecule count, and they differ in which chemistry is held out. One split holds out the five smallest singletons. Another holds out the two largest families and half the molecules with them.
The model does not change between those splits, but the held-out r, MAE lift and calibration slope all do. The guide on the scaffold split shows that the held-out molecule share alone can range from 10 to 50 percent for the same 25 percent rule. The figures ride on top of that.
Measuring the spread
The honest way to know how wide the distribution is for a given dataset is to draw many splits and compute the figure on each. GroupShuffleSplit in scikit-learn draws group-respecting splits with a seed per draw. Run it a hundred times, refit the equation on each training part, score the held-out part, and look at the median and the 5th to 95th percentile range.
import numpy as np
from sklearn.model_selection import GroupShuffleSplit
from sklearn.linear_model import Ridge
from sklearn.pipeline import make_pipeline
from sklearn.preprocessing import StandardScaler
rs, ns = [], []
for seed in range(100):
gss = GroupShuffleSplit(n_splits=1, test_size=0.25, random_state=seed)
tr, te = next(gss.split(X, y, groups=scaffolds))
m = make_pipeline(StandardScaler(), Ridge(alpha=1e-3)).fit(X[tr], y[tr])
rs.append(np.corrcoef(y[te], m.predict(X[te]))[0, 1])
ns.append(te.size)
rs, ns = np.array(rs), np.array(ns)
print(np.median(rs), np.percentile(rs, [5, 95]), ns.min(), ns.max())Two caveats. GroupShuffleSplit draws a share of groups, so like the MolBasis protocol it yields variable held-out molecule counts. And this loop refits only the coefficients. If the descriptor and exponent search is also rerun per split, as nesting requires, the spread is larger still, because different splits pick different equations. The guide on nested cross-validation explains why the search belongs inside the loop.
What the best of several seeds is worth
Suppose the held-out r across seeds is roughly normal around 0.60 with a standard deviation of 0.08. A single declared seed gives a draw from that distribution, typically within 0.08 of 0.60. Now suppose someone tries 20 seeds and reports the best. The expected maximum of 20 standard normal draws is about 1.87 standard deviations above the mean. The reported figure is then about 0.60 + 1.87 × 0.08 = 0.75. Nothing about the model improved. The extra 0.15 is the cost of letting the seed be chosen after the fact.
The seed therefore has to be fixed before any fitting and written into the record, where it can be checked against the split indices. A seed declared in advance is a sample. A seed chosen after looking at results is a selection, and the figure it produces belongs with the in-sample figures, as the guide on in-sample versus held-out argues.
Reading the MolBasis protocol in this light
The MolBasis methodology states that 25 percent of unique scaffolds were set aside with seed 2026, one split, before fitting, and that the record holds no confidence interval for the held-out figures. That is a single declared draw. Each kernel page states the number of held-out molecules the figure rests on, which is the main determinant of how wide the split distribution would be. The record's rigor gate contains bootstrap intervals, a permutation floor and nested cross-validation computed during selection, which address other sources of uncertainty, and the guide on bootstrap confidence intervals explains how those relate to the split draw.
A reader should take each kernel's held-out figure as one point from a distribution whose width grows as the molecule count shrinks. The guide on small test sets and unstable figures gives the arithmetic that turns the count into a width. The guides do not quote any kernel's figure or count, since the result files are not available for review and the figures are reported from the research record.
Reporting a single split without pretending
Three sentences are enough. "The held-out set is 25 percent of Bemis-Murcko scaffolds, drawn once with seed S before fitting, giving N molecules." "The figures below are from that single split and carry no interval." "Across R repeated splits the median held-out r was M with a 5th to 95th percentile range of A to B", when that was computed, or "repeated splits were not computed" when it was not. A reader given those sentences can weigh the number. A reader given a bare r cannot.
If the protocol later moves to repeated splits, the old single-split figures should stay visible with their label rather than being overwritten. The guide on versioning models and publishing corrections explains how to keep both without confusing anyone.
Key points
- With 20 scaffolds and a 25 percent rule there are 15504 possible splits. One seed picks one of them.
- The held-out figure varies across splits with the molecule count and the chemistry held out. Measure the spread with repeated grouped splits.
- The best of 20 seeds sits about 1.87 standard deviations above a typical draw. A seed fixed before fitting cannot be chosen that way.
- MolBasis uses one declared split, seed 2026, with no interval. Read each figure as one draw and the molecule count as its width.
- Report the seed, the rule, the count, the words "one split, one seed", and the spread over repeats when available.
Questions people ask
- Why does the random seed of a split matter?
- The seed decides which scaffolds or molecules are held out. Different draws give held-out sets of different size, chemistry and difficulty, so the same model scores differently on each. The figure from one seed is one sample from that distribution, and on small datasets the distribution is wide.
- What is seed hacking?
- It is trying several seeds and reporting the one that gives the best figure. The reported number is then the maximum of several draws rather than a typical one. With 20 seeds and a spread of 0.08 in r, the best seed sits about 0.15 above the typical value. A seed chosen before any fitting and declared in the record cannot be hacked.
- How should a single-split figure be reported?
- State the seed, the rule, the number of held-out molecules, and the words one split, one seed. Add the spread over repeated splits when it can be computed. A declared single split is a limited but honest figure. An undeclared one leaves the reader unable to tell a typical draw from a chosen one.
Further reading
In practice: The methodology page describes the checks applied to every kernel, scaffold-blind split included, and the limits of those checks. Every kernel page quotes the held-out figure first and the in-sample figure second.
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.