njayaram2 commented on a change in pull request #395: DL:
madlib_keras_evaluate() function
URL: https://github.com/apache/madlib/pull/395#discussion_r286620298
##########
File path: src/ports/postgres/modules/deep_learning/madlib_keras.py_in
##########
@@ -476,15 +470,14 @@ def fit_transition(state, dependent_var,
independent_var, model_architecture,
total_images = images_per_seg[0]
else:
total_images = images_per_seg[seg_ids.index(current_seg_id)]
+
if total_images == 0:
- plpy.error('Got 0 rows. Expected at least 1.')
+ plpy.error('Total images is 0 in fit_transition on segment
{0}'.format(current_seg_id))
# Re-serialize the weights
# Update image count, check if we are done
if agg_image_count == total_images:
- if total_images == 0:
- plpy.error('Total images is 0')
- # Once done with all images on a segment, we update weights
+ # Once done with all images on a segment, we update weights
Review comment:
Missing a space in indentation.
----------------------------------------------------------------
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