njayaram2 commented on a change in pull request #395: DL: 
madlib_keras_evaluate() function
URL: https://github.com/apache/madlib/pull/395#discussion_r286619820
 
 

 ##########
 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))
 
 Review comment:
   This error message on Postgres would show up with `segment 0`. Does Postgres 
officially have segment in its terminology? If not, we should rephrase this.

----------------------------------------------------------------
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

Reply via email to