Skip to main content

A generator of polynomial machine learning potentials

pypolymlp is a Python code designed for the development of polynomial machine learning potentials (MLPs) based on datasets generated from density functional theory (DFT) calculations. The code provides functionalities for fitting polynomial models to energy, force, and stress data, enabling the construction of accurate and computationally efficient interatomic potentials. In addition to potential development, pypolymlp allows users to compute various physical properties and perform atomistic simulations using the trained MLPs.

Polynomial machine learning potentials

A polynomial MLP represents the potential energy as a polynomial function of linearly independent polynomial invariants of the O(3) group. Developed polynomial MLPs are available in Polynomial Machine Learning Potential Repository.

Citation of pypolymlp

“Tutorial: Systematic development of polynomial machine learning potentials for elemental and alloy systems”, A. Seko, J. Appl. Phys. 133, 011101 (2023)

@article{pypolymlp,
    author = {Seko, Atsuto},
    title = "{"Tutorial: Systematic development of polynomial machine learning potentials for elemental and alloy systems"}",
    journal = {J. Appl. Phys.},
    volume = {133},
    number = {1},
    pages = {011101},
    year = {2023},
    month = {01},
}

Required libraries and python modules

  • python >= 3.10
  • numpy != 2.0.*
  • scipy
  • pyyaml
  • eigen3
  • pybind11
  • openmp (recommended)

[Optional]

  • phonopy, phono3py
  • spglib
  • symfc
  • sparse_dot_mkl
  • ase
  • joblib
  • matplotlib, seaborn

How to install pypolymlp

  • Install from conda-forge (Recommended)
Version Last Update Downloads Platform License
badge badge badge badge badge
conda create -n pypolymlp-env
conda activate pypolymlp-env
conda install -c conda-forge pypolymlp
  • Install from PyPI
conda create -n pypolymlp-env
conda activate pypolymlp-env
conda install -c conda-forge numpy scipy pybind11 eigen cmake cxx-compiler
pip install pypolymlp

Building C++ codes in pypolymlp may require a significant amount of time.

  • Install from GitHub
git clone https://github.com/sekocha/pypolymlp.git
cd pypolymlp
conda create -n pypolymlp-env
conda activate pypolymlp-env
conda install -c conda-forge numpy scipy pybind11 eigen cmake cxx-compiler
pip install . -vvv

Building C++ codes in pypolymlp may require a significant amount of time.

Using pypolymlp for Polynomial MLP Development

To develop polynomial MLPs from datasets obtained from DFT calculations, both the command-line interface and the Python API are available. Several procedures for generating structures used in DFT calculations are also supported.

Using pypolymlp for Polynomial MLP Calculations

In version 0.8.0 and earlier, polymlp files are generated in plain text format as polymlp.lammps. Many polynomial MLPs distributed in the Polynomial MLP Repository are also provided in this plain text format. Starting from version 0.9.0, polymlp files are generated in YAML format as polymlp.yaml. Both formats are supported by the command-line interface and the Python API.

The following calculations can be performed using pypolymlp with either polymlp.yaml or polymlp.lammps files.

Theoretical Background

Metadata

Release files for pypolymlp 0.22.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pypolymlp 0.22.0
File Size Uploaded Provenance Actions
pypolymlp-0.22.0.tar.gz 77.0 MB Without provenance Details for pypolymlp-0.22.0.tar.gz

Release files / pypolymlp-0.22.0.tar.gz

Download URL pypolymlp-0.22.0.tar.gz
Size 77.0 MB
Tags Source
SHA-256 checksum
How to use checksums
4b87cc92d183cf430846c51e8d606d55096cdfa73b6b5df0340d19f57a3a9ebd
BLAKE2b-256 checksum
How to use checksums
523c5220c62313c3c19ed1431f92dcd4e178de15a0000995b519142ce7d7f09b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Security for pypolymlp 0.22.0

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.

Release history Release notifications | RSS feed

This release

0.22.0 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page