📅  最后修改于: 2022-03-11 14:45:09.132000             🧑  作者: Mango
from sklearn import preprocessing
le = preprocessing.LabelEncoder()
y_numeric_label = le.fit_transform(y_text_label)
y_numeric_label