You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But in the source code, it's evaluated to be either a str or a dict:
if isinstance(value, str):
return value
constrained_features = set(value.keys())
See:
In the official document, the value of monotone_constraints is a tuple:
params_constrained['monotone_constraints'] = (1,-1)
See: https://xgboost.readthedocs.io/en/stable/tutorials/monotonic.html
But in the source code, it's evaluated to be either a str or a dict:
if isinstance(value, str):
return value
constrained_features = set(value.keys())
See:
xgboost/python-package/xgboost/core.py
Line 1413 in 94ca52b
When passing the argument as a tuple, it will throw an error say tuple doesn't have attribute "keys"
The text was updated successfully, but these errors were encountered: