Metadata-Version: 2.4
Name: training_structures_step
Version: 2026.11.25.2
Summary: A SEAMM plug-in for Training Structures
Home-page: https://github.com/molssi-seamm/training_structures_step
Author: Paul Saxe
Author-email: psaxe@molssi.org
License: BSD-3-Clause
Keywords: SEAMM,SEAMMplugin,flowchart
Platform: Linux
Platform: Mac OS-X
Platform: Unix
Platform: Windows
Classifier: Environment :: Plugins
Classifier: Development Status :: 2 - Pre-Alpha
Classifier: Intended Audience :: Science/Research
Classifier: Topic :: Scientific/Engineering :: Chemistry
Classifier: Topic :: Scientific/Engineering :: Physics
Classifier: License :: OSI Approved :: BSD License
Classifier: Natural Language :: English
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.12
Requires-Python: >=3.12
Description-Content-Type: text/x-rst
License-File: LICENSE
License-File: AUTHORS.rst
Requires-Dist: seamm
Requires-Dist: seamm-util
Requires-Dist: seamm-widgets
Requires-Dist: seamm-exec>=2026.11.25.1
Requires-Dist: normal-mode-sampling-step>=2026.11.25
Requires-Dist: molsystem
Requires-Dist: numpy
Requires-Dist: ase
Requires-Dist: rdkit
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: home-page
Dynamic: keywords
Dynamic: license
Dynamic: license-file
Dynamic: platform
Dynamic: requires-dist
Dynamic: requires-python
Dynamic: summary

=================================
SEAMM Training Structures Plug-in
=================================

.. image:: https://img.shields.io/github/issues-pr-raw/molssi-seamm/training_structures_step
   :target: https://github.com/molssi-seamm/training_structures_step/pulls
   :alt: GitHub pull requests

.. image:: https://github.com/molssi-seamm/training_structures_step/workflows/CI/badge.svg
   :target: https://github.com/molssi-seamm/training_structures_step/actions
   :alt: Build Status

.. image:: https://codecov.io/gh/molssi-seamm/training_structures_step/branch/master/graph/badge.svg
   :target: https://codecov.io/gh/molssi-seamm/training_structures_step
   :alt: Code Coverage

.. image:: https://github.com/molssi-seamm/training_structures_step/workflows/CodeQL/badge.svg
   :target: https://github.com/molssi-seamm/training_structures_step/security/code-scanning
   :alt: Code Quality

.. image:: https://github.com/molssi-seamm/training_structures_step/workflows/Release/badge.svg
   :target: https://molssi-seamm.github.io/training_structures_step/index.html
   :alt: Documentation Status

.. image:: https://img.shields.io/pypi/v/training_structures_step.svg
   :target: https://pypi.python.org/pypi/training_structures_step
   :alt: PyPi VERSION

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_.

.. _Cookiecutter: https://github.com/audreyr/cookiecutter
.. _`molssi-seamm/cookiecutter-seamm-plugin`: https://github.com/molssi-seamm/cookiecutter-seamm-plugin

Developed by the Molecular Sciences Software Institute (MolSSI_),
which receives funding from the `National Science Foundation`_ under
award CHE-2136142.

.. _MolSSI: https://molssi.org
.. _`National Science Foundation`: https://www.nsf.gov


=======
History
=======

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.
