Closed mayer79 closed 3 years ago
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 [-1, 0, 1]
. For the R package, you can pass a string or a vector like c(-1, 0, 1)
.
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.)