-
Notifications
You must be signed in to change notification settings - Fork 143
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
174 additions
and
162 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,17 @@ | ||
nequip.train.callbacks | ||
###################### | ||
|
||
.. autoclass:: nequip.train.callbacks.NeMoExponentialMovingAverage | ||
:members: | ||
|
||
.. autoclass:: nequip.train.callbacks.SoftAdapt | ||
:members: | ||
|
||
.. autoclass:: nequip.train.callbacks.LossCoefficientScheduler | ||
:members: | ||
|
||
.. autoclass:: nequip.train.callbacks.LossCoefficientMonitor | ||
:members: | ||
|
||
.. autoclass:: nequip.train.callbacks.TestTimeXYZFileWriter | ||
:members: |
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,72 +1,12 @@ | ||
nequip.data (Fields, Modifiers, and Statistics) | ||
=============================================== | ||
|
||
Data Fields | ||
########### | ||
|
||
The NequIP infrastructure provides some ready-to-use data fields, such as ``total_energy``, ``forces``, ``stress``, etc. These are the names that should be referred to when using methods and classes in the NequIP package, such as the fields given to ``nequip.train.MetricsManager``. The data fields are broadly categorized (in a mutually exclusive manner) as graph (per-frame), node (per-atom), or edge fields (per-"bond"). | ||
|
||
.. autoclass:: nequip.data._GRAPH_FIELDS | ||
.. autoclass:: nequip.data._NODE_FIELDS | ||
.. autoclass:: nequip.data._EDGE_FIELDS | ||
|
||
There are additional categories used for the internal data processing in the NequIP infrastructure. | ||
|
||
.. autoclass:: nequip.data._LONG_FIELDS | ||
|
||
.. autoclass:: nequip.data._CARTESIAN_TENSOR_FIELDS | ||
|
||
Custom fields must be registered with the following field registration methods to be compatible with the internal logic of NequIP's data processing infrastructure. | ||
|
||
.. autofunction:: nequip.data.register_fields | ||
|
||
.. autofunction:: nequip.data.deregister_fields | ||
|
||
|
||
|
||
Data Modifiers | ||
############## | ||
|
||
One can use modifiers to convert raw quantities from an ``AtomicDataDict`` into a form that is desired in the ``MetricsManager`` and ``DataStatisticsManager``. For example, | ||
|
||
- to extract a ``total_energy`` and make it a per-atom ``total_energy`` (``nequip.data.PerAtomModifier``), | ||
- to extract and convert position and neighborlist information into edge lengths (``nequip.data.EdgeLengths``), or | ||
- to extract and convert neighborlist information into the number of neighbors around each atom (``nequip.data.NumNeighbors``). | ||
|
||
|
||
.. autoclass:: nequip.data.PerAtomModifier | ||
:members: | ||
|
||
.. autoclass:: nequip.data.EdgeLengths | ||
:members: | ||
|
||
.. autoclass:: nequip.data.NumNeighbors | ||
:members: | ||
|
||
|
||
Dataset Statistics | ||
################## | ||
|
||
.. autoclass:: nequip.data.DataStatisticsManager | ||
:members: | ||
|
||
.. autoclass:: nequip.data.Mean | ||
:members: | ||
|
||
.. autoclass:: nequip.data.MeanAbsolute | ||
:members: | ||
|
||
.. autoclass:: nequip.data.RootMeanSquare | ||
:members: | ||
|
||
.. autoclass:: nequip.data.StandardDeviation | ||
:members: | ||
|
||
.. autoclass:: nequip.data.Min | ||
:members: | ||
|
||
.. autoclass:: nequip.data.Max | ||
:members: | ||
|
||
.. autoclass:: nequip.data.Count | ||
:members: | ||
nequip.data | ||
=========== | ||
|
||
.. toctree:: | ||
:maxdepth: 1 | ||
|
||
data_fields | ||
datamodule | ||
dataset | ||
data_transforms | ||
data_modifiers | ||
data_stats |
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 @@ | ||
Data Fields | ||
########### | ||
|
||
The NequIP infrastructure provides some ready-to-use data fields, such as ``total_energy``, ``forces``, ``stress``, etc. These are the names that should be referred to when using methods and classes in the NequIP package, such as the fields given to ``nequip.data.DataStatisticsManager`` or ``nequip.train.MetricsManager``. The data fields are broadly categorized (in a mutually exclusive manner) as graph (per-frame), node (per-atom), or edge fields (per-"bond"). | ||
|
||
.. autodata:: nequip.data._GRAPH_FIELDS | ||
.. autodata:: nequip.data._NODE_FIELDS | ||
.. autodata:: nequip.data._EDGE_FIELDS | ||
|
||
There are additional categories used for the internal data processing in the NequIP infrastructure. | ||
|
||
.. autodata:: nequip.data._LONG_FIELDS | ||
|
||
.. autodata:: nequip.data._CARTESIAN_TENSOR_FIELDS | ||
|
||
Custom fields must be registered with the following field registration methods to be compatible with the internal logic of NequIP's data processing infrastructure. | ||
|
||
.. autofunction:: nequip.data.register_fields | ||
|
||
.. autofunction:: nequip.data.deregister_fields |
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,18 @@ | ||
Data Modifiers | ||
############## | ||
|
||
One can use modifiers to convert raw quantities from an ``AtomicDataDict`` into a form that is desired in the ``MetricsManager`` and ``DataStatisticsManager``. For example, | ||
|
||
- to extract a ``total_energy`` and make it a per-atom ``total_energy`` (``nequip.data.PerAtomModifier``), | ||
- to extract and convert position and neighborlist information into edge lengths (``nequip.data.EdgeLengths``), or | ||
- to extract and convert neighborlist information into the number of neighbors around each atom (``nequip.data.NumNeighbors``). | ||
|
||
|
||
.. autoclass:: nequip.data.PerAtomModifier | ||
:members: | ||
|
||
.. autoclass:: nequip.data.EdgeLengths | ||
:members: | ||
|
||
.. autoclass:: nequip.data.NumNeighbors | ||
:members: |
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,26 @@ | ||
Dataset Statistics | ||
################## | ||
|
||
.. autoclass:: nequip.data.DataStatisticsManager | ||
:members: | ||
|
||
.. autoclass:: nequip.data.Mean | ||
:members: | ||
|
||
.. autoclass:: nequip.data.MeanAbsolute | ||
:members: | ||
|
||
.. autoclass:: nequip.data.RootMeanSquare | ||
:members: | ||
|
||
.. autoclass:: nequip.data.StandardDeviation | ||
:members: | ||
|
||
.. autoclass:: nequip.data.Min | ||
:members: | ||
|
||
.. autoclass:: nequip.data.Max | ||
:members: | ||
|
||
.. autoclass:: nequip.data.Count | ||
:members: |
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,13 @@ | ||
nequip.data.transforms | ||
###################### | ||
|
||
Data transforms convert the raw data from the ``Dataset`` to include information necessary for the model to make predictions and perform training. For example, datasets do not usually come with neighborlists, so the ``NeighborListTransform`` is required to convert raw data that only contains positions and energy (and force) labels to additionally include a neighborlist necessary for the model to make predictions. | ||
|
||
.. autoclass:: nequip.data.transforms.ChemicalSpeciesToAtomTypeMapper | ||
:members: | ||
|
||
.. autoclass:: nequip.data.transforms.NeighborListTransform | ||
:members: | ||
|
||
.. autoclass:: nequip.data.transforms.VirialToStressTransform | ||
:members: |
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,19 @@ | ||
nequip.data.dataset | ||
################### | ||
|
||
.. autoclass:: nequip.data.dataset.AtomicDataset | ||
:members: | ||
|
||
.. autoclass:: nequip.data.dataset.ASEDataset | ||
:members: | ||
|
||
.. autoclass:: nequip.data.dataset.HDF5Dataset | ||
:members: | ||
|
||
.. autoclass:: nequip.data.dataset.EMTTestDataset | ||
:members: | ||
|
||
.. autoclass:: nequip.data.dataset.SubsetByRandomSlice | ||
:members: | ||
|
||
.. autofunction:: nequip.data.dataset.RandomSplitAndIndexDataset |
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,5 @@ | ||
NequIPLightningModule | ||
##################### | ||
|
||
.. autoclass:: nequip.train.NequIPLightningModule | ||
:members: |
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,18 @@ | ||
MetricsManager | ||
############## | ||
|
||
.. autoclass:: nequip.train.MetricsManager | ||
:members: | ||
|
||
|
||
Error Metrics | ||
############# | ||
|
||
.. autoclass:: nequip.train.MeanSquaredError | ||
:members: | ||
|
||
.. autoclass:: nequip.train.RootMeanSquaredError | ||
:members: | ||
|
||
.. autoclass:: nequip.train.MeanAbsoluteError | ||
:members: |
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 |
---|---|---|
|
@@ -4,5 +4,4 @@ Python API | |
.. toctree:: | ||
|
||
data | ||
datamodule | ||
train |
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,46 +1,9 @@ | ||
nequip.train | ||
============ | ||
|
||
NequIPLightningModule | ||
##################### | ||
.. toctree:: | ||
:maxdepth: 1 | ||
|
||
.. autoclass:: nequip.train.NequIPLightningModule | ||
:members: | ||
|
||
|
||
MetricsManager | ||
############## | ||
|
||
.. autoclass:: nequip.train.MetricsManager | ||
:members: | ||
|
||
|
||
Metrics | ||
####### | ||
|
||
.. autoclass:: nequip.train.MeanSquaredError | ||
:members: | ||
|
||
.. autoclass:: nequip.train.RootMeanSquaredError | ||
:members: | ||
|
||
.. autoclass:: nequip.train.MeanAbsoluteError | ||
:members: | ||
|
||
Callbacks | ||
######### | ||
|
||
.. autoclass:: nequip.train.callbacks.NeMoExponentialMovingAverage | ||
:members: | ||
|
||
.. autoclass:: nequip.train.callbacks.SoftAdapt | ||
:members: | ||
|
||
.. autoclass:: nequip.train.callbacks.LossCoefficientScheduler | ||
:members: | ||
|
||
.. autoclass:: nequip.train.callbacks.LossCoefficientMonitor | ||
:members: | ||
|
||
.. autoclass:: nequip.train.callbacks.TestTimeXYZFileWriter | ||
:members: | ||
lightning_module | ||
metrics | ||
callbacks |
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
Oops, something went wrong.