C06-07.7z

sample code above

my ppt notes below

Week 6 deep learning Notes.pptx

image.png

image.png

image.png

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())

image.png

image.png

784*256+256=200960

256*128+128=32896

128*64+64=8256

64*10+10=650

Total sum = 242762

Tensorflow Playground

image.png

image.png

image.png

image.png