Skip to content
Snippets Groups Projects
Unverified Commit 2fb1696f authored by Juacrumar's avatar Juacrumar Committed by GitHub
Browse files

Update n3fit/src/n3fit/checks.py

parent ac1a9564
No related branches found
No related tags found
1 merge request!945Expose positivity threshold in the runcard
......@@ -127,7 +127,7 @@ def check_lagrange_multipliers(parameters, key):
if lagrange_dict is None:
return
multiplier = lagrange_dict.get("multiplier")
if multiplier is not None and multiplier <= 0:
if multiplier is not None and multiplier < 0:
log.warning("The %s multiplier is below 0, it will produce a negative loss", key)
threshold = lagrange_dict.get("threshold")
if threshold is not None and not _is_floatable(threshold):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment