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

Using a compiled network in another file raises error #236

Open ljakupi opened 5 years ago

ljakupi commented 5 years ago

Is it possible to use a created and compiled network in another file within create_model() method?

Doing this gives me the error below: Traceback (most recent call last): .. in <module> trials=Trials() .... IndexError: list index out of range

If I create the network inside create_model(), it works fine, but it does not work if I import a compiled network from another file, e.g.: model = FCNetwork.build() (build() creates and returns a compiled fully connected network from another file).