maxpumperla / hyperas

Keras + Hyperopt: A very simple wrapper for convenient hyperparameter optimization
http://maxpumperla.com/hyperas/
MIT License
2.18k stars 318 forks source link

Input data is not defined for multi-input keras model #256

Closed anetschka closed 5 years ago

anetschka commented 5 years ago

Hi, I have built a multi-input model with Keras. Hyperas (or hyperopt?) seems to hve difficulty in finding my inputs.

My data generator looks as follows (DataGetter is a custom class): data

The signature of create_model looks like this: def create_model(train, train_bitmap, train_start_end_bitmap, train_labels, dev, dev_bitmap, dev_start_end_bitmap, dev_labels)

And I call hyperas just like in the documentation:

hyperas

Unfortunately, the return statement in the data method seems to be flawed:

data_hyperas

This is my stacktrace:

stack

Any hints on how to debug this?

Cheers, Anne