TensorFlow 2.x버전으로 MNIST 실습하기
import tensorflow as tf import numpy as np from tensorflow.keras.datasets import mnist (x_train, t_train), (x_test, t_test) = mnist.load_data() print('\n train shape =', x_train.shape, ', train label shape = ', t_train.shape) print(' test shape =', x_test.shape, ', test label shape=', t_test.shape) print('\n train label = ', t_train) # 학습 데이터 print(' test label =', t_test) # 테스트 데이터 print(x_trai..