-
Sorry for bothering you with more questions, but I couldn't find the answer in the tutorials. My input .xyz file includes forces but ACE does not seem to include them in the input data or fit using them: ┌─────────┬──────────┬───────┬──────┬────────┬───────┐ My script reads the data using these lines: using ACEpotentials DO I have to add any flags to make sure forces are included? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
It seems that read_extxyz has read in the forces: julia> datatrain[1].data |
Beta Was this translation helpful? Give feedback.
-
solver = BLR() # (for example)
data_keys = (energy_key = "energy", force_key = "forces", virial_key = "stress")
acefit!(model, datatrain; solver=solver, data_keys...) the Here, I'm naively assuming that stress = virial, which is technically false. So if this is the actual stress, then you need to first go through all training data, rescale it, write it into a new field |
Beta Was this translation helpful? Give feedback.
the
data_keys
tuple specifies under which key to find the training data. See e.g. in [this tutorial].Here, I'm naively assuming that stress = virial, which is technically false. So if this is the actual stress, then you need to first go through all training data, rescale it, write it into a new field
"virial"
and adapt the script.