Skip to content
Prev Previous commit
tidied up code
  • Loading branch information
GraemeMalcolm committed Feb 14, 2020
commit 529c441c6533af8ec8e260184a87b99d920bef1c
5 changes: 2 additions & 3 deletions diabetes_regression/evaluate/evaluate_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,9 +123,8 @@
model_name, tag_name, exp.name, ws)

if (model is not None):
if (metric_eval not in model.tags):
production_model_mse = 10000
else:
production_model_mse = 10000
if (metric_eval in model.tags):
production_model_mse = float(model.tags[metric_eval])
new_model_mse = float(run.parent.get_metrics().get(metric_eval))
if (production_model_mse is None or new_model_mse is None):
Expand Down