Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Get the count of each categorical value (0 and 1) in labels

# Get the count of each label (0 and 1) in labels
print('0:', labels[labels==1].shape[0], '1:',labels[labels==0].shape[0])
 
PREVIOUS NEXT
Tagged: #Get #count #categorical #labels
ADD COMMENT
Topic
Name
7+4 =