mirror of
https://github.com/cp2k/cp2k.git
synced 2026-07-21 06:25:15 -04:00
Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> |
||
|---|---|---|
| .. | ||
| pao | ||
| example.pao | ||
| pao-diff.py | ||
| pao-retrain.py | ||
| pao-train.py | ||
| pao-validate.py | ||
| README.md | ||
| requirements.txt | ||
PAO-ML training
These are the scripts for training an equivariant PAO-ML model. To create a new model, follow these steps:
-
Create and activate a virtual Python environment:
python3 -m venv ./venv source ./venv/bin/activate -
Install the required Python packages:
pip3 install -r requirements.txt -
Train a new model:
./pao-train.py --kind=H training_data1.pao training_data2.pao... -
Retrain the model on some more taining data:
./pao-retrain.py --model="DZVP-MOLOPT-GTH-PAO4-H.pt" training_data100.pao training_data101.pao... -
Validate the model against test data:
./pao-validate.py --model="DZVP-MOLOPT-GTH-PAO4-H.pt" test_data1.pao test_data2.pao... -
Use the model in a CP2K run by setting the
PAO_MODEL_FILEkeyword in the kind section:&KIND H BASIS_SET DZVP-MOLOPT-GTH PAO_BASIS_SIZE 4 PAO_MODEL_FILE DZVP-MOLOPT-GTH-PAO4-H.pt &END KIND