📜  在 scikit learn 中编码标签 - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:09.132000             🧑  作者: Mango

代码示例1
from sklearn import preprocessing
le = preprocessing.LabelEncoder()
y_numeric_label = le.fit_transform(y_text_label)
y_numeric_label