Open sarahyurick opened 3 years ago
This issue has been labeled inactive-90d
due to no recent activity in the past 90 days. Please close this issue if no further response or action is needed. Otherwise, please respond with a comment indicating any updates or changes to the original issue and/or confirm this issue still needs to be addressed.
This issue has been labeled inactive-30d
due to no recent activity in the past 30 days. Please close this issue if no further response or action is needed. Otherwise, please respond with a comment indicating any updates or changes to the original issue and/or confirm this issue still needs to be addressed. This issue will be labeled inactive-90d
if there is no activity in the next 60 days.
A user ran into this issue today while trying to use Random Forest
In SKLearn, I am able to do the following (using the Iris dataset, which I downloaded from here).
However, when I try the same in cuML, I get an error:
After discussion with @dantegd and @galipremsagar we determined that this will happen to
str
orcategorical
dtype Series, as it goes through the conditionalhasattr(X, "__array_interface__") or hasattr(X, "__cuda_array_interface__")
(in theinput_to_cuml_array()
function incuml/common/input_utils.py
), so we need to make sure that the dtype is numerical.For further reference, the Series that is causing the error looks like: