-
Notifications
You must be signed in to change notification settings - Fork 514
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
[REVIEW] Allow "LabelEncoder" to accept cupy and numpy arrays as input. #4620
Conversation
sync with upstream
sync with upstream
sync with upstream
Sync with upstream
sync with upstream
sync with upstream
merge with upstream
sync with upstream
|
||
def get_param_names(self): | ||
return super().get_param_names() + [ | ||
"handle_unknown", | ||
] | ||
|
||
def _to_cudf_series(self, y): |
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.
@tvdboom @lowener @dantegd Thank you all so much for the comments. I've made changes accordingly. Are there existing functions to replace this function? def _to_cudf_series
Especially when y
is string
datatype. It seems input_to_cuml_array(y)
doesn't work:
/raid/data/ml/anaconda3/envs/cuml_dev/lib/python3.8/site-packages/cudf/core/column/column.py in __cuda_array_interface__(self)
1025 @property
1026 def __cuda_array_interface__(self):
-> 1027 raise NotImplementedError(
1028 f"dtype {self.dtype} is not yet supported via "
1029 "`__cuda_array_interface__`"
NotImplementedError: dtype object is not yet supported via `__cuda_array_interface__`
rerun tests |
@lowener @tvdboom @dantegd Please help me fix the current CI test errors. When the output of |
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.
LGTM
Codecov Report
@@ Coverage Diff @@
## branch-22.06 #4620 +/- ##
================================================
- Coverage 96.56% 88.87% -7.70%
================================================
Files 113 371 +258
Lines 13699 34695 +20996
================================================
+ Hits 13229 30835 +17606
- Misses 470 3860 +3390
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
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.
LGTM
@gpucibot merge |
…sai#4620) This is to resolve issue rapidsai#4589 Authors: - Jiwei Liu (https://github.com/daxiongshu) Approvers: - Micka (https://github.com/lowener) - Corey J. Nolet (https://github.com/cjnolet) URL: rapidsai#4620
This is to resolve issue #4589