0 votes

Hi, I'm follow example https://www.dataiku.com/learn/guide/visual/machine-learning/deep-learning-first.html but when click TRAIN have error 
"Training Failed… Sorry Failed to train : <type 'exceptions.TypeError'> : Required Group, str or dict. Received: <type 'unicode'>."


 

[2019-05-01 17:58:35,467] [10087/Thread-7] [INFO] [root] After DRWNT input_df=(32, 9)
[2019-05-01 17:58:35,467] [10087/Thread-7] [INFO] [root] MF after = (32, 8) target after = (32,)
[2019-05-01 17:58:35,467] [10087/Thread-7] [DEBUG] [dku.ml.preprocessing] PROCESS WITH Step:DumpPipelineState
  File "/data/pyenv/local/lib/python2.7/site-packages/keras/legacy/interfaces.py", line 91, in wrapper
[2019-05-01 17:58:35,467] [10087/Thread-7] [INFO] [root] ********* Pipieline state (Before feature selection)
[2019-05-01 17:58:35,467] [10087/Thread-7] [INFO] [root]    input_df= (32, 9) 
[2019-05-01 17:58:35,467] [10087/Thread-7] [INFO] [root]    current_mf=(32, 8) 
[2019-05-01 17:58:35,468] [10087/Thread-7] [INFO] [root]    PPR: 
[2019-05-01 17:58:35,468] [10087/Thread-7] [INFO] [root]       target = <class 'pandas.core.series.Series'> ((32,))
[2019-05-01 17:58:35,468] [10087/Thread-7] [DEBUG] [dku.ml.preprocessing] PROCESS WITH Step:EmitCurrentMFAsResult
[2019-05-01 17:58:35,468] [10087/Thread-7] [INFO] [root] Set MF index len 32
[2019-05-01 17:58:35,468] [10087/Thread-7] [DEBUG] [dku.ml.preprocessing] PROCESS WITH Step:DumpPipelineState
[2019-05-01 17:58:35,468] [10087/Thread-7] [INFO] [root] ********* Pipieline state (At end)
[2019-05-01 17:58:35,468] [10087/Thread-7] [INFO] [root]    input_df= (32, 9) 
[2019-05-01 17:58:35,468] [10087/Thread-7] [INFO] [root]    current_mf=(0, 0) 
[2019-05-01 17:58:35,468] [10087/Thread-7] [INFO] [root]    PPR: 
[2019-05-01 17:58:35,468] [10087/Thread-7] [INFO] [root]       UNPROCESSED = <class 'pandas.core.frame.DataFrame'> ((32, 9))
[2019-05-01 17:58:35,468] [10087/Thread-7] [INFO] [root]       TRAIN = <class 'dataiku.doctor.multiframe.MultiFrame'> ((32, 8))
[2019-05-01 17:58:35,468] [10087/Thread-7] [INFO] [root]       target = <class 'pandas.core.series.Series'> ((32,))
    return func(*args, **kwargs)
  File "/data/pyenv/local/lib/python2.7/site-packages/keras/engine/training.py", line 1418, in fit_generator
    initial_epoch=initial_epoch)
  File "/data/pyenv/local/lib/python2.7/site-packages/keras/engine/training_generator.py", line 251, in fit_generator
    callbacks.on_epoch_end(epoch, epoch_logs)
  File "/data/pyenv/local/lib/python2.7/site-packages/keras/callbacks.py", line 79, in on_epoch_end
    callback.on_epoch_end(epoch, logs)
  File "/home/ubuntu/dataiku-dss-5.0.3/python/dataiku/doctor/deep_learning/keras_callbacks.py", line 240, in on_epoch_end
    self._save_model()
  File "/home/ubuntu/dataiku-dss-5.0.3/python/dataiku/doctor/deep_learning/keras_callbacks.py", line 175, in _save_model
    self.model.save(osp.join(run_folder, constants.KERAS_MODEL_FILENAME), overwrite=True)
  File "/data/pyenv/local/lib/python2.7/site-packages/keras/engine/network.py", line 1090, in save
    save_model(self, filepath, overwrite, include_optimizer)
  File "/data/pyenv/local/lib/python2.7/site-packages/keras/engine/saving.py", line 379, in save_model
    f = h5dict(filepath, mode='w')
  File "/data/pyenv/local/lib/python2.7/site-packages/keras/utils/io_utils.py", line 197, in __init__
    'Received: {}.'.format(type(path)))
TypeError: Required Group, str or dict. Received: <type 'unicode'>.
[2019/05/01-17:58:35.794] [KNL-python-single-command-kernel-monitor-825] [INFO] [dku.kernels]  - Process done with code 0
[2019/05/01-17:58:35.795] [KNL-python-single-command-kernel-monitor-825] [INFO] [dip.tickets]  - Destroying API ticket for analysis-ml-PANDORAORDER-SGCeDdS on behalf of admin
[2019/05/01-17:58:35.795] [MRT-821] [INFO] [dku.kernels]  - Getting kernel tail
[2019/05/01-17:58:35.796] [MRT-821] [INFO] [dku.kernels]  - Trying to enrich exception: com.dataiku.dip.io.SocketBlockLinkKernelException: Failed to train : <type 'exceptions.TypeError'> : Required Group, str or dict. Received: <type 'unicode'>. from kernel [email protected] process=null pid=?? retcode=0
[2019/05/01-17:58:35.796] [MRT-821] [WARN] [dku.analysis.ml.python]  - Training failed
com.dataiku.dip.io.SocketBlockLinkKernelException: Failed to train : <type 'exceptions.TypeError'> : Required Group, str or dict. Received: <type 'unicode'>.
	at com.dataiku.dip.io.SocketBlockLinkInteraction.throwExceptionFromPython(SocketBlockLinkInteraction.java:298)
	at com.dataiku.dip.io.SocketBlockLinkInteraction$AsyncResult.checkException(SocketBlockLinkInteraction.java:215)
	at com.dataiku.dip.io.SocketBlockLinkInteraction$AsyncResult.get(SocketBlockLinkInteraction.java:190)
	at com.dataiku.dip.io.SingleCommandKernelLink$1.call(SingleCommandKernelLink.java:208)
	at com.dataiku.dip.analysis.ml.prediction.PredictionTrainAdditionalThread.process(PredictionTrainAdditionalThread.java:75)
	at com.dataiku.dip.analysis.ml.shared.PRNSTrainThread.run(PRNSTrainThread.java:130)
[2019/05/01-17:58:35.797] [FT-TrainWorkThread-pBbvSobT-820] [INFO] [dku.analysis.ml.python] T-YMQs3Hut - Processing thread joined ...
[2019/05/01-17:58:35.797] [FT-TrainWorkThread-pBbvSobT-820] [INFO] [dku.analysis.ml.python] T-YMQs3Hut - Joining processing thread ...
[2019/05/01-17:58:35.797] [FT-TrainWorkThread-pBbvSobT-820] [INFO] [dku.analysis.ml.python] T-YMQs3Hut - Processing thread joined ...
[2019/05/01-17:58:35.798] [FT-TrainWorkThread-pBbvSobT-820] [INFO] [dku.analysis.prediction] T-YMQs3Hut - Train done
[2019/05/01-17:58:35.798] [FT-TrainWorkThread-pBbvSobT-820] [INFO] [dku.analysis.prediction] T-YMQs3Hut - Train done
[2019/05/01-17:58:35.799] [FT-TrainWorkThread-pBbvSobT-820] [INFO] [dku.analysis.prediction] T-YMQs3Hut - Publishing mltask-train-done reflected event


Please help.

Thank you.

by
edited by

Please log in or register to answer this question.

1,258 questions
1,292 answers
1,467 comments
11,809 users

©Dataiku 2012-2018 - Privacy Policy