top of page

Keras – MNIST MLP

MNIST 的圖片是 28 像素 x 28 像素,每一張圖片就可以用 28 x 28 = 784 個數字來紀錄,因此 print(x_train.shape) 的輸出告訴我們有 48000 張訓練圖片,每張圖片都有 784 個數字;而 print(y_train.shape) 的輸出告訴我們的是這 48000 張訓練圖片的真實答案。

y = y_train 標籤答案,validation_split = 0.2  設定資料量訓練用80%、測試用20% (訓練用48000張,測試用12000張)

epochs = 20 進行20次訓練週期,batch_size = 400 每一批訓練400筆資料,

verboss = 1 不顯示訓練過程

4
5.PNG

最新文章

查看全部
LSTM

Long Short Term Memory networks – usually just called LSTMs – are a special kind of RNN This slideshow requires JavaScript. Excerpt from...

 
 
 
RNN

Recurrent Neural Network This slideshow requires JavaScript. Excerpt from colah’s blog

 
 
 

Comments


bottom of page