hyperopt icon indicating copy to clipboard operation
hyperopt copied to clipboard

How can I set an optimizer along with a learning rate(Keras)?

Open byshichen opened this issue 8 years ago • 1 comments

like this -> optimizers.RMSprop(lr = 1e-3, epsilon=1e-6)

How can I set this in the search space though?

Cheers

byshichen avatar Jun 09 '17 08:06 byshichen

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'])



aditsanghvi94 avatar Dec 07 '17 18:12 aditsanghvi94

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.

github-actions[bot] avatar Nov 16 '24 02:11 github-actions[bot]