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

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")
主站蜘蛛池模板: 喀喇沁旗| 苏尼特右旗| 星子县| 桐乡市| 驻马店市| 营口市| 北宁市| 新疆| 崇州市| 尚义县| 麻江县| 铅山县| 阿拉善盟| 黎城县| 赤水市| 无为县| 阆中市| 洮南市| 申扎县| 湘潭市| 盈江县| 鞍山市| 宝丰县| 前郭尔| 汾西县| 新化县| 开阳县| 牟定县| 襄汾县| 柳林县| 墨江| 垣曲县| 固镇县| 湘阴县| 绵阳市| 江北区| 罗江县| 邓州市| 宾阳县| 连城县| 舒城县|