machine_learning_fit#
- autoplex.fitting.common.jobs.machine_learning_fit(database_dir, species_list, run_fits_on_different_cluster=False, isolated_atom_energies=None, num_processes_fit=32, auto_delta=True, glue_xml=False, glue_file_path='glue.xml', gpu_identifier_indices=None, mlip_type=None, ref_energy_name='REF_energy', ref_force_name='REF_forces', ref_virial_name='REF_virial', device='cuda', database_dict=None, hyperpara_opt=False, hyperparameters=MLIP_HYPERS, **fit_kwargs)[source]#
Job for fitting potential(s).
- Parameters:
database_dir (Str | Path) – Path to the directory containing the database.
species_list (list) – List of element names (strings) involved in the training dataset
run_fits_on_different_cluster (bool) – Whether to run fitting on different clusters.
isolated_atom_energies (dict) – Dictionary of isolated atoms energies.
num_processes_fit (int) – Number of processes for fitting.
auto_delta (bool) – Automatically determine delta for 2b, 3b and soap terms.
glue_xml (bool) – Use the glue.xml core potential instead of fitting 2b terms.
glue_file_path (str) – Name of the glue.xml file path.
gpu_identifier_indices (list[int]) – List of GPU indices to be used for fitting. Only used for NEP fitting.
mlip_type (str) – Choose one specific MLIP type to be fitted: ‘GAP’ | ‘J-ACE’ | ‘NEQUIP’ | ‘NEP’ | ‘M3GNET’ | ‘MACE’
ref_energy_name (str) – Reference energy name.
ref_force_name (str) – Reference force name.
ref_virial_name (str) – Reference virial name.
device (str) – Device to be used for model fitting, either “cpu” or “cuda”.
database_dict (dict) – Dict including all training and test databases.
hyperpara_opt (bool) – Perform hyperparameter optimization using XPOT (XPOT: https://pubs.aip.org/aip/jcp/article/159/2/024803/2901815)
hyperparameters (MLIP_HYPERS) – Hyperparameters for MLIP fitting.
run_fits_on_different_cluster – Indicates if fits are to be run on a different cluster. If True, the fitting data (train.extxyz, test.extxyz) is stored in the database.
fit_kwargs (dict) – Additional keyword arguments for MLIP fitting.