xnn.common.data.hub.oc20#

Builder for the OC20 S2EF data (structure to energy and forces), the 200K training split.

The Open Catalyst 2020 dataset (Chanussot et al., ACS Catal. 11, 6059, 2021; CC BY 4.0) holds adsorbates on catalyst slabs (metals, intermetallics and their oxides and nitrides) from RPBE relaxations. The S2EF 200K split is the smallest official training set: 200,000 frames, each from a different adsorbate-slab system, about 70 atoms each, periodic in the slab plane with vacuum along the third lattice vector.

Notes

  • energy="adsorption" (default) stores the S2EF target, the DFT energy minus the reference energy of the bare slab and the gas-phase adsorbate references; "total" stores the DFT energy itself.

  • Atoms the relaxation kept fixed (the slab’s bottom layers) get an atom_force_weight of zero, so a force loss counts the free atoms only, as in the OC20 training protocol. info keeps the tags (0 subsurface, 1 surface, 2 adsorbate), the system id and the reference energy.

  • There is no official validation subset of the 200K split; val is a random subset of it (the official validation splits are separate archives).

Functions

parse_extxyz(text)

Parse the frames of one OC20 S2EF .extxyz file.

parse_txt(text)

Parse the system_id,frame_number,reference_energy lines of a .txt file.

Classes

OC20Builder()

Builder for the OC20 S2EF 200K split (adsorbates on catalyst slabs, energies and forces).