Symmetric Gradient Domain Machine Learning (sGDML)
For more details visit: sgdml.org
Documentation can be found here: docs.sgdml.org
Requirements:
- Python 3.7+
- PyTorch (>=1.8)
- NumPy (>=1.19)
- SciPy (>=1.1)
Optional:
- ASE (>=3.16.2) (to run atomistic simulations)
Getting started
Stable release
Most systems come with the default package manager for Python pip already preinstalled. Install sgdml by simply calling:
$ pip install sgdml
The sgdml command-line interface and the corresponding Python API can now be used from anywhere on the system.
Development version
(1) Clone the repository
$ git clone https://github.com/stefanch/sGDML.git
$ cd sGDML
...or update your existing local copy with
$ git pull origin master
(2) Install
$ pip install -e .
Using the flag --user, you can tell pip to install the package to the current users's home directory, instead of system-wide. This option might require you to update your system's PATH variable accordingly.
Optional dependencies
Some functionality of this package relies on third-party libraries that are not installed by default. These optional dependencies (or "package extras") are specified during installation using the "square bracket syntax":
$ pip install sgdml[<optional1>]
Atomic Simulation Environment (ASE)
If you are interested in interfacing with ASE to perform atomistic simulations (see here for examples), use the ase keyword:
$ pip install sgdml[ase]
Reconstruct your first force field
Download one of the example datasets:
$ sgdml-get dataset ethanol_dft
Train a force field model:
$ sgdml all ethanol_dft.npz 200 1000 5000
Query a force field
import numpy as np
from sgdml.predict import GDMLPredict
from sgdml.utils import io
r,_ = io.read_xyz('geometries/ethanol.xyz') # 9 atoms
print(r.shape) # (1,27)
model = np.load('models/ethanol.npz')
gdml = GDMLPredict(model)
e,f = gdml.predict(r)
print(e.shape) # (1,)
print(f.shape) # (1,27)
Authors
- Stefan Chmiela
- Jan Hermann
We appreciate and welcome contributions and would like to thank the following people for participating in this project:
- Huziel Sauceda
- Igor Poltavsky
- Luis Gálvez
- Danny Panknin
- Grégory Fonseca
- Anton Charkin-Gorbulin
References
-
[1] Chmiela, S., Tkatchenko, A., Sauceda, H. E., Poltavsky, I., Schütt, K. T., Müller, K.-R., Machine Learning of Accurate Energy-conserving Molecular Force Fields. Science Advances, 3(5), e1603015 (2017)
10.1126/sciadv.1603015 -
[2] Chmiela, S., Sauceda, H. E., Müller, K.-R., Tkatchenko, A., Towards Exact Molecular Dynamics Simulations with Machine-Learned Force Fields. Nature Communications, 9(1), 3887 (2018)
10.1038/s41467-018-06169-2 -
[3] Chmiela, S., Sauceda, H. E., Poltavsky, I., Müller, K.-R., Tkatchenko, A., sGDML: Constructing Accurate and Data Efficient Molecular Force Fields Using Machine Learning. Computer Physics Communications, 240, 38-45 (2019) 10.1016/j.cpc.2019.02.007
-
[4] Chmiela, S., Vassilev-Galindo, V., Unke, O. T., Kabylda, A., Sauceda, H. E., Tkatchenko, A., Müller, K.-R., Accurate Global Machine Learning Force Fields for Molecules With Hundreds of Atoms. Science Advances, 9(2), e1603015 (2023) 10.1126/sciadv.adf0873
Metadata
Release files for sgdml 1.0.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 |
|---|---|---|---|---|
| sgdml-1.0.3.tar.gz | 92.5 kB | Without provenance | Details for sgdml-1.0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| sgdml-1.0.3-py3-none-any.whl | Python 3 | none | any | Details for sgdml-1.0.3-py3-none-any.whl |
Total release size: 203.1 kB
Release files / sgdml-1.0.3.tar.gz
| Download URL | sgdml-1.0.3.tar.gz |
|---|---|
| Size | 92.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d1cdcb50a1f3f4f128c390b7261808d231220d75bcbd3738f97408d25be50da3
|
|
BLAKE2b-256 checksum How to use checksums |
8984be951a1afbcebae5ea41162a7669d2d1a0ff2ab3921b9ef0f8bbc706a847
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.6
|
Release files / sgdml-1.0.3-py3-none-any.whl
| Download URL | sgdml-1.0.3-py3-none-any.whl |
|---|---|
| Size | 110.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6675f5abee6fad733f6425b143cd19f48f5ccb5de2d1962ad1f0a283dc8ad858
|
|
BLAKE2b-256 checksum How to use checksums |
593ce5b76ba732e00cfa00fd027043d19530fe4315f6735f73a144acd7f3e9fa
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.6
|
Security for sgdml 1.0.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.