Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- y_train_ohe = pd.get_dummies(y_train.reset_index(drop=True)).as_matrix()
- y_val_ohe = pd.get_dummies(y_val.reset_index(drop=True)).as_matrix()
- y_test_ohe = pd.get_dummies(y_test.reset_index(drop=True)).as_matrix()
- y_train_ohe.shape, y_test_ohe.shape, y_val_ohe.shape
Add Comment
Please, Sign In to add comment