-
Notifications
You must be signed in to change notification settings - Fork 95
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding the LBFGS optimizer from PyTorch #79
Comments
Hi @e-eight, thanks for reporting! Could you provide me with an example on how to use the LBFGS optimizer, for example: for batch_idx, (data, target) in enumerate(dataloader):
# Here is your code According to this introduction, it looks like using the LBFGS optimizer is different from other optimizers. |
You can try it this way:
This way of optimizing should work with both LBFGS and other optimizers, such as Adam, at least it has worked for me with single estimators. You might find more details on the LBFGS optimizer here. |
Thanks for your explanation. After reading the introduction, I think there should be no problem on supporting the LBFGS optimizer, wondering that if you are interested in working on this feature request ;-) |
Sure, I will be happy to work on it!! I will get started on it then, and comment here if I face any problems. |
Glad to hear that 😄. Here are some instructions on what to do next:
Feel free to ask me anything in this issue or your pull request. |
@all-contributors please add @e-eight for code |
I've put up a pull request to add @e-eight! 🎉 |
@e-eight it would be better to open a PR on your own. |
I have written the code, but I am not sure what is the best way to test it. I was thinking about doing the Year Prediction example in the |
Hi @e-eight, I am not sure if I understand your problem correctly. Perhaps you could open a pull request based on your current code, and we can then have a discussion there. For now, there is no need to pass all checks, simply upload your code, so that I can take a look and better understand your problem ;-) |
Added pull request #81. |
Thanks @e-eight for your PR. Kind of busy in two days. I will get back to you soon. |
Hi,
I am trying to use the
BaggingRegressor
model, with shallow estimators, on a small dataset, for which the LBFGS optimizer usually gives good results with a single estimator. However I see that the LBFGS optimizer in PyTorch is not included in the accepted list of optimizers fortorchensemble
. Will it be possible to add the LBFGS optimizer to the accepted list of optimizers, or is there any way that I can use the LBFGS optimizer withtorchensemble
for my work?Thanks
The text was updated successfully, but these errors were encountered: