-
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
Clarify how to specify monotonic constraints in docu #4345
Comments
Thanks very much for the write-up and request! I'll add this right now. |
I've opened a draft PR, #4346, to update the documentation. For the Python package, you can pass a string or a list like |
oh wow! I wasn't even aware that you can pass a list/vector! |
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
In https://lightgbm.readthedocs.io/en/latest/Parameters.html, it is unclear how to pass the
monotone_constraints
parameter.In R and Python, we can pass neither a "multi-int" like
mc=-1,0,1
nor a list, but rather a string like "-1,0,1".Suggestion
Add to the docu a sentence like: "In R and Python, pass a string of the form '-1,0,1'." (If this is correct.)
The text was updated successfully, but these errors were encountered: