Atom type different from element #212
-
It looks to me like NequIP assumes a 1:1 correspondence between elements and atom types. I want to train a model where that isn't true. For example, I might have multiple atom types corresponding to the same element in different chemical contexts. Is there a way to do that? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hi @peastman , Actually we do not assume any such correspondence, and the entire NequIP type system is designed to make this possible. In general in Inside of the network itself, this is the only relevant data key; the data loading/creation code (either When setting up a YAML config, instead of providing type_names:
- H
- C1
- C2
- fancyatom will create a model with (For Type setup in LAMMPS works exactly like it would before; you just use the type names you defined in the YAML when defining the mapping from LAMMPS types to |
Beta Was this translation helpful? Give feedback.
Hi @peastman ,
Actually we do not assume any such correspondence, and the entire NequIP type system is designed to make this possible. In general in
nequip
atom type is just an arbitrary per-atom index ranging from 0 to n_types - 1 stored in theatom_types
field (AtomicDataDict.ATOM_TYPE_KEY
in Python).Inside of the network itself, this is the only relevant data key; the data loading/creation code (either
AtomicDataset
viaTypeMapper
in the Python code, orpair_nequip
/pair_allegro
in LAMMPS) is responsible for converting atomic numbers or LAMMPS type information into atom type indexes.When setting up a YAML config, instead of providing
chemical_symbols
orchemical_symbol_to_type
, you ca…