-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into download-model
- Loading branch information
Showing
53 changed files
with
1,076 additions
and
725 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,38 @@ | ||
Dataset Information | ||
=================== | ||
|
||
When working with ``metatrain``, you will most likely need to interact with some core | ||
classes which are responsible for storing some information about datasets. All these | ||
classes belong to the ``metatrain.utils.data`` module which can be found in the | ||
:ref:`data` section of the developer documentation. | ||
|
||
These classes are: | ||
|
||
- :py:class:`metatrain.utils.data.DatasetInfo`: This class is responsible for storing | ||
information about a dataset. It contains the length unit used in the dataset, the | ||
atomic types present, as well as information about the dataset's targets as a | ||
``Dict[str, TargetInfo]`` object. The keys of this dictionary are the names of the | ||
targets in the datasets (e.g., ``energy``, ``mtt::dipole``, etc.). | ||
|
||
- :py:class:`metatrain.utils.data.TargetInfo`: This class is responsible for storing | ||
information about a target in a dataset. It contains the target's physical quantity, | ||
the unit in which the target is expressed, and the ``layout`` of the target. The | ||
``layout`` is ``TensorMap`` object with zero samples which is used to exemplify | ||
the metadata of each target. | ||
|
||
At the moment, only three types of layouts are supported: | ||
|
||
- scalar: This type of layout is used when the target is a scalar quantity. The | ||
``layout`` ``TensorMap`` object corresponding to a scalar must have one | ||
``TensorBlock`` and no ``components``. | ||
- Cartesian tensor: This type of layout is used when the target is a Cartesian tensor. | ||
The ``layout`` ``TensorMap`` object corresponding to a Cartesian tensor must have | ||
one ``TensorBlock`` and as many ``components`` as the tensor's rank. These | ||
components are named ``xyz`` for a tensor of rank 1 and ``xyz_1``, ``xyz_2``, and | ||
so on for higher ranks. | ||
- Spherical tensor: This type of layout is used when the target is a spherical tensor. | ||
The ``layout`` ``TensorMap`` object corresponding to a spherical tensor can have | ||
multiple blocks corresponding to different irreps (irreducible representations) of | ||
the target. The ``keys`` of the ``TensorMap`` object must have the ``o3_lambda`` | ||
and ``o3_sigma`` names, and each ``TensorBlock`` must have a single component named | ||
``o3_mu``. |
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 |
---|---|---|
|
@@ -12,5 +12,6 @@ module. | |
getting-started | ||
architecture-life-cycle | ||
new-architecture | ||
dataset-information | ||
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,3 +1,5 @@ | ||
.. _data: | ||
|
||
Data | ||
==== | ||
|
||
|
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
55 changes: 28 additions & 27 deletions
55
src/metatrain/experimental/alchemical_model/default-hypers.yaml
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,29 +1,30 @@ | ||
name: experimental.alchemical_model | ||
architecture: | ||
name: experimental.alchemical_model | ||
|
||
model: | ||
soap: | ||
num_pseudo_species: 4 | ||
cutoff: 5.0 | ||
basis_cutoff_power_spectrum: 400 | ||
radial_basis_type: "physical" | ||
basis_scale: 3.0 | ||
trainable_basis: true | ||
normalize: true | ||
contract_center_species: true | ||
bpnn: | ||
hidden_sizes: [32, 32] | ||
output_size: 1 | ||
zbl: false | ||
model: | ||
soap: | ||
num_pseudo_species: 4 | ||
cutoff: 5.0 | ||
basis_cutoff_power_spectrum: 400 | ||
radial_basis_type: "physical" | ||
basis_scale: 3.0 | ||
trainable_basis: true | ||
normalize: true | ||
contract_center_species: true | ||
bpnn: | ||
hidden_sizes: [32, 32] | ||
output_size: 1 | ||
zbl: false | ||
|
||
training: | ||
batch_size: 8 | ||
num_epochs: 100 | ||
learning_rate: 0.001 | ||
early_stopping_patience: 200 | ||
scheduler_patience: 100 | ||
scheduler_factor: 0.8 | ||
log_interval: 5 | ||
checkpoint_interval: 25 | ||
per_structure_targets: [] | ||
loss_weights: {} | ||
log_mae: False | ||
training: | ||
batch_size: 8 | ||
num_epochs: 100 | ||
learning_rate: 0.001 | ||
early_stopping_patience: 200 | ||
scheduler_patience: 100 | ||
scheduler_factor: 0.8 | ||
log_interval: 5 | ||
checkpoint_interval: 25 | ||
per_structure_targets: [] | ||
loss_weights: {} | ||
log_mae: False |
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
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.