Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only Visualization of Loss is demonstrated in Tensorboard Scalars Documentation #4901

Open
worldpeaceaspirer opened this issue Apr 22, 2021 · 2 comments · May be fixed by #4902
Open

Only Visualization of Loss is demonstrated in Tensorboard Scalars Documentation #4901

worldpeaceaspirer opened this issue Apr 22, 2021 · 2 comments · May be fixed by #4902

Comments

@worldpeaceaspirer
Copy link

Issue description:

This is an issue to improve documentation of Tensorboard Scalars. In this Tutorial, only visualization of Loss is demonstrated but usually, we visualize Metrics as well (like Accuracy).

So, there can be a mention on how to visualize Metrics.

@wchargin
Copy link
Contributor

Hi @worldpeaceaspirer! The TensorBoard Keras callback used in those docs
will automatically log all the metrics that you’re tracking. So, if you
want to track accuracy, just add metrics=["accuracy"] to your model
creation code:

model.compile(
    loss='mse',
    optimizer=keras.optimizers.SGD(lr=0.2),
    metrics=['accuracy'],
)

…and you’ll see epoch_accuracy appear in TensorBoard.

Does this answer your question?

@worldpeaceaspirer
Copy link
Author

@wchargin,
Thank you for your response and sorry for the delayed response. My point is, since the purpose of documentation is to guide the community, it will be better to cover all the Cases like Metrics and Loss, instead of just Loss, so that the documentation would be complete.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants