Skip to content

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.

2 participants