Skip to content

Commit 68835a0

Browse files
committed
increase default values for lambbda_q and lambda_z
1 parent 9e97463 commit 68835a0

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

doc/nep/input_parameters/lambda_q.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ The syntax is::
1010

1111
lambda_q <weight>
1212

13-
Here, :attr:`<weight>` represents :math:`\lambda_q`, which must satisfy :math:`\lambda_q \geq 0` and defaults to :math:`\lambda_f = 0.1`.
13+
Here, :attr:`<weight>` represents :math:`\lambda_q`, which must satisfy :math:`\lambda_q \geq 0` and defaults to :math:`\lambda_q = 0.5`.
1414

1515
This keyword is only relevant for the qNEP models.

doc/nep/input_parameters/lambda_z.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ The syntax is::
1010

1111
lambda_z <weight>
1212

13-
Here, :attr:`<weight>` represents :math:`\lambda_z`, which must satisfy :math:`\lambda_z \geq 0` and defaults to :math:`\lambda_z = 0.1`.
13+
Here, :attr:`<weight>` represents :math:`\lambda_z`, which must satisfy :math:`\lambda_z \geq 0` and defaults to :math:`\lambda_z = 0.5`.
1414

1515
This keyword is only relevant for the qNEP models.

src/main_nep/parameters.cu

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,8 @@ void Parameters::set_default_parameters()
9191
lambda_e = lambda_f = 1.0f; // energy and force are more important
9292
lambda_v = 0.1f; // virial is less important
9393
lambda_shear = 1.0f; // do not weight shear virial more by default
94-
lambda_q = 0.1f; // need to test
95-
lambda_z = 0.1f; // need to test
94+
lambda_q = 0.5f; // close to optimal
95+
lambda_z = 0.5f; // close to optimal
9696
force_delta = 0.0f; // no modification of force loss
9797
batch_size = 1000; // large enough in most cases
9898
use_full_batch = 0; // default is not to enable effective full-batch

0 commit comments

Comments
 (0)