import matplotlib.pyplot as plt
import numpy as np
from matplotlib import cm
from keras.datasets import mnist # 케라스에서 mnist 데이터셋 지원
from keras import models
from keras import layers
from keras.utils import to_categorical
from keras.utils import plot_model
# 텐서보드 사용하기
from tensorflow.python.keras.callbacks import TensorBoard
from time import time
(train_images, train_labels), (test_images, test_labels) = mnist.load_data()
6만건의 이미지
train_images.shape
6만건의 답
train_labels.shape
1만건의 실험 이미지
test_images.shape
1만건의 실험 답
test_labels.shape