explaingit

tensorflow/tensorboard

7,167TypeScriptAudience · researcherComplexity · 2/5Setup · easy

TLDR

TensorBoard is a browser-based dashboard that turns machine learning training data into interactive charts and visualizations, so you can track model performance and compare experiments in real time.

Mindmap

mindmap
  root((TensorBoard))
    What it does
      Track training metrics
      Compare experiments
      Visualize model graphs
    Dashboards
      Scalar charts
      Histograms
      Image viewer
      Audio viewer
    How to use
      Write logs from training
      Point at log folder
      Open browser
    Audience
      ML researchers
      Data scientists
Click or tap to explore — scroll the page freely

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

Things people build with this

USE CASE 1

Track your model's error rate and learning speed over time with real-time scalar charts.

USE CASE 2

Compare two training runs side by side to see whether a config change improved results.

USE CASE 3

Inspect the distribution of values inside your model's layers using histogram views.

USE CASE 4

Visualize your model's structure as a diagram to understand how layers connect.

Tech stack

TypeScriptPythonTensorFlow

Getting it running

Difficulty · easy Time to first run · 5min

Installed automatically with TensorFlow via pip, just run tensorboard --logdir=<your-logs> and open a browser.

In plain English

TensorBoard is a web-based dashboard for watching and understanding what happens when you train a machine learning model. When you run a training process, it generates a stream of data: how the error rate is changing, what the model's internal values look like over time, any images or audio the model produces. TensorBoard reads that data and turns it into charts and visualizations you can explore in a browser. The main views it provides include a scalar dashboard for tracking numbers over time (like how fast a model is learning or how its error rate is declining), a histogram dashboard for seeing the distribution of values inside the model's layers, an image viewer, an audio viewer, and a graph visualizer that draws the model's structure as a diagram. You can open multiple training runs side by side to compare, say, whether changing a setting made the model learn faster. To use it, your training code writes logs to a folder as it runs. You then point TensorBoard at that folder with a single command and open a browser to localhost. It works entirely offline with no internet connection required, which matters for research done behind firewalls or in data centers. TensorBoard is the official visualization tool bundled with TensorFlow, Google's machine learning framework, but it can also be used with other frameworks. It is installed automatically when you install TensorFlow via pip. The README is detailed on concepts and configuration options.

Copy-paste prompts

Prompt 1
I'm training a neural network and want to use TensorBoard to log my loss and accuracy. Show me the minimal Python code to write logs and launch TensorBoard to view them.
Prompt 2
I have two TensorBoard training runs and want to compare them side by side. How do I load both runs and what does the comparison view show me?
Prompt 3
Show me how to log images from my PyTorch training loop to TensorBoard so I can inspect model outputs visually.
Prompt 4
How do I add TensorBoard to an existing Keras training script to track metrics without changing my training code much?
Open on GitHub → Explain another repo

← tensorflow on gitmyhub — every repo by this author, as a profile.

Verify against the repo before relying on details.