Google colab and notes:

https://drive.google.com/drive/folders/1qQgNgE556PKWe1PYQTpwcEZSGjcS4RWo?usp=drive_link

CNN - Google Drive

https://drive.google.com/drive/folders/1qQgNgE556PKWe1PYQTpwcEZSGjcS4RWo?usp=drive_link

POWERPOINT:

https://drive.google.com/file/d/1JjQjfMPvGuOO1t8Kj49mXkuB_9HnrJ4I/view?usp=sharing

image.png

image.png

28 x 28 = 784

from tensorflow.keras.models import Sequential
from tensorflow.keras import layers

model = Sequential([
    layers.Flatten(input_shape=(28, 28)),   # 將輸入資料從 28x28 攤平成 784
    layers.Dense(256, activation='relu'),
    layers.Dense(128, activation='relu'),
    layers.Dense(64, activation='relu'),
    layers.Dense(10, activation='softmax') # output 為 10 個 class
])
print(model.summary())

softmax: percentaage **Total params:** 242,762 (948.29 KB)

image.png

image.png

Sequential:

image.png

image.png

image.png

image.png