MolBasis
coverageapplicability-domainchemical-spacetanimotodataset5 min read

Dataset coverage and why the molecules a model never saw matter

Dataset coverage decides where a model can be trusted. How to measure the distance from a new molecule to the training set and what to do when it is far.

Updated November 28, 2026

A model knows only the chemistry it was trained on. Dataset coverage is the question of which molecules, functional groups, sizes and property ranges a training set contains, and the molecules a model never saw are the ones on which its reported figure says nothing. A held-out figure describes molecules drawn from the same set. A new molecule outside the set is an extrapolation, and the only honest answer about it is a statement of distance from the training data.

Coverage is a property of the dataset, not the model

Every public property set has a shape. ESOL leans toward small organics and agrochemicals. FreeSolv contains neutral molecules only, mostly small. MNSol holds small neutral solutes and a set of ions. The Bradley melting-point collection is broad but reflects what a supplier catalogue sells. The Sangster compilation is deliberately simple compounds. Hansen tables are dominated by solvents and polymers. None of them contains many charged drugs, organometallics, large natural products or fluorinated materials, so a model trained on any of them has nothing to say about those.

A kernel inherits this shape. The MolBasis kernel pages list known limits per kernel, and the datalake page names the set behind each. Coverage counts are not stated in these guides. Read the kernel page and the dataset's own publication for what the set contains.

A held-out figure is not a coverage statement

A 25 % scaffold-blind split holds out whole Bemis-Murcko scaffolds, so the held-out molecules have ring systems the fit never saw. That is a harder test than a random split and it is the one MolBasis uses. It still draws from the same set, with the same elements, the same size range and the same property range. The held-out figure describes how the equation transfers to new scaffolds within that chemistry. It says nothing about a molecule whose elements, charge or size fall outside it. The guide on external validation draws the line between a held-out set and an external one, and the scaffold split guide explains the split itself.

Measuring the distance to the training set

The practical tool is the nearest-neighbour similarity. Compute an extended-connectivity fingerprint for each training molecule and for the query, and take the largest Tanimoto similarity between the query and any training molecule. The Tanimoto coefficient of two bit vectors is the number of bits set in both divided by the number set in either. A query with 40 bits set against a training molecule with 35 bits set, 20 of them shared, gives 20 / (40 + 35 − 20) = 20 / 55 = 0.36. The usual working rule, with ECFP4-type fingerprints, is that a nearest neighbour above 0.85 is close and that below about 0.3 the query is new chemistry. Those cut-offs are conventions, not thresholds with a derivation.

from rdkit import Chem
from rdkit.Chem import AllChem, DataStructs

def fp(smiles):
    mol = Chem.MolFromSmiles(smiles)
    return AllChem.GetMorganFingerprintAsBitVect(mol, 2, nBits=2048)

train_fps = [fp(s) for s in train_smiles]
query_fp = fp("CC(=O)Oc1ccccc1C(=O)O")  # aspirin
sims = DataStructs.BulkTanimotoSimilarity(query_fp, train_fps)
print(max(sims), train_smiles[sims.index(max(sims))])

For a descriptor-based kernel a second distance matters. The nine mfsig descriptors form a nine-dimensional space, and a query whose cavity area, dipole or σ-moments lie outside the range the fit saw is an extrapolation in the equation's own coordinates even if a fingerprint neighbour exists. Check the range of each descriptor in the training set and flag any query outside it. The guide on applicability domain for short equations sets out both checks. The mfsig guide on σ-moments as descriptors explains what the moments measure.

What to do when the molecule is far

Three honest options exist. Report the prediction with the distance alongside it, so a reader can discount it. Find a measured value for the nearest covered analogue and reason from there. Or state that the model does not cover the molecule and stop. The one dishonest option is to report the held-out figure as if it applied. The guide on when not to trust a kernel lists the warning signs.

A model's figure belongs to the molecules it was tested on, and travels no further than their chemistry does.

The missing molecules shape the training set too

Coverage has a second face. The molecules a dataset lacks shape what a model can learn, not only what it can predict. A solubility set with few zwitterions teaches nothing about zwitterions, and a search over descriptors and exponents will pick the equation that works for the chemistry present. For a melting point prediction set drawn from a catalogue, the compounds sold are the compounds that crystallise well and ship stable, so low-melting oils and unstable solids are under-represented. The reported figure is then a figure for well-behaved solids. Sheridan's work on time splits made the same point from another direction, since the molecules a project makes next are systematically unlike the ones it has made so far.

Key points

  • Coverage is a property of the training set. A model says nothing about chemistry the set lacks.
  • A scaffold-blind held-out figure tests transfer to new ring systems within the set's chemistry, not transfer outside it.
  • Measure distance with the nearest-neighbour Tanimoto on ECFP4 and with the range of each descriptor the equation uses.
  • When a molecule is far, report the distance, reason from an analogue or decline. Never quote the held-out figure as if it applied.
  • The molecules a dataset lacks also shape what the search can learn.

Questions people ask

What is dataset coverage in property prediction?
Coverage is the range of molecules, functional groups, sizes, charges and property values that a training set contains. A model can only describe chemistry inside that range. Its reported held-out figure refers to molecules drawn from the same set and says nothing about molecules outside it.
How do I check whether a model covers my molecule?
Compute the largest Tanimoto similarity between your molecule and any training molecule on an ECFP4-type fingerprint, and check that each descriptor the model uses lies within the range the fit saw. A nearest neighbour above 0.85 is close by the usual convention, and below about 0.3 is new chemistry.
Does a scaffold split prove a model generalises?
It shows that the equation transfers to ring systems the fit never saw, within the elements, size range and property range of the dataset. It does not show transfer outside that chemistry. That needs an external set of molecules the dataset does not contain.
What is an applicability domain?
The region of chemical or descriptor space in which a model's predictions can be trusted at the level its validation showed. It is defined from the training set, by similarity, by descriptor ranges or by distance in descriptor space, and a prediction outside it should be reported with the distance or declined.

Further reading

In practice: The datalake page lists the datasets named in the research record, their coverage as reported and what is known about their licences. No dataset is redistributed by this site.

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.