官术网_书友最值得收藏!

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. 

主站蜘蛛池模板: 洛扎县| 海阳市| 石景山区| 新和县| 余干县| 吉木乃县| 溧水县| 兴隆县| 奇台县| 宜宾县| 弥渡县| 赤峰市| 闽清县| 广水市| 无极县| 广宗县| 德惠市| 潼关县| 德清县| 军事| 南皮县| 清镇市| 长沙县| 葫芦岛市| 奉贤区| 荥阳市| 阳春市| 洞头县| 长治市| 卫辉市| 宝清县| 萝北县| 无锡市| 阿城市| 新营市| 赣榆县| 安新县| 寿阳县| 乐亭县| 谢通门县| 鲁山县|