admin管理员组文章数量:1024016
I'm working with Tensorflow and Keras and trying to get the output of my model into Tensorboard for easy graph generation and visualization. This has worked fine so far for model.fit's callback, but model.evaluate does not have any sort of writing to Tensorboard. I looked on StackOverflow and I found one other person with this issue, but they never got a response.
This is the relevant part of my code, and I can give more as needed.
log_dir1 = 'C:/Users/myname/Desktop/DATASET/logs'
tensorboard_callback = tf.keras.callbacks.TensorBoard(log_dir=log_dir1, histogram_freq=1)
history = model.fit(train_data_keras, epochs=1, validation_data=valid_data_keras, callbacks= [tensorboard_callback])
model.evaluate(test_data_keras, callbacks = [tensorboard_callback])
I'm working with Tensorflow and Keras and trying to get the output of my model into Tensorboard for easy graph generation and visualization. This has worked fine so far for model.fit's callback, but model.evaluate does not have any sort of writing to Tensorboard. I looked on StackOverflow and I found one other person with this issue, but they never got a response.
This is the relevant part of my code, and I can give more as needed.
log_dir1 = 'C:/Users/myname/Desktop/DATASET/logs'
tensorboard_callback = tf.keras.callbacks.TensorBoard(log_dir=log_dir1, histogram_freq=1)
history = model.fit(train_data_keras, epochs=1, validation_data=valid_data_keras, callbacks= [tensorboard_callback])
model.evaluate(test_data_keras, callbacks = [tensorboard_callback])
本文标签: tensorflowTensorboard callback on modelevaluate()Stack Overflow
版权声明:本文标题:tensorflow - Tensorboard callback on model.evaluate() - Stack Overflow 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://it.en369.cn/questions/1745597860a2158277.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论