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

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")
主站蜘蛛池模板: 乐亭县| 县级市| 滁州市| 神木县| 洪洞县| 汝州市| 雅江县| 乡城县| 萍乡市| 新安县| 顺平县| 凌源市| 前郭尔| 工布江达县| 南安市| 新民市| 五莲县| 青田县| 陈巴尔虎旗| 长白| 舞钢市| 嵩明县| 襄垣县| 沙洋县| 察雅县| 孝感市| 嘉黎县| 二手房| 聊城市| 昭苏县| 长岭县| 汤原县| 桃江县| 乌海市| 阿荣旗| 昆山市| 新建县| 襄汾县| 图片| 鄂温| 威宁|