Last active
May 30, 2018 08:23
-
-
Save greed2411/cbbea173bf574ed3272de8527f1d7315 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
# onehot2labels() | |
def onehot2labels(y): | |
labels = [] | |
for row_element in y: | |
labels.append(np.argmax(row_element)) | |
return np.array(labels) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment