[ https://issues.apache.org/jira/browse/MADLIB-1371?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16901457#comment-16901457 ]
Nikhil commented on MADLIB-1371: -------------------------------- PR has been merged https://github.com/apache/madlib/pull/424 > DL: Exception during madlib_keras_fit when model_arch_id is passed as NULL > -------------------------------------------------------------------------- > > Key: MADLIB-1371 > URL: https://issues.apache.org/jira/browse/MADLIB-1371 > Project: Apache MADlib > Issue Type: Bug > Components: Deep Learning > Reporter: Nikhil > Priority: Major > Fix For: v1.17 > > > While calling madlib_keras_fit, if we pass in the model arch id as NULL, we > get the following exception > {code} > 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" > {code} > > We should instead error out gracefully and print a more meaningful error > message > > -- This message was sent by Atlassian JIRA (v7.6.14#76016)