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

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. 

主站蜘蛛池模板: 永康市| 上饶市| 霍州市| 江油市| 两当县| 石屏县| 溧水县| 景德镇市| 太湖县| 平泉县| 平塘县| 莱州市| 铁力市| 昌江| 丹棱县| 利津县| 慈利县| 寻甸| 普格县| 通化县| 读书| 获嘉县| 噶尔县| 和田市| 长葛市| 乌拉特后旗| 太和县| 肥西县| 红桥区| 枣强县| 偃师市| 沐川县| 安龙县| 忻城县| 马龙县| 保定市| 梨树县| 永泰县| 宜阳县| 柳河县| 民乐县|