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

Plot functions for tensorboard data #586

Closed
michaeldeistler opened this issue Jan 24, 2022 · 1 comment · Fixed by #593
Closed

Plot functions for tensorboard data #586

michaeldeistler opened this issue Jan 24, 2022 · 1 comment · Fixed by #593
Assignees

Comments

@michaeldeistler
Copy link
Contributor

michaeldeistler commented Jan 24, 2022

Tensorboard can be a bit of a hurdle to debug NN training. Instead, we might want to have functions such as:

from sbi.analysis import plot_loss

_ = inference.append_simulations(theta, x).train()
plot_loss(inference)

This function reads the logged loss from the SummaryWriter and plots it.

@lappalainenj lappalainenj self-assigned this Jan 24, 2022
@lappalainenj
Copy link
Contributor

lappalainenj commented Jan 24, 2022

According to this function, _summarize, we log the following:

            - epochs_trained
            - best_validation_log_prob
            - validation_log_probs_across_rounds
            - train_log_probs_across_rounds
            - epoch_durations_sec_across_rounds

What would be important to plot? What do we mean with across rounds? Because the metric is apparently logged over epochs.

@lappalainenj lappalainenj linked a pull request Jan 24, 2022 that will close this issue
lappalainenj added a commit that referenced this issue Jan 26, 2022
* added vscode code-workspace to gitignore

* Plot functions for tensorboard data #586

* fixed minor style issues

* adding test for plot_summary
janfb pushed a commit that referenced this issue Jan 26, 2022
* added vscode code-workspace to gitignore

* Plot functions for tensorboard data #586

* fixed minor style issues

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

Successfully merging a pull request may close this issue.

2 participants