keras_lr_finder icon indicating copy to clipboard operation
keras_lr_finder copied to clipboard

Is this only works for Feed Forward?

Open ceste opened this issue 6 years ago • 2 comments

Hi,

Thank you for providing this awesome library. I gave it a try to my CNN model and it did not work well. Is this only works for Feed Forward model?

Please advise

ceste avatar Apr 03 '18 07:04 ceste

No, it should work for different kinds of neural networks, including CNN. This approach was tried on fully connected networks, CNN and LSTM.

surmenok avatar Jul 14 '18 21:07 surmenok

This will work for Model object (keras.models.Model or tf.keras.models.Model) as long as the optimizer function used when compiling the model has a "learning_rate" parameter.

Actually, I just checked the code for this repo and it uses "lr", which is technically the same in the Keras source code, but only supported for the sake of backwards compatibility. The recommended usage "learning_rate", and I will refactor that and make a pull request after I'm done with this comment. 😄

So you could even a multi-input model with a CNN, an RNN, and a Feed-Forward network within one model and use this - the model doesn't matter. I would recommend learning a bit more about how this works and the corresponding login.

Here are some resources you could look over: "How to Use the Learning Rate Finder in TensorFlow" by Ashwath Salimath Learning Rate Finder Documentation from Fast.ai

Also, I'm not sure how, but this issue should be closed.

tarasivashchuk avatar Oct 16 '19 17:10 tarasivashchuk