SEAMM Training Structures Plug-in
A SEAMM plug-in for Training Structures
Free software: BSD-3-Clause
Documentation: https://molssi-seamm.github.io/training_structures_step/index.html
Code: https://github.com/molssi-seamm/training_structures_step
Features
The Training Structures step makes distorted structures of a molecule for training a machine-learned potential: energy-targeted normal-mode samples, relaxed torsion scans of the heavy rotors and bond stretches, each checked to keep the molecule’s bonds and to lie in a chosen energy window.
The points are configurations of a new system, one per molecule, named by kind (‘sample 3’, ‘scan 1 C2-C3 +45’, ‘stretch C-H -‘), for labelling by a later step.
Acknowledgements
This package was created with the molssi-seamm/cookiecutter-seamm-plugin tool, which is based on the excellent Cookiecutter.
Developed by the Molecular Sciences Software Institute (MolSSI), which receives funding from the National Science Foundation under award CHE-2136142.
History
- 2026.11.26.3 – Bugfix: no rotors onto linear groups
A single bond onto a linear centre (a nitrile’s or alkyne’s sp carbon, an isocyanide’s nitrogen, an allene’s central carbon, or atoms that are collinear in the structure) is no longer a rotor. Its torsion is undefined, and scanning it stopped the molecule with “FixInternals.adjust_positions did not converge” (ethyl cyanide, 2-cyclopentenecarbonitrile, 1-norbornylisocyanide).
A scan point whose torsion cannot be held is dropped and reported, rather than stopping the molecule.
The points refused while generating are stored on the minimum (“dropped points”, by kind and reason, with counts) and the export’s per-molecule record carries them as “dropped while generating”.
- 2026.11.26.2 – A replacement Hessian is checked too
The Hessian check’s gradients each start from the reference structure’s orbitals, with a tight SCF (seamm-exec 2026.11.26).
A refused Hessian’s finite-difference replacement, made the same way with every point checked for a state change, is itself checked; if it fails too the molecule is refused. Before, the replacement was used unchecked (methoxy in the E2b pilot, SEAMM job 6090).
How the finite differences were made, both checks and the zero modes are in the molecule’s record.
- 2026.11.26.1 – Record what the engine ran for the Hessian
Training Structures stores, with how the Hessian was made, the warm engine’s own record of the Hessian run (else its last energy run): the settings fingerprint, the program version and the input’s ‘!’ line(s). The engine runs in node-local scratch, so its input and output are not kept; this record, made from them, is what shows the Hessian’s level and settings afterwards. Export Training Set carries it in each molecule’s record.
- 2026.11.26 – Choose how the Hessian is made; the warm engine by default
A new parameter, “Energies and Hessian via:”, as the Thermochemistry step’s: the warm MDI engine (analytic where the program has it, and needed for the Hessian check), separate tasks (central finite differences of 6N gradients where the job runs its tasks), or automatic.
The default is the warm engine, as the Thermochemistry step’s CBH approach. On a queue that runs tasks, the old automatic choice made every Hessian 6N gradients as tasks, several times the cost of the molecule’s labels, and the Hessian check could not run.
The dialog hides the check’s settings for separate tasks, which are already finite differences.
- 2026.11.25.2 – A redraw pass for molecules that lost too many samples
Training Structures can name its system ‘for a redraw’ (‘<molecule> redraw’), for a second pass of samples from the first pass’s minimum, e.g. with a lower maximum target energy, no scans and no stretches.
Export Training Set merges a molecule’s redraw with its first pass: the redraw’s samples replace the first pass’s (marked ‘replaced by the redraw’), the scans and stretches are kept, and both passes must share the minimum’s energy and settings. The record says where the samples came from.
Export Training Set gives the molecules to redraw as a regular expression (‘redraw regexp’), for a Loop over those systems in the same flowchart.
- 2026.11.25.1 – Export Training Set: labelled points to extended-XYZ files
A new step, Export Training Set, for the points of Training Structures after an Energy step has labelled them: each point’s energy above its molecule’s minimum, a check that a molecule’s points share one settings fingerprint (no mixed levels), and filters for an energy window (10 kcal/mol) and, for open shells, a change of <S**2> (0.05). Dropped points are marked on their configurations, not deleted.
One extended-XYZ file per molecule (REF_energy, REF_forces, delta_energy and the point’s details, full-precision positions; keys that ASE reads as data, not as a calculator’s results), with a JSON record of how it was made: model chemistry, settings fingerprint, the calculation record, how the Hessian was made and checked, the random seed, and the points kept and dropped.
A coverage table of elements and bonded pairs (molecules, points, the bond lengths sampled) against minimum counts; molecules that lost too many samples are reported for a redraw, and points below a molecule’s minimum are reported.
Training Structures now stores its random seed on the minimum.
- 2026.11.25 – Initial release
Distorted structures of a molecule for training a machine-learned potential, from the Hessian of the Model Chemistry: energy-targeted normal-mode samples, relaxed torsion scans of up to a set number of heavy rotors at a cheap generator level, and two stretches of the median bond of each bonded element pair, or a stretch grid for a diatomic.
Every point must keep the molecule’s bonds and lie within a set energy of the minimum at the generator level; refused points are counted with the reasons.
The Hessian is checked against finite differences of the gradient for open-shell molecules (and a fraction of closed-shell ones) and replaced by a finite-difference Hessian if it fails.
The points are configurations of one new system, named by kind, with their generation details as properties.
Metadata
Release files for training-structures-step 2026.11.26.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| training_structures_step-2026.11.26.3.tar.gz | 349.3 kB | Without provenance | Details for training_structures_step-2026.11.26.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| training_structures_step-2026.11.26.3-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details for training_structures_step-2026.11.26.3-py2.py3-none-any.whl |
Total release size: 400.4 kB
Release files / training_structures_step-2026.11.26.3.tar.gz
| Download URL | training_structures_step-2026.11.26.3.tar.gz |
|---|---|
| Size | 349.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
784a08aba220225a5afd5d41d1b8bce07c5a11c163dbde22b87c457228b9d9bc
|
|
BLAKE2b-256 checksum How to use checksums |
49c93c0b8c04c6c9065d8e296f9c8c40ae548780b3f8fb5b734363c37ef00a34
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / training_structures_step-2026.11.26.3-py2.py3-none-any.whl
| Download URL | training_structures_step-2026.11.26.3-py2.py3-none-any.whl |
|---|---|
| Size | 51.0 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
ebe7649d4a3cf4c3d2d0fc72ebd432ae8776b16cf216fb342c589b0a15bcd01c
|
|
BLAKE2b-256 checksum How to use checksums |
a34a9983e0b1f40f48cfedfe66f35046aa5cc4346457be0b43e2703327d61ca4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Security for training-structures-step 2026.11.26.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.