開始使用免費開始

照圖搭建!

在進入下一個單元前,先來最後一個挑戰。請依照下圖建立神經網路。用最短時間展現你已掌握的 Keras 基礎!

本練習屬於課程

Keras 深度學習入門

檢視課程

練習說明

  • 建立一個 Sequential 模型。
  • 建置輸入層與隱藏層。
  • 加入輸出層。

動手互動練習

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

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

# Instantiate a Sequential model
model = ____

# Build the input and hidden layer
model.____

# Add the ouput layer
model.____
編輯並執行程式碼