deepmd.pt.model.task.property#
Attributes#
Classes#
Fitting the rotationally invariant properties of task_dim of the system. |
Module Contents#
- class deepmd.pt.model.task.property.PropertyFittingNet(ntypes: int, dim_descrpt: int, task_dim: int = 1, neuron: list[int] = [128, 128, 128], bias_atom_p: torch.Tensor | None = None, intensive: bool = False, bias_method: str = 'normal', resnet_dt: bool = True, numb_fparam: int = 0, numb_aparam: int = 0, activation_function: str = 'tanh', precision: str = DEFAULT_PRECISION, mixed_types: bool = True, seed: int | None = None, **kwargs)[source]#
Bases:
deepmd.pt.model.task.ener.InvarFittingFitting the rotationally invariant properties of task_dim of the system.
- Parameters:
- ntypes
int Element count.
- dim_descrpt
int Embedding width per atom.
- task_dim
int The dimension of outputs of fitting net.
- neuron
list[int] Number of neurons in each hidden layers of the fitting net.
- bias_atom_p
torch.Tensor,optional Average property per atom for each element.
- intensivebool,
optional Whether the fitting property is intensive.
- bias_method
str,optional The method of applying the bias to each atomic output, user can select ‘normal’ or ‘no_bias’. If ‘normal’ is used, the computed bias will be added to the atomic output. If ‘no_bias’ is used, no bias will be added to the atomic output.
- resnet_dtbool
Using time-step in the ResNet construction.
- numb_fparam
int Number of frame parameters.
- numb_aparam
int Number of atomic parameters.
- activation_function
str Activation function.
- precision
str Numerical precision.
- mixed_typesbool
If true, use a uniform fitting net for all atom types, otherwise use different fitting nets for different atom types.
- seed
int,optional Random seed.
- ntypes
- output_def() deepmd.dpmodel.FittingOutputDef[source]#
Returns the output def of the fitting net.
- classmethod deserialize(data: dict) PropertyFittingNet[source]#
Deserialize the fitting.
- Parameters:
- data
dict The serialized data
- data
- Returns:
BFThe deserialized fitting