Skip to content

ace-jax 0.7.1

Choose a tag to compare

@jameskermode jameskermode released this 20 Nov 08:17
· 4 commits to main since this release
c34d7b3

Highlights. Two corrections to Hamiltonian models. The features of the atoms near a bond are now
smooth at the bond midpoint, which makes the blocks of a perfect crystal obey its symmetry and decreases
the errors. A prior that --prior evidence, loo or press selects can no longer be weaker than no prior.

Upgrading from 0.7.0. A Hamiltonian model file from 0.7.0 loads and gives the same predictions as
before. Fit the model again to get the corrections. Potentials are not affected.

Fixed

  • Hamiltonian models: the features of the atoms near a bond are smooth at the bond midpoint. These
    features use spherical harmonics about the midpoint of the bond, and a harmonic with l > 0 has no value
    at the origin. Thus the features changed abruptly when an atom was near the midpoint, and bonds of a
    perfect crystal that are equivalent by symmetry got different blocks (up to 2.5 meV for bulk gold) when
    an atom was exactly at the midpoint. The features now use rho = sqrt(x^2 + a^2) for an atom at x
    from the midpoint: the radial variable is rho - a and the harmonics are regular solid harmonics of
    x / rho. The new setting is BondBasis.env_core (a, 1 Å by default). This also decreases the
    errors: for bulk gold with the default basis and 4 training structures, the band error decreases from
    3.0 meV to 2.1 meV. A model file from 0.7.0 gives the same predictions as before; fit the model again
    to get the correction.
  • --prior evidence, loo and press cannot give a weaker prior than --prior none. For a pair of
    species with few bonds in the training set, the fit can go through the data exactly, and the prior
    that the evidence selected was then many orders of magnitude weaker than the ridge of a fit with no
    prior. Coefficients of 1e13 were the result (Ti-Ti blocks of a Ti-doped half-Heusler), with no message.
    The fit now adds the ridge to the selected prior.
  • A fit of a Hamiltonian model on a CPU releases compiled programs also while it assembles the rows of
    large structures (see 0.7.0, "Hamiltonian models of several elements on a CPU").

Added

  • ace_jax.eval.harmonics.regular_solid_harmonics gives the solid harmonics as polynomials, with exact
    values and derivatives at the origin.