kaknikhil commented on a change in pull request #393: DL: Add support for
reporting various metrics in fit/evaluate
URL: https://github.com/apache/madlib/pull/393#discussion_r286268257
##########
File path: src/ports/postgres/modules/deep_learning/madlib_keras.py_in
##########
@@ -637,13 +642,21 @@ def internal_keras_eval_transition(state, dependent_var,
independent_var,
with K.tf.device(device_name):
res = model.evaluate(x_val, y_val)
- loss, metric = res
+ # if metric is None, model.evaluate will only return loss as a scalar
Review comment:
Can we move the agg_metric logic from lines 629-633 to this if check ? That
way we are not rewriting the same logic in different ways.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services