Uploaded image for project: 'Apache MADlib'
  1. Apache MADlib
  2. MADLIB-1371

DL: Exception during madlib_keras_fit when model_arch_id is passed as NULL

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • v1.17
    • Deep Learning
    • None

    Description

      While calling madlib_keras_fit, if we pass in the model arch id as NULL, we get the following exception

      
      SELECT madlib_keras_fit(
       'cifar_10_sample_batched',
       'keras_saved_out',
       'model_arch',
       NULL, --null model arch
       $$ optimizer=SGD(lr=0.01, decay=1e-6, nesterov=True), loss='categorical_crossentropy', metrics=['mae']$$::text,
       $$ batch_size=2, epochs=1, verbose=0 $$::text,
       3,
       NULL);
      
      
      LINE 1: ...el_arch, model_weights FROM model_arch WHERE model_id = None
                                                                         ^
      QUERY:  SELECT model_arch, model_weights FROM model_arch WHERE model_id = None
      CONTEXT:  Traceback (most recent call last):
        PL/Python function "madlib_keras_fit", line 21, in <module>
          madlib_keras.fit(**globals())
        PL/Python function "madlib_keras_fit", line 42, in wrapper
        PL/Python function "madlib_keras_fit", line 95, in fit
      PL/Python function "madlib_keras_fit"
      

       

       We should instead error out gracefully and print a more meaningful error message

       

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            nkak Nikhil Kak
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: