Auxiliary outputs¶
These outputs, which are generally idenfified by the mtt::aux:: prefix,
represent additional information that the model may provide. They are not
conventional trainable outputs, in the sense that they do not correspond to
training targets. For example, such quantities might be the internal
representation of the model, uncertainty estimates, or non-trainable quantities.
The following auxiliary outputs are currently supported by one or more
architectures in metatrain:
mtt::aux::{target}_last_layer_features: The representation of the model at the last layer, before the final linear transformation to produce target
target.mtt::aux::{target}_uncertainty: An uncertainty estimate for target
target, as computed by the LLPR module.mtt::aux::{target}_ensemble: An ensemble prediction for target
target, as computed by the LLPR module.
mtt::aux::{target}_last_layer_features¶
This output contains the representation of the model at the last layer, before
the final linear transformation to produce target target. If the model
produces multiple targets, the corresponding representations might be different.
The last-layer features come in one of two forms:
invariant or non-symmetrized features are a single block, used for all the blocks of the target;
equivariant features have one block for each block of the target, with the same keys and components. The last layer maps each block of features to the block of the target with the same key, with the same weights for all the components.
Metadata |
Names |
Description |
|---|---|---|
keys |
|
if invariant or non-symmetrized, a single dimension named |
samples |
|
if a
|
components |
No components if invariant or non-symmetrized, the components of the target if equivariant |
Nothing if invariant or non-symmetrized, the components of the target if equivariant. |
properties |
|
the last-layer features have a single property dimension named
|
Last-layer features are supported by the following architectures:
SOAP-BPNN only provides them for scalar targets.
mtt::aux::{target}_uncertainty¶
This output contains an uncertainty estimate for target target, as computed
by the LLPR module. The metadata for this output is the same as for the
corresponding target: there is one uncertainty for each component and property of
the target.
When target is energy, this output is instead named
energy_uncertainty, creating the corresponding standard metatomic
output.
This output is only supported by the LLPR architecture.
mtt::aux::{target}_ensemble¶
This output contains an ensemble prediction for target target, as computed
by the LLPR module. The metadata for this output is the same as for the
corresponding target, except that the properties are named
["ensemble_member", ...], followed by the property names of the target, with
one entry for each ensemble member and property of the target.
When target is energy, this output is instead named
energy_ensemble, creating the corresponding standard metatomic
output, with a single "energy" property that holds the
index of each ensemble member.
This output is only supported by the LLPR architecture.