- Deep Learning Quick Reference
- Mike Bernico
- 197字
- 2021-06-24 18:40:03
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.
推薦閱讀
- 構建高質量的C#代碼
- Introduction to DevOps with Kubernetes
- STM32嵌入式微控制器快速上手
- Blender Compositing and Post Processing
- JavaScript典型應用與最佳實踐
- HTML5 Canvas Cookbook
- 激光選區熔化3D打印技術
- 手把手教你學Flash CS3
- 案例解說Delphi典型控制應用
- Oracle 11g Anti-hacker's Cookbook
- PyTorch深度學習
- 從機器學習到無人駕駛
- 互聯網單元測試及實踐
- Apache Spark Machine Learning Blueprints
- 淘寶網店頁面設計、布局、配色、裝修一本通