Linear optimizers#
Linear optimizers are offered to fit parts of the MTP parameters deterministically.
- class motep.optimizers.lls.LLSOptimizerBase(loss: LossFunctionBase, *, minimized: list[str] | None = None, **kwargs: dict[str, Any])#
Bases:
ParallelOptimizerBaseAbstract base class for linear optimizers.
- minimized#
Properties whose errors are minimized by optimizing
radial_coeffs. The elements must be some ofenergy,forces, andstress.- Type:
list[str]
- class motep.optimizers.lls.LLSOptimizer(loss: LossFunctionBase, *, minimized: list[str] | None = None, **kwargs: dict[str, Any])#
Bases:
LLSOptimizerBaseOptimizer based on linear least squares (LLS).
The elements of the
optimizedattribute must be:species_coeffsmoment_coeffs
radial_coeffscannot be optimized with this optimizer.
- class motep.optimizers.level2mtp.Level2MTPOptimizer(loss: LossFunctionBase, *, minimized: list[str] | None = None, **kwargs: dict[str, Any])#
Bases:
LLSOptimizerBaseOptimizer for Level 2 MTP.
The elements of the
optimizedattribute must be:species_coeffsradial_coeffs
moment_coeffscannot be optimized with this optimizer.