Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

reverse one hot encoding python numpy

import numpy as np
class_labels = np.argmax(class_prob, axis=1) # assuming you have n-by-5 class_prob
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #reverse #hot #encoding #python #numpy
ADD COMMENT
Topic
Name
3+6 =