Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

one hot encoding numpy

  labels = (np.arange(num_labels) == labels[:,None]).astype(np.float32)
 
PREVIOUS NEXT
Tagged: #hot #encoding #numpy
ADD COMMENT
Topic
Name
7+7 =