- Selecting active set with
MaxVol
algorithem by CPU or GPU. - Calcualting extrapolation grade with
PyNEP
. - Calcualting extrapolation grade during MD simulations with
GPUMD
.
conda install -n nep_active python=3.10
conda activate nep_active
If you choose to install it in your current env, jump to the next step.
Install the latest PyNEP
. You can check its own repository for details.
pip install git+https://github.com/bigd4/PyNEP.git
When selecting the active set, you may use cupy
or numpy
. cupy
uses your GPU and is much faster when performing MaxVol
. Since you are using GPUMD
, I assume you have a GPU. You can check its website for installation details.
pip install cupy-cuda12x
You need to have a NEP.
An active set invsersion (.asi
file) is needed when calculating the extrapolation grade. The active set can also be considered as the environments with the maximum diversity. You can use select_active.py
to get an active set inversion (.asi
file) by MaxVol
and corresponding structures (.xyz
file).
If you want to select some structures to add to the training set, you can calculate their extrapolation grade (gamma
) and judge if their are outside the training set.
This can be performed by the compute_extrapolatione
command in GPUMD
or by select_gamma.py
. You may modify the gamma cutoff to control how far they are from the training set. The default value in select_gamma.py
is 1
.
However, the selected structures can be dupelicated, so you need to perform the next step.
If you want to select some structures to add to the training set, your can put them together and perform a MaxVol
selection. This is in select_extend.py
.