Skip to content

Conversation

@twangnyc
Copy link
Contributor

Fix #4879

I add a int array to store the indices before the loop.
@amueller I also checked LabelEncoder but it can only accommodate 1d array, so a loop is still needed and slicing problem will still be there.
For MultiLabelBinarizer, it can accommodate 2d array, but it will return a 2d binary array to store the indices, which is very different from the original implementation in RandomForest and KNN. I am wondering is there any better way to do so?

@arjoly
Copy link
Member

arjoly commented Jun 24, 2015

LGTM

agramfort added a commit that referenced this pull request Jun 24, 2015
fix dtype transform problem in KNN and RandomForest
@agramfort agramfort merged commit 1c07dec into scikit-learn:master Jun 24, 2015
@agramfort
Copy link
Member

thanks @tw991

@amueller
Copy link
Member

amueller commented Jul 1, 2015

This needs a whatsnew, right?

@amueller
Copy link
Member

amueller commented Jul 1, 2015

thanks @tw991 :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants