-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add API docs and allow bool in grad options
- Loading branch information
1 parent
3893055
commit d8d1e5c
Showing
15 changed files
with
190 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
eval_model | ||
########## | ||
|
||
.. automodule:: metatensor.models.cli.eval_model | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
export_model | ||
############ | ||
|
||
.. automodule:: metatensor.models.cli.export_model | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
formatter | ||
######### | ||
|
||
.. automodule:: metatensor.models.cli.formatter | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
CLI API | ||
======= | ||
|
||
This is the API for the command line interface ``cli`` functions of | ||
``metatensor-models``. | ||
|
||
.. toctree:: | ||
:maxdepth: 1 | ||
|
||
train_model | ||
eval_model | ||
export_model | ||
|
||
We provide a custom formatter class for the formatting the help message of the | ||
`argparse` package. | ||
|
||
.. toctree:: | ||
:maxdepth: 1 | ||
|
||
formatter |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
train_model | ||
########### | ||
|
||
.. automodule:: metatensor.models.cli.train_model | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,4 +10,5 @@ module. | |
:maxdepth: 1 | ||
|
||
adding-models | ||
cli/index | ||
utils/index |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,32 @@ | ||
Structure and Target data Readers | ||
================================= | ||
General Structure and Target data Readers | ||
========================================= | ||
|
||
The main entry point for reading structure and target information are the two reader | ||
functions | ||
|
||
.. automodule:: metatensor.models.utils.data.readers | ||
:members: | ||
.. autofunction:: metatensor.models.utils.data.read_structures | ||
.. autofunction:: metatensor.models.utils.data.read_targets | ||
|
||
Based on the provided filename they chose which child reader they use. For details on | ||
Target type specific readers | ||
---------------------------- | ||
|
||
:func:`metatensor.models.utils.data.read_targets` uses sub-functions to parse supported | ||
target properties like the `energy` or `forces`. Currently we support reading the | ||
following target properties via | ||
|
||
.. autofunction:: metatensor.models.utils.data.read_energy | ||
.. autofunction:: metatensor.models.utils.data.read_forces | ||
.. autofunction:: metatensor.models.utils.data.read_virial | ||
.. autofunction:: metatensor.models.utils.data.read_stress | ||
|
||
File type specific readers | ||
-------------------------- | ||
|
||
Based on the provided `file_format` they chose which sub-reader they use. For details on | ||
these refer to their documentation | ||
|
||
.. toctree:: | ||
:maxdepth: 1 | ||
|
||
structure | ||
target | ||
targets |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
Target data Readers | ||
################### | ||
|
||
Parsers for obtaining target informations from target files. All readers return a | ||
:py:class:`metatensor.torch.TensorBlock`. Currently we support the following target | ||
properties | ||
|
||
- :ref:`energy` | ||
- :ref:`forces` | ||
- :ref:`stress` | ||
- :ref:`virial` | ||
|
||
The mapping which reader is used for which file type is stored in a dictionary. | ||
|
||
.. _energy: | ||
|
||
Energy | ||
====== | ||
|
||
.. autodata:: metatensor.models.utils.data.readers.targets.ENERGY_READERS | ||
|
||
Implemented Readers | ||
------------------- | ||
|
||
.. autofunction:: metatensor.models.utils.data.readers.targets.read_energy_ase | ||
|
||
|
||
.. _forces: | ||
|
||
Forces | ||
====== | ||
|
||
.. autodata:: metatensor.models.utils.data.readers.targets.FORCES_READERS | ||
|
||
Implemented Readers | ||
------------------- | ||
|
||
.. autofunction:: metatensor.models.utils.data.readers.targets.read_forces_ase | ||
|
||
.. _stress: | ||
|
||
Stress | ||
====== | ||
|
||
.. autodata:: metatensor.models.utils.data.readers.targets.STRESS_READERS | ||
|
||
Implemented Readers | ||
------------------- | ||
|
||
.. autofunction:: metatensor.models.utils.data.readers.targets.read_stress_ase | ||
|
||
.. _virial: | ||
|
||
Virial | ||
====== | ||
|
||
.. autodata:: metatensor.models.utils.data.readers.targets.VIRIAL_READERS | ||
|
||
Implemented Readers | ||
------------------- | ||
|
||
.. autofunction:: metatensor.models.utils.data.readers.targets.read_virial_ase | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
forces: off | ||
stress: off | ||
virial: off |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,3 @@ read_from: ${...structures.read_from} | |
file_format: | ||
key: | ||
unit: | ||
forces: off | ||
stress: off | ||
virial: off |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters