看不到训练纪元精度图表,只有验证准确性图表

时间:2019-12-22 21:28:18

标签: python tensorflow tensorboard

这是代码:

model.compile(optimizer='adam',
              loss='sparse_categorical_crossentropy',
              metrics=['accuracy'])


tensorboard_callback = tf.keras.callbacks.TensorBoard(log_dir=log_dir, histogram_freq=1)

history = model.fit(train_images, train_labels,
                    epochs=15,
                    validation_data=(test_images, test_labels),
                    callbacks=[tensorboard_callback])

结果:

tensorboard

我可以在该火车目录中看到两个文件:
events.out.tfevents.1577049201.HOSTNAME.29520.368.v2 events.out.tfevents.1577049203.HOSTNAME.profile-empty

我在做什么错了?

0 个答案:

没有答案