- Deep Learning Quick Reference
- Mike Bernico
- 115字
- 2021-06-24 18:40:09
Building an MLP in Keras
Keras uses an instance of a model object to contain a neural network. For those of you familiar with scikit-learn, this is probably quite familiar. What is somewhat different is that Keras models contain a set of layers. This set of layers needs to be defined by us. This allows for amazing flexibility in network architecture, with very little code.
Keras currently has two APIs for building models. In my examples, I'll be using the functional API. It's slightly more verbose but it allows additional flexibility. I'd recommend using the functional API whenever possible.
Our MLP will need an input layer, a hidden layer, and an output layer.
推薦閱讀
- 繪制進程圖:可視化D++語言(第1冊)
- Excel 2007函數與公式自學寶典
- 大數據改變世界
- 嵌入式Linux上的C語言編程實踐
- Excel 2007常見技法與行業應用實例精講
- Visual Studio 2010 (C#) Windows數據庫項目開發
- 大數據導論
- JRuby語言實戰技術
- Unreal Development Kit Game Design Cookbook
- 大數據:引爆新的價值點
- 計算機辦公應用培訓教程
- 項目實踐精解:C#核心技術應用開發
- Wireshark Revealed:Essential Skills for IT Professionals
- Practical Network Automation
- 超好玩的Python少兒編程