deepmd.utils.argcheck#
Attributes#
Classes#
Functions#
| |
| |
| Generate an extra check to deprecate an argument in sub fields. |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| Generate multi-task arguments. |
| Generate JSON schema. |
|
Module Contents#
- deepmd.utils.argcheck.doc_loc_frame = 'Defines a local frame at each atom, and the compute the descriptor as local coordinates under...[source]#
- deepmd.utils.argcheck.doc_se_e2_a = 'Used by the smooth edition of Deep Potential. The full relative coordinates are used to...[source]#
- deepmd.utils.argcheck.doc_se_e2_r = 'Used by the smooth edition of Deep Potential. Only the distance between atoms is used to...[source]#
- deepmd.utils.argcheck.doc_se_e3 = 'Used by the smooth edition of Deep Potential. The full relative coordinates are used to...[source]#
- deepmd.utils.argcheck.doc_se_a_tpe = 'Used by the smooth edition of Deep Potential. The full relative coordinates are used to...[source]#
- deepmd.utils.argcheck.doc_se_atten = 'Used by the smooth edition of Deep Potential. The full relative coordinates are used to...[source]#
- deepmd.utils.argcheck.doc_se_atten_v2 = 'Used by the smooth edition of Deep Potential. The full relative coordinates are used to...[source]#
- deepmd.utils.argcheck.doc_se_a_mask = 'Used by the smooth edition of Deep Potential. It can accept a variable number of atoms in a...[source]#
- deepmd.utils.argcheck.doc_hybrid = 'Concatenate of a list of descriptors as a new descriptor.'[source]#
- deepmd.utils.argcheck.doc_dos = 'Fit a density of states model. The total density of states / site-projected density of states...[source]#
- deepmd.utils.argcheck.doc_dipole = 'Fit an atomic dipole model. Global dipole labels or atomic dipole labels for all the selected...[source]#
- deepmd.utils.argcheck.doc_polar = 'Fit an atomic polarizability model. Global polarizazbility labels or atomic polarizability...[source]#
- deepmd.utils.argcheck.deprecate_argument_extra_check(key: str) Callable[[dict], bool][source]#
Generate an extra check to deprecate an argument in sub fields.
- Parameters:
- key
str The name of the deprecated argument.
- key
- class deepmd.utils.argcheck.ArgsPlugin[source]#
-
- register(name: str, alias: list[str] | None = None, doc: str = '') Callable[[Callable[[], dargs.Argument] | Callable[[], list[dargs.Argument]]], Callable[[], dargs.Argument] | Callable[[], list[dargs.Argument]]][source]#
Register a descriptor argument plugin.
- Parameters:
- Returns:
Examples
>>> some_plugin = ArgsPlugin() >>> @some_plugin.register("some_descrpt") def descrpt_some_descrpt_args(): return []
- deepmd.utils.argcheck.descrpt_variant_type_args(exclude_hybrid: bool = False) dargs.Variant[source]#
- deepmd.utils.argcheck.standard_model_args() dargs.Argument[source]#
- deepmd.utils.argcheck.pairwise_dprc() dargs.Argument[source]#
- deepmd.utils.argcheck.frozen_model_args() dargs.Argument[source]#
- deepmd.utils.argcheck.pairtab_model_args() dargs.Argument[source]#
- deepmd.utils.argcheck.linear_ener_model_args() dargs.Argument[source]#
- deepmd.utils.argcheck.learning_rate_args(fold_subdoc: bool = False) dargs.Argument[source]#
- deepmd.utils.argcheck.gen_doc(*, make_anchor=True, make_link=True, multi_task=False, **kwargs) str[source]#
- deepmd.utils.argcheck.gen_args(multi_task: bool = False) list[dargs.Argument][source]#
- deepmd.utils.argcheck.gen_args_multi_task() dargs.Argument[source]#
Generate multi-task arguments.