Created
June 2, 2016 21:46
-
-
Save liezl200/5466c4c5576a1a836b2cc97e245bc330 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
predProb = clf.predict_proba(X) | |
preds = [] | |
for i in range(len(predProb)): | |
top5 = predProb[i].argsort()[-5:][::-1] | |
preds.append(top5) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment