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

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. 

主站蜘蛛池模板: 沙河市| 册亨县| 措美县| 股票| 渝北区| 醴陵市| 沙洋县| 焉耆| 句容市| 永康市| 玉门市| 滦南县| 来宾市| 张北县| 嘉祥县| 玉门市| 正宁县| 扎囊县| 洪雅县| 龙陵县| 芒康县| 云南省| 疏勒县| 民丰县| 高雄市| 铜梁县| 明水县| 南和县| 区。| 定边县| 安西县| 南雄市| 烟台市| 双辽市| 张家口市| 辛集市| 论坛| 道孚县| 余姚市| 石林| 紫金县|