- Deep Learning Quick Reference
- Mike Bernico
- 78字
- 2021-06-24 18:40:16
The input layer
As before, our input layer needs to know the dimensions of our dataset. I like to build the entire Keras model inside a function, and allow that function to pass back the compiled model. Right now, this function only takes a single argument, the number of features. The following code is used to define the input layer:
def build_network(input_features=None):
# first we specify an input layer, with a shape == features
inputs = Input(shape=(input_features,), name="input")
推薦閱讀
- 機器自動化控制器原理與應用
- Implementing AWS:Design,Build,and Manage your Infrastructure
- 邊緣智能:關鍵技術與落地實踐
- 人工智能:語言智能處理
- Dreamweaver+Photoshop+Flash+Fireworks網站建設與網頁設計完全實用
- INSTANT Adobe Story Starter
- Microsoft System Center Data Protection Manager Cookbook
- Practical Network Automation
- Win 7二十一
- Flink內核原理與實現
- Mastercam X5應用技能基本功特訓
- Arduino創意機器人入門:基于ArduBlock(第2版)
- Mastering Microsoft Dynamics 365 Customer Engagement
- 網絡設備規劃、配置與管理大全(Cisco版)
- 細節決定交互設計的成敗