반응형
Notice
Recent Posts
Recent Comments
Link
관리 메뉴

bro's coding

keras.mnist 본문

[AI]/python.keras

keras.mnist

givemebro 2020. 5. 13. 17:29
반응형
from keras.datasets import mnist
(X_train,y_train),(X_test,y_test)=mnist.load_data()

 

 

 

 

 

# 전처리(option)

X_train=X_train.reshape(-1,28*28)/255.
X_test=X_test.reshape(-1,28*28)/255.
y_train=np.eye(10)[y_train]
y_test=np.eye(10)[y_test]

반응형

'[AI] > python.keras' 카테고리의 다른 글

keras.save  (0) 2020.05.13
keras.score  (0) 2020.05.13
keras.mnist(중간층)  (0) 2020.05.13
keras.mnist(중간층X)  (0) 2020.05.13
keras.iris(분류)  (0) 2020.05.13
keras.basic(분류)  (0) 2020.05.13
keras.iris(예측 )  (0) 2020.05.13
keras.basic(예측)  (0) 2020.05.13
Comments