Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

encode labels in scikit learn

from sklearn import preprocessing
le = preprocessing.LabelEncoder()
y_numeric_label = le.fit_transform(y_text_label)
y_numeric_label
 
PREVIOUS NEXT
Tagged: #encode #labels #scikit #learn
ADD COMMENT
Topic
Name
7+2 =