question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Chart domains should update as training progresses

See original GitHub issue

TensorBoard version: https://pypi.org/project/tb-nightly/1.14.0a20190301/

Repro steps:

  1. Train with Keras.fit() using the TensorBoard callback for 5 epochs
  2. Open TensorBoard and look at the Scalars dashboard. See the loss and accuracy charts for epochs 1-5.
  3. Continue training with Keras.fit() using the TensorBoard callback for another 5 epochs

Expected: As long as I didn’t manually change the zoom of the charts, the chart should rescale to show me the new data (of the new epochs).

Actual: The data from the continued training gets added to the chart but I can see that it goes off the chart.

Relevant code (assuming notebook environment):

model.fit(x=x_train, 
          y=y_train, 
          epochs=5, 
          validation_data=(x_test, y_test), 
          callbacks=[tensorboard_callback])
%tensorboard --logdir logs
model.fit(x=x_train, 
          y=y_train, 
          epochs=10,
          initial_epoch=5,
          validation_data=(x_test, y_test), 
          callbacks=[tensorboard_callback])

Image of current behavior: image

Note: this is not specific to Keras.fit().

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:7
  • Comments:9 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
maksleventalcommented, Sep 12, 2019

yea the fact that domain doesn’t refit is definitely confusing to me.

1reaction
nfeltcommented, Dec 18, 2020

Thanks for your continued interest, folks. I’m happy to announce that our experimental new Time Series dashboard in TensorBoard 2.4.0 (most recent release) addresses the “refit on update” part of the issue. The new dashboard lets you view scalars, histograms, and images side-by-side in a combined view, and the scalar charts in the Time Series dashboard should auto-adjust the chart domain when new data is loaded as long as you haven’t changed the pan or zoom settings.

Please give that a try if you can and let us know if you have feedback. We recognize the “pan horizontally on update” part of the FR is not addressed by these changes, but as discussed above, it’s a little less clear how to automatically do the right thing in that case. For example, if the new data shifts in the Y axis such that none of it would be within the zoomed view, showing a blank chart could be confusing, but panning the chart to show the data could also be confusing.

We can consider at least showing a UI indication of new data to display in that case; it would also be helpful to know in more detail about exactly the behavior you would prefer to see there, and what is leading you to zoom in on the chart in the first place, since there might be other ways to approach this.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to use Learning Curves to Diagnose Machine Learning ...
Learning curves are a widely used diagnostic tool in machine learning for algorithms that learn from a training dataset incrementally. The model ...
Read more >
Using charts on project Dashboards to track progress - Asana
These charts help to instantly identify potential blockers in your team's work and move the project forward. The Dashboard tab is a good...
Read more >
A Complete Guide to Line Charts | Tutorial by Chartio
Line charts are a fundamental chart type generally used to show change in values across time. Learn how to best use this chart...
Read more >
Gantt Chart: The Ultimate Guide (with Examples)
Gantt charts are key to successful projects; learn everything you need to know ... progress in real time and drag and drop timelines...
Read more >
Prepare Active Directory and domains for Exchange Server
The previous /IAcceptExchangeServerLicenseTerms switch will not work starting with the September 2021 Cumulative Updates (CUs). You now must use ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found