Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
nnpdf
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Emanuele Roberto Nocera
nnpdf
Commits
2fb1696f
Unverified
Commit
2fb1696f
authored
4 years ago
by
Juacrumar
Committed by
GitHub
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Update n3fit/src/n3fit/checks.py
parent
ac1a9564
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!945
Expose positivity threshold in the runcard
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
n3fit/src/n3fit/checks.py
+1
-1
1 addition, 1 deletion
n3fit/src/n3fit/checks.py
with
1 addition
and
1 deletion
n3fit/src/n3fit/checks.py
+
1
−
1
View file @
2fb1696f
...
@@ -127,7 +127,7 @@ def check_lagrange_multipliers(parameters, key):
...
@@ -127,7 +127,7 @@ def check_lagrange_multipliers(parameters, key):
if
lagrange_dict
is
None
:
if
lagrange_dict
is
None
:
return
return
multiplier
=
lagrange_dict
.
get
(
"
multiplier
"
)
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
)
log
.
warning
(
"
The %s multiplier is below 0, it will produce a negative loss
"
,
key
)
threshold
=
lagrange_dict
.
get
(
"
threshold
"
)
threshold
=
lagrange_dict
.
get
(
"
threshold
"
)
if
threshold
is
not
None
and
not
_is_floatable
(
threshold
):
if
threshold
is
not
None
and
not
_is_floatable
(
threshold
):
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment