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

pp.finalize() adding one more data point #20

Open
tomalf2 opened this issue Oct 10, 2024 · 0 comments
Open

pp.finalize() adding one more data point #20

tomalf2 opened this issue Oct 10, 2024 · 0 comments

Comments

@tomalf2
Copy link

tomalf2 commented Oct 10, 2024

Hello,
I've noticed that while the plot is being updated (i.e. calling pp.update()) the plot appears correct. But when calling pp.finalize(), a line connecting the first and last datapoint appears (see the straight blue and orange lines). The issue is documented in the attached pictures.
image

image

My code is pretty straightforward.

pp = ProgressPlot(plot_names=["Reconstruction loss", "Total loss"], 
                            line_names=['Training', 'Validation'])
for epoch in range(1, self.num_epochs + 1):
    train_rec, val_rec, train_loss, val_loss = ....
    pp.update([
                        [train_rec, val_rec],
                        [train_loss, val_loss]
                    ])
pp.finalize()

What might be the issue?

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

No branches or pull requests

1 participant