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

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")
主站蜘蛛池模板: 黄冈市| 肇源县| 仲巴县| 绍兴市| 若尔盖县| 吉木萨尔县| 金华市| 南昌县| 太康县| 龙川县| 新邵县| 永城市| 黄冈市| 长乐市| 衡阳县| 仙桃市| 保德县| 迭部县| 临颍县| 河间市| 中西区| 林西县| 巴南区| 江西省| 霍林郭勒市| 冷水江市| 扎鲁特旗| 京山县| 永清县| 舒城县| 叶城县| 南通市| 邻水| 滁州市| 咸阳市| 阜宁县| 伊春市| 湘潭县| 慈利县| 达孜县| 宁陕县|