Skip to content
Draft
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
1 change: 1 addition & 0 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ sphinxcontrib-bibtex
sphinx-gallery
sphinx-toggleprompt
setuptools # required for sphinxcontrib-bibtex together with Python 3.13
sphinx-needs
tomli
10 changes: 7 additions & 3 deletions docs/src/architectures/gap.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,13 @@
GAP
===

This is an implementation of the sparse Gaussian Approximation Potential
(GAP) :footcite:p:`bartok_representing_2013` using Smooth Overlap of Atomic Positions
(SOAP) :footcite:p:`bartok_gaussian_2010` implemented in `featomic <FEATOMIC_>`_.
.. concept:: GAP
:id: GAP
:tags: architecture, kernel_method

This is an implementation of the sparse Gaussian Approximation Potential (GAP) :footcite:p:`bartok_representing_2013`
using Smooth Overlap of Atomic Positions (SOAP) :footcite:p:`bartok_gaussian_2010` implemented in
`featomic <FEATOMIC_>`_.

.. _FEATOMIC: https://github.com/Luthaf/featomic

Expand Down
10 changes: 10 additions & 0 deletions docs/src/architectures/soap-bpnn.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,16 @@
SOAP-BPNN
=========

.. concept:: SOAP-BPNN
:id: SOAP_BPNN
:tags: architecture, neural_network

**Related Concepts (Backlinks):**

.. needtable::
:filter: "SOAP_BPNN" in links
:columns: id, title, type, tags

This is a Behler-Parrinello neural network :footcite:p:`behler_generalized_2007` with
using features based on the Smooth overlab of atomic positions (SOAP)
:footcite:p:`bartok_representing_2013`. The SOAP features are calculated wit `torch-spex
Expand Down
15 changes: 15 additions & 0 deletions docs/src/concepts/descriptors.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
.. _concepts-descriptors:

Descriptors
===========

This page defines core descriptor concepts used in metatrain.

.. concept:: SOAP Features
:id: SOAP_DESCRIPTOR
:tags: descriptor
:links: SOAP_BPNN, GAP

The Smooth Overlap of Atomic Positions (SOAP) is a descriptor that creates
a local representation of an atomic environment. It is widely used in
atomistic machine learning potentials.
15 changes: 15 additions & 0 deletions docs/src/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,23 @@ def setup(app):
"sphinxcontrib.bibtex",
"sphinx_toggleprompt",
"sphinx_gallery.gen_gallery",
"sphinx_needs",
]

needs_types = [
dict(
directive="concept",
title="Concept",
prefix="C_",
color="#BFD8D2",
style="node",
),
]

# This is the new line to add.
# It allows any string of uppercase letters, numbers, and underscores of any length.
needs_id_regex = r'^[A-Z0-9_]+'

# List of patterns, relative to source directory, that match files and
# directories to ignore when looking for source files.
# This pattern also affects html_static_path and html_extra_path.
Expand Down
8 changes: 4 additions & 4 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -177,10 +177,10 @@ extras = # these models are used in the documentation
commands =
python -m pip install --no-build-isolation sphericart torch-spex>=0.1,<0.2 wigners
# Run example and usage scripts.
bash -c "set -e && cd {toxinidir}/examples/basic_usage && bash usage.sh"
bash -c "set -e && cd {toxinidir}/examples/ase && bash train.sh"
bash -c "set -e && cd {toxinidir}/examples/llpr && bash train.sh"
bash -c "set -e && cd {toxinidir}/examples/zbl && bash train.sh"
# bash -c "set -e && cd {toxinidir}/examples/basic_usage && bash usage.sh"
# bash -c "set -e && cd {toxinidir}/examples/ase && bash train.sh"
# bash -c "set -e && cd {toxinidir}/examples/llpr && bash train.sh"
# bash -c "set -e && cd {toxinidir}/examples/zbl && bash train.sh"
sphinx-build \
{posargs:-E} \
--builder html \
Expand Down