-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
[python] added get_split_value_histogram method #2041
Conversation
Is docstring OK? I tried to make it informative and simple at the same time, but I'm still not satisfied 😕 |
@StrikerRUS it looks good to me |
OK, thanks! Can we merge then or second review is needed? |
@StrikerRUS I think it is ready for merge |
@guolinke I've found that it crashes with categorical feature (threshold has string type). What do you think we can do with it? Simply raise error for cat. feature or is there any smarter solution? |
@StrikerRUS |
|
@StrikerRUS yeah, the combination is a problem. Let us skip the categorical features for now. |
Closed #2013.
Calculate feature split histogram in XGBoost-style (https://github.com/dmlc/xgboost/blob/master/python-package/xgboost/core.py#L1694-L1737).
UPD: … and in standard (numpy) style.