fit的时候加上callbacks=[TensorBoard (log_dir='./tmp/log')]
将运行的结果 保存在'./tmp/log'下。
执行tensorboard 命令的时候指明: --logdir=./temp/log |
# Fit the model
on the batches generated by datagen.flow().
model.fit_generator(datagen.flow (x_train, y_train,
batch_size=batch_size),
epochs=epochs,
validation_data=(x_test, y_test),
workers=4) |
model.fit_generator(datagen.flow (x_train,
y_train,
batch_size=batch_size),
epochs=epochs,
validation_data=(x_test, y_test),
workers=4,
callbacks=[TensorBoard (log_dir='./tmp/log')]) |