autoplex.fitting.common.utils

autoplex.fitting.common.utils#

Utility functions for fitting jobs.

Functions

calculate_delta

Calculate the delta parameter and average number of triplets for gap-fitting.

check_convergence

Check the convergence of the fit.

compute_pairs_triplets

Calculate the number of pairwise and triplet within a cutoff distance for a given list of atoms.

convert_xyz_to_structure

Convert extxyz to pymatgen Structure format.

energy_remain

Plot the distribution of energy per atom on the output vs.

extract_gap_label

Extract GAP label.

flatten

Flatten an iterable fully, but excluding Atoms objects.

gap_fitting

GAP fit and validation job.

gap_hyperparameter_constructor

Construct a list of arguments needed to execute gap potential from the parameters' dict.

gcm3_to_Vm

Convert gcm3 to Vm.

get_atomic_numbers

Get atomic numbers.

get_list_of_vasp_calc_dirs

Return a list of vasp_calc_dirs from PhononDFTMLDataGenerationFlow output.

jace_fitting

Perform the ACE (Atomic Cluster Expansion) potential fitting.

load_mlip_hyperparameter_defaults

Load gap fit default parameters from the json file.

m3gnet_fitting

Perform the M3GNet potential fitting.

mace_fitting

Perform the MACE potential fitting.

mace_virial_format_conversion

Convert the format of virial vector (9,) into a format (3x3) recognizable by MACE.

nequip_fitting

Perform the NequIP potential fitting.

plot_convex_hull

Plot convex hull.

prepare_fit_environment

Prepare the environment for the fit.

run_ace

Julia-ACE script runner.

run_gap

GAP runner.

run_mace

MACE runner.

run_nequip

Nequip runner.

run_quip

QUIP runner.

vaspoutput_2_extended_xyz

Parse all VASP output files (vasprun.xml/OUTCAR) and generates a vasp_ref.extxyz.

write_after_distillation_data_split

Write train.extxyz and test.extxyz after data distillation and split.

Classes

TYPE_CHECKING

bool(x) -> bool

chemical_symbols

Built-in mutable sequence.