- 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")
推薦閱讀
- Hands-On Internet of Things with MQTT
- Natural Language Processing Fundamentals
- 實時流計算系統設計與實現
- 輕松學PHP
- 大數據技術入門(第2版)
- 網站前臺設計綜合實訓
- Hands-On Reactive Programming with Reactor
- 網站入侵與腳本攻防修煉
- INSTANT Munin Plugin Starter
- ESP8266 Robotics Projects
- 從零開始學SQL Server
- 人工智能:智能人機交互
- WPF專業編程指南
- PostgreSQL 10 High Performance
- 工業機器人應用系統三維建模