開始使用免費開始

計算參數數量

你剛建立了一個神經網路。接下來你要再建立一個新的,同時花點時間思考每一層的權重。Keras 的 Dense 層與 Sequential 模型已為你載入,可以直接使用。

你將要建立的網路如下:

本練習屬於課程

Keras 深度學習入門

檢視課程

動手互動練習

試著完成這個範例程式碼,體驗一下這個練習。

# Instantiate a new Sequential model
model = ____

# Add a Dense layer with five neurons and three inputs
model.add(____(____, input_shape=____, activation="relu"))

# Add a final Dense layer with one neuron and no activation
model.____

# Summarize your model
model.summary()
編輯並執行程式碼