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

Conventions used

There are a number of text conventions used throughout this book.

CodeInText: Indicates code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles. Here is an example: "That's exactly what the ModelCheckpoint callback does for us."

A block of code is set as follows:

def binary_accuracy(y_true, y_pred):
return K.mean(K.equal(y_true, K.round(y_pred)), axis=-1)

When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:

def build_network(input_features=None):
inputs = Input(shape=(input_features,), name="input")
x = Dense(32, activation='relu', name="hidden1")(inputs)
x = Dense(32, activation='relu', name="hidden2")(x)
x = Dense(32, activation='relu', name="hidden3")(x)
x = Dense(32, activation='relu', name="hidden4")(x)
x = Dense(16, activation='relu', name="hidden5")(x)
prediction = Dense(1, activation='linear', name="final")(x)
model = Model(inputs=inputs, outputs=prediction)
model.compile(optimizer='adam', loss='mean_absolute_error')
return model

Any command-line input or output is written as follows:

model-weights.00-0.971304.hdf5
model-weights.02-0.977391.hdf5
model-weights.05-0.985217.hdf5

Bold: Indicates a new term, an important word, or words that you see onscreen. For example, words in menus or dialog boxes appear in the text like this. Here is an example: "Select System info from the Administration panel."

Warnings or important notes appear like this.
Tips and tricks appear like this.
主站蜘蛛池模板: 互助| 习水县| 成安县| 密山市| 双柏县| 伽师县| 乐昌市| 柯坪县| 微博| 铁岭市| 含山县| 九龙县| 镇安县| 吉木乃县| 汽车| 高尔夫| 汽车| 泾川县| 山阳县| 会理县| 漳州市| 古丈县| 阳朔县| 通山县| 额济纳旗| 赤壁市| 太谷县| 和平县| 阜平县| 合川市| 龙岩市| 金堂县| 凤山市| 兖州市| 南京市| 双城市| 新蔡县| 揭东县| 尉犁县| 武乡县| 始兴县|