
上QQ阅读APP看书,第一时间看更新
本书相关约定
CodeInText:这种字体表示文本中的代码、数据库表名、文件夹名、文件名、文件扩展、伪地址、用户输入、Twitter 用户名等。例如“Mount the downloaded WebStorm-10*.dmg disk image file as another disk in your system”。
本书中的代码块如下所示:
import numpy as np x_train = np.expand_dims(x_train,-1) x_test = np.expand_dims(x_test,-1) x_train.shape
如果我们希望你注意代码中的某个部分时,相关代码行或代码内容设置为粗体。
from keras.models import Sequential img_shape = (28,28,1) model = Sequential() model.add(Conv2D(6,3,input_shape=img_shape))
命令行的输入和输出如下所示:
Train on 60000 samples, validate on 10000 samples Epoch 1/10 60000/60000 [==============================] - 22s 374us/step - loss: 7707.2773 - acc: 0.6556 - val_loss: 55.7280 - val_acc: 0.7322
提示。
注意。