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

Plotting multiple metrics in a single graph #3932

Closed
abhinavg97 opened this issue Oct 7, 2020 · 3 comments
Closed

Plotting multiple metrics in a single graph #3932

abhinavg97 opened this issue Oct 7, 2020 · 3 comments
Labels
feature Is an improvement or enhancement help wanted Open to be worked on

Comments

@abhinavg97
Copy link
Contributor

abhinavg97 commented Oct 7, 2020

🚀 Feature

Can we have multiple metrics plotted on the same graph in Tensorboard logging done by lightning?
That is plotting the dictionary values returned in log_dict in the same graph.

Motivation

Pitch

Alternatives

Additional context

@abhinavg97 abhinavg97 added feature Is an improvement or enhancement help wanted Open to be worked on labels Oct 7, 2020
@github-actions
Copy link
Contributor

github-actions bot commented Oct 7, 2020

Hi! thanks for your contribution!, great first issue!

@SkafteNicki
Copy link
Member

You can already do this in lightning, by calling the tensorboard logger yourself, using the add_scalars method.
If you insert this into your code (artificial example)

        self.logger.experiment.add_scalars('main_tag', 
                                           {'metric1': loss, 
                                            'metric2': loss+1}, 
                                           global_step=self.global_step)

it will produce this in tensorboard
Screenshot from 2020-10-07 12-03-25
where the metrics are shown in the same plot.

@abhinavg97
Copy link
Contributor Author

Thank you so much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Is an improvement or enhancement help wanted Open to be worked on
Projects
None yet
Development

No branches or pull requests

2 participants