Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nicer Transform API #5

Merged
merged 5 commits into from
Mar 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ pip install graph-pes

```python
from ase.io import read
from graph_pes.data import convert_to_atomic_graphs
from graph_pes.data import to_atomic_graphs
from graph_pes.models.pairwise import LennardJones
from graph_pes.training import train_model

Expand All @@ -30,7 +30,7 @@ structures = read("structures.xyz", index=":10")
assert "energy" in structures[0].info

# 2. convert to graphs (e.g. using a radius cutoff)
graphs = convert_to_atomic_graphs(structures, cutoff=5.0)
graphs = to_atomic_graphs(structures, cutoff=5.0)

# 3. define the model
model = LennardJones()
Expand Down
4 changes: 4 additions & 0 deletions docs/source/_static/custom.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/* align text center in each cell */
.table-wrapper td {
text-align: center;
}
810 changes: 810 additions & 0 deletions docs/source/_static/lj-parity-prefit.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading