text_plain_output_1.png
from keras.utils import np_utils

import pandas as pd

import pandas as pd
import numpy as np
df_train = pd.read_csv('../input/train.csv', encoding='big5')
df_train[:5]

from sklearn.model_selection import train_test_split
from keras.utils import np_utils
X_train = df_train[df_train.columns[1:]].values
y_train = df_train['label'].values
X_train = X_train.reshape(X_train.shape[0], 28, 28, 1) / 255
y_train_oneHot = np_utils.to_categorical(y_train, num_classes=10)