I am currently experiencing some weird errors while trying to port a pipeline from sklearn to dask. With respect to the SimpleImputer preprocessing class, I have noticed that the most_frequent strategy is currently implemented in such a way that the result is not what I think it should be. It reads:
My problem is with the following line:
I have been debugging this part and the previous line returns the counts for the most frequent item, not the item itself, which can introduce some weird errors when dealing with categorical data.
Does anybody have an explanation for this? Or did I miss something? Any hint will be much appreciated.
The text was updated successfully, but these errors were encountered: