compute slcsa/atom command
Syntax
compute ID group-ID slcsa/atom twojmax nclasses db_mean_descriptor_file lda_file lr_decision_file lr_bias_file maha_file value
ID, group-ID are documented in compute command
slcsa/atom = style name of this compute command
twojmax = band limit for bispectrum components (non-negative integer)
nclasses = number of crystal structures used in the database for the classifier SL-CSA
db_mean_descriptor_file = file name of file containing the database mean descriptor
lda_file = file name of file containing the linear discriminant analysis matrix for dimension reduction
lr_decision_file = file name of file containing the scaling matrix for logistic regression classification
lr_bias_file = file name of file containing the bias vector for logistic regression classification
maha_file = file name of file containing for each crystal structure: the Mahalanobis distance threshold for sanity check purposes, the average reduced descriptor and the inverse of the corresponding covariance matrix
c_ID[*] = compute ID of previously required compute sna/atom command
Examples
compute b1 all sna/atom 9.0 0.99363 8 0.5 1.0 rmin0 0.0 nnn 24 wmode 1 delta 0.3
compute b2 all slcsa/atom 8 4 mean_descriptors.dat lda_scalings.dat lr_decision.dat lr_bias.dat maha_thresholds.dat c_b1[*]
Description
Added in version 7Feb2024.
Define a computation that performs the Supervised Learning Crystal
Structure Analysis (SL-CSA) from (Lafourcade)
for each atom in the group. The SL-CSA tool takes as an input a per-atom
descriptor (bispectrum) that is computed through the compute sna/atom
command and then proceeds to a dimension reduction step followed by a
logistic regression in order to assign a probable crystal structure to
each atom in the group. The SL-CSA tool is pre-trained on a database
containing
The first step of the SL-CSA tool consists in performing a dimension
reduction of the per-atom descriptor
where
The new projected descriptor with dimension
Once the dimension reduction step is performed by means of LDA, the new
descriptor
with
Finally, a probability vector
from which the crystal structure assigned to each atom with descriptor
where
The SL-CSA framework provides an automatic computation of the different matrices and thresholds required for a proper classification and writes down all the required files for calling the compute slcsa/atom command.
The compute slcsa/atom command requires that the compute sna/atom command is called before as it takes the resulting per-atom bispectrum as an input. In addition, it is crucial that the value twojmax is set to the same value of the value twojmax used in the compute sna/atom command, as well as that the value nclasses is set to the number of crystal structures used in the database to train the SL-CSA tool.
Output info
By default, this compute computes the Mahalanobis distances to the different crystal structures present in the database in addition to assigning a crystal structure for each atom as a per-atom vector, which can be accessed by any command that uses per-atom values from a compute as input. See the Howto output page for an overview of LAMMPS output options.
Restrictions
This compute is part of the EXTRA-COMPUTE package. It is only enabled if LAMMPS was built with that package. See the Build package page for more info.
Default
none
(Lafourcade) Lafourcade, Maillet, Denoual, Duval, Allera, Goryaeva, and Marinica, Comp. Mat. Science, 230, 112534 (2023)