xnn.common.data.hub.gmtkn55#

Builder for the GMTKN55 benchmark database (Goerigk et al. 2017).

GMTKN55 collects 55 benchmark sets of general main-group thermochemistry, kinetics and noncovalent interactions: 1505 relative energies computed from 2462 single-point structures, with reference values at the W4 / W1-F12 / W2-F12 / CCSD(T)/CBS level (Goerigk, Hansen, Bauer, Ehrlich, Najibi & Grimme, Phys. Chem. Chem. Phys. 19, 32184, 2017, DOI 10.1039/C7CP04913G). The sets fall into five categories: basic properties and reactions of small systems (18 sets), reactions of large systems and isomerisations (9), barrier heights (7), intermolecular (12) and intramolecular (9) noncovalent interactions; see CATEGORIES.

Data#

The files are those of the maintainers’ repository grimme-lab/GMTKN55 (dataset license CC BY 4.0; cite the paper above). Two versions are available, each pinned to a commit and verified by MD5:

  • "v2" (default): the v2 branch, with the maintainers’ updated reference values (251 reactions in C60ISO, ISOL24, UPU23, S66, G21EA, G21IP, WATER27, BH76, BH76RC, BHPERI, PX13 and BHDIV10) and 10 reactions removed whose references were affected by spin contamination (Liang & Head-Gordon, J. Chem. Theory Comput. 2025, DOI 10.1021/acs.jctc.5c01380): 1495 reactions, 2448 structures. The changes are listed in the repository’s REFERENCE_UPDATES.md.

  • "v1": the v1 branch, the reference values of the 2017 paper: 1505 reactions, 2462 structures. The geometries are identical in both versions.

Only the geometries, charges, spins, reaction definitions, bibliographies and the maintainers’ PBEh-3c single-point outputs are extracted from the archive (about 40 MB); the evaluation scripts of the repository are not used. Everything is cached under datasets/gmtkn55/raw/; nothing ships with xnn.

Contents#

load_dataset("gmtkn55") returns two lists:

  • structures: one structure dict per species of every loaded set (2442 distinct species in v1, 2420 in v2) with atomic_numbers, pos (Angstrom), total_charge, spin_multiplicity (unpaired electrons + 1), subset, category, name (the species folder of the repository) and pbeh3c_energy, the maintainers’ PBEh-3c/def2-mSVP total energy in eV (a ready baseline and the oracle of the verification notebook);

  • reactions: one record per relative energy with subset, category, index (1-based within the set), species (names), stoichiometry (signed integers) and reference in kcal/mol. A reaction energy is sum(coefficient * E(species)); the sign convention is the repository’s (e.g. S22 and S66 binding energies are positive).

The BH76RC set is defined on the structures of the BH76 folder; its species are listed under subset="BH76RC" as well.

The helpers reaction_energies(), subset_statistics() and wtmad2() score a model from a mapping of its per-species energies. WTMAD-2 (eq. 2 of the paper) scales every set’s mean absolute deviation by 56.84 / <|dE|> with 56.84 kcal/mol the paper’s average of the 55 mean absolute reference energies (PAPER_SCALE), weights it by the number of reactions and divides by the total count. The paper’s constant is kept by default so that scores compare with the published ones; the actual average of the data is 57.82 kcal/mol in v1 (Table 1 of the paper prints 414.73 for the MB16-43 average where the data give 468.39) and 57.40 in v2; scale="data" recomputes it from the loaded sets.

Notes

  • In v2 the species names of the WATER27 reaction file do not match the folder names (H1O for H2O, H2Op for H3Op, OHmH1O for OHmH2O); the builder maps them back, and every reaction of both versions resolves to a geometry.

  • The reaction files carry two trailing columns (an energy offset and an error multiplier of the maintainers’ tool); they are 0 and 1 throughout and are checked, not applied.

  • Charged (up to 2 e) and open-shell species (up to three unpaired electrons), 60 elements up to Bi and systems of up to 81 atoms occur; the elements, max_abs_charge and closed_shell filters restrict the reactions to what a model can evaluate.

Module Attributes

CATEGORIES

the 55 sets by category, in the order of Table 1 of the paper

SUBSETS

all 55 set names

PAPER_SCALE

the paper's WTMAD-2 normalisation constant (kcal/mol)

Functions

parse_reactions(text)

Reactions of one .res file: (species names, coefficients, reference in kcal/mol).

reaction_energies(reactions, energies[, units])

Reaction energies (kcal/mol) from per-species energies.

subset_statistics(reactions, predicted)

Per-set error statistics of predicted reaction energies.

wtmad2(reactions, predicted[, scale])

WTMAD-2 of predicted reaction energies (eq.

Classes

GMTKN55Builder()

Builder for the GMTKN55 database (see the module docstring).