-
-
Notifications
You must be signed in to change notification settings - Fork 8.7k
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
[jvm-packages] xgboost4j-spark XGBoostClassifier cannot assign 0 to max_depth #4038
Comments
in future, the usage discussion should be to https://discuss.xgboost.ai/ |
@CodingCat The doc says
|
isn't this incorrect? https://github.com/dmlc/xgboost/blob/master/src/tree/updater_histmaker.cc#L136 for approx, setting to zero will have an empty tree.... this no limit thing looks like only applied to loss-guide growing in fast histogram |
Yes, it looks like the no-limit condition is only applicable to the fast histogram. |
You can also use no-limit and |
@rongou here https://github.com/dmlc/xgboost/pull/4011/files#diff-00dbd05cd0d409bdeac5777a2636afa6R53, when fast histogram is supported in distributed case |
The xgboost spark API said "maximum depth of a tree, increase this value will make model more complex / likely to be overfitting. [default=6] range: [1, Int.MaxValue]".
But xgboost4j-spark tutorial said "In XGBoost4J-Spark, we support not only the default set of parameters but also the camel-case variant of these parameters to keep consistent with Spark’s MLLIB parameters."
And XGBoost Parameters notified that max_depth=0 indicates no limit.
So maybe it's better to enable max_depth=0 in xgboost4j-spark?
The text was updated successfully, but these errors were encountered: