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

Apply suggestions from code review

parent a3fdda5a
No related branches found
No related tags found
1 merge request!945Expose positivity threshold in the runcard
...@@ -111,7 +111,7 @@ def check_dropout(parameters): ...@@ -111,7 +111,7 @@ def check_dropout(parameters):
def check_tensorboard(tensorboard): def check_tensorboard(tensorboard):
""" Check that the tensorbard callback can enabled correctly """ """ Check that the tensorbard callback can be enabled correctly """
if tensorboard is not None: if tensorboard is not None:
weight_freq = tensorboard.get("weight_freq", 0) weight_freq = tensorboard.get("weight_freq", 0)
if weight_freq < 0: if weight_freq < 0:
...@@ -122,7 +122,7 @@ def check_tensorboard(tensorboard): ...@@ -122,7 +122,7 @@ def check_tensorboard(tensorboard):
def check_lagrange_multipliers(parameters, key): def check_lagrange_multipliers(parameters, key):
"""Checks the parameters in a lagrange multiplier dictionary """Checks the parameters in a lagrange multiplier dictionary
are correct (positivity, integrability)""" are correct, e.g. for positivity and integrability"""
lagrange_dict = parameters.get(key) lagrange_dict = parameters.get(key)
if lagrange_dict is None: if lagrange_dict is None:
return return
......
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