hyperopt
hyperopt copied to clipboard
How can I set an optimizer along with a learning rate(Keras)?
like this -> optimizers.RMSprop(lr = 1e-3, epsilon=1e-6)
How can I set this in the search space though?
Cheers
This is what I did.
def f_nn(params):
print ('Params testing: ', params)
optimizer = Adam(10**params['lr'])
# build model
model.compile(loss='binary_crossentropy', optimizer=optimizer, metrics=['accuracy'])
This issue has been marked as stale because it has been open 120 days with no activity. Remove the stale label or comment or this will be closed in 30 days.