-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
Unknown type of parameter:objective, got:method #5185
Comments
Thanks for using LightGBM! For v3.3.2 of You can view the documentation for that release at https://lightgbm.readthedocs.io/en/v3.3.2/pythonapi/lightgbm.train.html. Passing a custom objective function via If this suggestion doesn't resolve your issue, please provide a reproducible example showing what you're trying, and we'd be happy to provide further help. |
AH that makes complete sense! Thanks for getting back to me :). I was using the 'latest' documentation. You'd assume the latest documentation would be inline with the current latest release of lightgbm. May be something to consider rolling back the latest documentation for now because it may stump a few more people! Thanks! |
Thanks very much for your report and suggestion @seanyboi ! I agree with you. As the gap between the latest I've opened #5342 for discussion of what we might do with LightGBM's docs site. If you'd like to add anything to that discussion, we'd welcome it! |
This issue has been automatically locked since there has not been any recent activity since it was closed. To start a new related discussion, open a new issue at https://github.com/microsoft/LightGBM/issues including a reference to this. |
Description
I am trying to add a custom objective to the parameters variable of
lightgbm.train()
. The custom objective is a method of a class I have built soself.<class>.<method>
The error being returned is:
Environment info
LightGBM version or commit hash:
Command(s) you used to install LightGBM
Version: 3.3.2
The text was updated successfully, but these errors were encountered: