mnist는 손글씨를 인식하는 대형 데어티베이스이다.
keras와 tensorflow를 이용해 그 기초 코드를 만들어 보았다.
import tensorflow as tf
import matplotlib.pyplot as plt
import numpy as np
mnist = tf.keras.datasets.mnist
(x_train, y_train), (x_test, y_test) = mnist.load_data()
plt.imshow(x_train[0])
plt.show()
print(x_train.shape)
print(x_test.shape)
'AI 인공지능 > 딥러닝 Practices' 카테고리의 다른 글
07.31 CLASS SUMMARY (mnist ②) (0) | 2021.08.01 |
---|---|
07.10 CLASS SUMMARY (폐암 수술 생존률 예측) (0) | 2021.07.12 |
07.03 CLASS SUMMARY (로지스틱 회귀) (0) | 2021.07.03 |
06.12 CLASS SUMMARY (편미분과 경사하강법) (0) | 2021.07.03 |
06.05 CLASS HW (최소제곱법과 평균제곱오차) (0) | 2021.06.12 |