MolBasis
reproducibilityresearch-recordscaffold-splitridgedescriptors5 min read

Reproducing a fit from a research record, what you need

To reproduce a QSPR fit you need the data with identifiers, the descriptor files at the right version, the split, the search grid, the regulariser and the code.

Updated November 28, 2026

Reproducing a fit means obtaining the same coefficients and the same held-out statistics from the same inputs by rerunning the same procedure. That needs the data with identifiers, the descriptor files at the version used, the split assignment, the search grid and the selection rule, the regulariser, and the code. MolBasis states that its fitting scripts and result files are not in a repository available for review, so its kernel figures are reported from the record rather than recomputed. This guide lists what a record must hold for a fit to be reproducible, and what to do when parts are missing.

Six ingredients, and the record must state all of them

A one-term kernel looks simple, one descriptor, one exponent, one ridge solve. The simplicity is deceptive. Six decisions sit upstream of the coefficient, and each one changes it.

  1. Data. The target values, a molecule identifier such as an InChIKey or canonical SMILES, the source dataset, and the rule used to merge duplicates and drop outliers. Two readers who deduplicate ESOL differently get different training means.
  2. Descriptors. The mfsig version, here v0.91.1, the unit convention, bohr² for areas and e/bohr² for σ, and the geometry recipe, one RDKit conformer relaxed with UFF. The nine field names are listed on /docs.
  3. Split. Twenty-five percent of unique Bemis-Murcko scaffolds set aside before any fitting, seed 2026, one split. The record should store the list of held-out scaffolds, not only the seed, because scaffold enumeration order can differ between RDKit versions.
  4. Search. The exponent grid, with its range and its 0.25 step, whether one or two terms were allowed, and the criterion used to pick the winner on the 75 percent.
  5. Fit. Ridge with λ equal to 1e-3 on z-scored terms, and the standard deviation convention used for the z-score.
  6. Evaluation. Pearson r, MAE lift against the train-mean baseline, and calibration slope, all on the held-out molecules only.

The methodology page states the protocol at the level of this list. What it does not provide is the material under each item, and that material is where reproduction lives.

Four levels of reproduction, from cheapest to hardest

Not every reproduction needs to start from a SMILES string. It helps to name the levels.

  • Statistical reproduction. From stored per-molecule predictions and observed values, recompute r, MAE and slope. This needs no code and no descriptors. Recomputing statistics from stored predictions shows the arithmetic. On MolBasis this was possible only for the blind benchmark, whose predictions exist per molecule.
  • Refit reproduction. From the data, the descriptor files, the split and the search rule, rerun the search and the ridge solve and compare coefficients. This needs the code or an exact description of it.
  • Descriptor reproduction. Rerun the DFT. The recipe is ωB97M-V with def2-SVP and C-PCM at ε equal to 80, on a single UFF-relaxed RDKit conformer. Current mfsig uses a different geometry recipe, so a current run will not match the v0.91.1 values even after unit conversion.
  • Full reproduction. All three, from SMILES to held-out r. This is the standard a reviewer would want and the one no outside reader can reach for these kernels today.

What goes wrong in practice, with examples from this record

The findings page lists what the audit of this record found, and each item maps onto an ingredient above. A descriptor defect inflated a melting-point figure, an ingredient-two failure. Three two-term equations turned out to be full-data fits and are now shown as one-term equations, an ingredient-three failure, since the split had not been applied as the protocol said. Areas were stored in bohr² under a field name that says Ų, an ingredient-two failure of labelling. Geometries came from a force field rather than a quantum-chemical relaxation, which is not an error but a fact the record must state. The findings page describes each without the numbers that appeared before and after.

A refit reproduction would have caught the full-data fits immediately, because the held-out protocol gives different coefficients from a fit on all the data. That is the practical argument for reproduction. It is not a formality. It is the only test that distinguishes a validated equation from an in-sample one. The scaffold split guide gives the procedure with RDKit, and the broader reproducibility checklist for QSPR lists the items a record should carry.

A minimal refit script

If you have the training and test arrays and the exponent, the refit itself is short. The point of writing it out is to see how many conventions hide in five lines.

import numpy as np
from sklearn.linear_model import Ridge

def refit(f_train, y_train, f_test, p, ddof=0):
    t_tr, t_te = f_train ** p, f_test ** p
    mu, sd = t_tr.mean(), t_tr.std(ddof=ddof)
    z_tr = ((t_tr - mu) / sd).reshape(-1, 1)
    z_te = ((t_te - mu) / sd).reshape(-1, 1)
    model = Ridge(alpha=1e-3).fit(z_tr, y_train)
    yhat = model.predict(z_te)
    return model.intercept_, model.coef_[0], mu, sd, yhat

The ddof argument is one hidden convention. Whether alpha in scikit-learn means the same λ as in the record's own solver is another, since some implementations scale the penalty by the number of rows. Whether negative descriptor values were shifted, clipped or dropped before the power is a third. A record that is silent on any of these can be reproduced approximately but not exactly, and an approximate reproduction that disagrees with the record cannot say whether the record or the convention is at fault.

When parts are missing

When the code is missing, write it from the methodology statement and report every convention you had to choose. When the split is missing but the seed is given, regenerate it and store the scaffold list. When the descriptor files are missing, you cannot reproduce the fit, only refit on new files and report a new result. When the predictions are missing, no statistical reproduction is possible. In each case say which level you reached. A report that reached the refit level and found different coefficients is a finding, not a failure.

Key points

  • Six ingredients fix a kernel fit. Data and deduplication, descriptor version and units, split, search grid and selection rule, regulariser and sd convention, evaluation set.
  • Reproduction has four levels. Statistical from predictions, refit from data and code, descriptor from DFT, and full from SMILES to r.
  • The MolBasis kernels are reported, not recomputed, because scripts and result files are not available for review. The blind benchmark is the one statistically reproducible piece.
  • Hidden conventions such as ddof, penalty scaling and negative-value handling block exact reproduction when unstated.
  • State the level you reached. A refit that disagrees with the record is a result worth publishing.

Questions people ask

What must a research record contain for a fit to be reproducible?
The target data with molecule identifiers and the deduplication rule, the descriptor files at the exact version and unit convention used, the split assignment or the seed and algorithm that generate it, the search grid and selection rule, the regulariser, and the code that ties them together.
Are the MolBasis kernel fits reproducible today?
Not by an outside reader. The site states that the fitting scripts and result files are not in a repository available for review, so the kernel figures are reported from the research record rather than recomputed. The one exception is a separate blind benchmark whose per-molecule predictions allowed its statistics to be recomputed.
Why does the standard deviation convention matter for reproduction?
Because z-scoring divides by the training standard deviation, and numpy defaults to the population form while pandas defaults to the sample form. On a small training set the two differ by a few percent, which propagates into the coefficient and into every prediction. A record that does not state the convention cannot be reproduced to the last digit.
Can I reproduce the descriptors themselves with current mfsig?
Not exactly. The kernels used v0.91.1 files with UFF geometries and bohr² areas. The current mfsig recipe v1.0.0 uses MMFF94s geometries and ångström units. Units convert, geometries do not, so current files give different descriptor values for the same SMILES.

Further reading

In practice: The coefficients of the kernels are not published, so no kernel can be evaluated from this site alone, and no figure here was recomputed except the separate blind benchmark. The guides say what can be done with what is available.

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.