fmcquillan99 edited a comment on pull request #524:
URL: https://github.com/apache/madlib/pull/524#issuecomment-784667171


   (3). autoML doesn't seem to work either
   ```
   madlib=# SELECT madlib.madlib_keras_automl('iris_train_packed',              
  -- source table
   madlib(#                                   'automl_output',                  
  -- model output table
   madlib(#                                   'model_arch_library',             
  -- model architecture table
   madlib(#                                   'automl_mst_table',               
  -- model selection output table
   madlib(#                                   ARRAY[1,2],                       
  -- model IDs
   madlib(#                                   $${
   madlib$#                                       'loss': 
['categorical_crossentropy'],
   madlib$#                                       'optimizer_params_list': [
   madlib$#                                           {'optimizer': 
['Adam'],'lr': [0.001, 0.1, 'log']},
   madlib$#                                           {'optimizer': 
['RMSprop'],'lr': [0.001, 0.1, 'log']}
   madlib$#                                       ],
   madlib$#                                       'metrics': ['accuracy']
   madlib$#                                   } $$,                             
  -- compile param grid
   madlib(#                                   $${'batch_size': [4, 8], 
'epochs': [1], 'callbacks': ['[TensorBoard(log_dir="/tmp/logs/fit")]'}$$,  -- 
fit params grid
   madlib(#                                   'hyperband',                      
  -- autoML method
   madlib(#                                   'R=9, eta=3, skip_last=0',        
  -- autoML params
   madlib(#                                   NULL,                             
  -- random state
   madlib(#                                   NULL,                             
  -- object table
   madlib(#                                   FALSE,                            
  -- use GPUs
   madlib(#                                   'iris_test_packed',               
  -- validation table
   madlib(#                                   1,                                
  -- metrics compute freq
   madlib(#                                   NULL,                             
  -- name
   madlib(#                                   NULL);                            
  -- descr
   ERROR:  plpy.Error: Invalid syntax in 'fit_params_dict' (plpython.c:5038)
   CONTEXT:  Traceback (most recent call last):
     PL/Python function "madlib_keras_automl", line 23, in <module>
       schedule_loader = 
madlib_keras_automl_hyperband.AutoMLHyperband(**globals())
     PL/Python function "madlib_keras_automl", line 165, in __init__
     PL/Python function "madlib_keras_automl", line 214, in 
find_hyperband_config
     PL/Python function "madlib_keras_automl", line 42, in wrapper
     PL/Python function "madlib_keras_automl", line 308, in __init__
   PL/Python function "madlib_keras_automl"
   ```


----------------------------------------------------------------
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:
us...@infra.apache.org


Reply via email to