Hi,
I have an ab inition data that I would like to use MLFF. However, I do not have the stress of the structre which seems to be important in learning force filed (e.g. wiki/index.php/Machine_learning_force_field:_Theory). Do you know is there a way to turn-off learning stress and just keep energy and forces?
Regards,
Exlucing stres learning in MLFF
Moderators: Global Moderator, Moderator
-
- Jr. Member
- Posts: 51
- Joined: Thu Apr 06, 2023 12:25 pm
-
- Global Moderator
- Posts: 460
- Joined: Mon Nov 04, 2019 12:44 pm
Re: Exlucing stres learning in MLFF
Yes, there is a way.
Set ML_WTSIF to a small value like ML_WTSIF=0.0001 in the INCAR file. This tag sets the relative weight of the stress compared to forces and energy.
Caution: You still need to have some dummy values for the stress in the ML_AB file.
Here is the documentation of the flag:
wiki/index.php/ML_WTSIF
Set ML_WTSIF to a small value like ML_WTSIF=0.0001 in the INCAR file. This tag sets the relative weight of the stress compared to forces and energy.
Caution: You still need to have some dummy values for the stress in the ML_AB file.
Here is the documentation of the flag:
wiki/index.php/ML_WTSIF
-
- Jr. Member
- Posts: 51
- Joined: Thu Apr 06, 2023 12:25 pm
Re: Exlucing stres learning in MLFF
Dear ferenc_karsai,
thanks for your reply. I did your suggestion, but ML_REG file ?shows values like 1e2 for the fitted stress values, although my dummy variable in the ML_AB file is zero for all structures. Does it normal or I should lower ML_WTSIF further?
thanks for your reply. I did your suggestion, but ML_REG file ?shows values like 1e2 for the fitted stress values, although my dummy variable in the ML_AB file is zero for all structures. Does it normal or I should lower ML_WTSIF further?
-
- Global Moderator
- Posts: 460
- Joined: Mon Nov 04, 2019 12:44 pm
Re: Exlucing stres learning in MLFF
The fitted values for stress are garbage, but you weight them with a very small factor when solving the normal equations so it doesn't matter.