-
-
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] [pyspark] Make QDM optional based on cuDF check #8471
Conversation
54c51bb
to
bce3da7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think an independent parameter is needed. XGBoost should be able to decide what data structure should be used based on input.
use_quantile_dmatrix
param and make cuDF optional in PySpark package
@trivialfis PR updated ! :) |
02d6c62
to
943921c
Compare
if importlib.util.find_spec("cudf") is None: | ||
return False |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is for avoiding printing importing error if cuDF
not installed. (specifically for databricks runtime)
Signed-off-by: Weichen Xu weichen.xu@databricks.com
Closes #8467
Closes #8469
If cuDF is installed and using hist / gpu_hist tree method, use QDM, otherwise use DMatrix.