sklearn onehot

from sklearn.preprocessing import OneHotEncoder, StandardScaler
ohe_period = OneHotEncoder(handle_unknown='ignore')
X_train_period = ohe_period.fit_transform(X[['label1']])
yy = ohe_period.transform(X[['label1']])
posted @ 2022-08-19 22:53  luoganttcc  阅读(3)  评论(0)    收藏  举报