Closed dangpzanco closed 5 years ago
I have the same problem when using GPyOpt as algorithm
This error occurs with me too. You can change the float to an integer as temporary solution. After that, the code can be executed.
Example:
model.add(Dense(units=int(trial.parameters['num_units']), activation=trial.parameters['activation'], input_dim=784))
Hi and apologies for the delay on this. It seems like this problem only occurred for the version on PyPi? I have checked the master branch and added a test and it seems to work fine. I have accordingly updated the code on PyPi, so if you update using pip
the updates should be installed. Would be great if you could check. Otherwise I'll close this issue here in a week or so.
At the moment I can't test it properly because I can't reach the dashboard. See: #59
Yes, it works now!
The parameter
sherpa.Discrete('num_units', [32, 128])
can produce floats after some trials.To reproduce, install sherpa (
!pip3 install parameter-sherpa gpyopt flask
) and run themnist_mlp.ipynb
example on Google Colab.Error output: