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

Add PlotLosses figsize #142

Merged
merged 2 commits into from
Jan 3, 2025
Merged

Add PlotLosses figsize #142

merged 2 commits into from
Jan 3, 2025

Conversation

stared
Copy link
Owner

@stared stared commented Jan 3, 2025

Feature request #139.

from time import sleep
import numpy as np

from livelossplot import PlotLosses

plotlosses = PlotLosses(from_step=2, figsize=(6, 3))

for i in range(10):
    plotlosses.update({
        'acc': 1 - np.random.rand() / (i + 2.),
        'val_acc': 1 - np.random.rand() / (i + 0.5),
        'loss': 1. / (i + 2.),
        'val_loss': 1. / (i + 0.5)
    })
    plotlosses.send()
    sleep(0.5)
Screenshot 2025-01-03 at 14 26 27

@stared stared changed the title Add PlotLosses figsize - feature request #139 Add PlotLosses figsize Jan 3, 2025
@stared stared merged commit 40c887c into master Jan 3, 2025
0 of 6 checks passed
@stared stared deleted the i139-figsize branch January 3, 2025 13:34
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 this pull request may close these issues.

1 participant