Open Miail opened 7 years ago
It seems you're using what we call "intermediate functions", would you mind checking out this example and tell me if it works for you? In principle, there's nothing fundamentally in your example that shouldn't work:
https://github.com/maxpumperla/hyperas/blob/master/examples/use_intermediate_functions.py
Hi @maxpumperla, does x_train, y_train, x_test, y_test all have to be tensors ?
If i have multiple input tensors to my network, can i wrap all of them in a dict ?
Example :
return {'Input_1_train' : ip1_train_tensor, 'Input_2_train' : ip2_train_tensor}, { 'Output_train' : op_train_tensor}, {'Input_1_test' : ip1_test_tensor, 'Input_2_test' : ip2_test_tensor}, { 'Output_test' : op_test_tensor}
I, too, would like to use multiple inputs (single output) to a model. This is because different parts of my data need different processing inside the model (e.g., batchnormalization or embedding). So I currently use named inputs like so:
'X_input': X_train, 'foo_input': foo_train, 'bar_input': bar_train
In reality, there are more than 3 inputs. and I have similarly named validation inputs for validating
So before I go about wrapping them all up in a dictionary, and testing/debugging, is there an agreed upon method to pass multiple inputs to hyperopts?
I just submitted a PR that showcases an example of using multiple inputs within a jupyter notebook. It builds off the simple example. https://github.com/maxpumperla/hyperas/pull/196
Can this optimiser be used in keras models with multiple inputs.. I use fit_generator as the data cannot be in ram, so tried to follow the example given, and implemented this for multiple inputs.
I added a MVCE for reproducibility.
https://pastebin.com/zH62fHBt
But i am getting error message:
Something you could elaborate on?