Skip to content
Piyush
Case study 04Machine learning · Open source

Tensorscope

Neural network training visualiser

An open-source tool that makes neural network training visible — live loss curves, activations and confusion matrices in the browser.

Role
Creator & maintainer
Timeline
Ongoing
Team
Open source
Year
2026

(01) Overview

Tensorscope is a lightweight dashboard I built while learning deep learning. Add two lines to a PyTorch training loop and watch your model learn in real time.

(02) The challenge

Existing tools are powerful but heavy. I wanted something a beginner could set up in a minute — something that explains what is happening instead of just plotting numbers.

(03) Approach

  1. Step 01

    Two-line integration

    A tiny Python client hooks into the training loop and streams metrics to the dashboard over WebSockets.

  2. Step 02

    Explain, don't just plot

    Annotated charts flag overfitting, exploding gradients and plateaus the moment they happen.

  3. Step 03

    Built for learning

    Sample notebooks walk through MNIST and CIFAR-10 step by step, with notes on what each chart is telling you.

(04) Highlights

  • Live loss and accuracy curves
  • Per-layer activation histograms
  • An interactive confusion matrix
  • pip install, zero configuration

(05) Results

GitHub stars
850+
Contributors
40+
Lines of code to integrate
2

(06) What I learned

“Building a tool to understand something is the fastest way to actually understand it. Every chart in Tensorscope started as a question I had while learning.”

(07) Built with

  • Python
  • PyTorch
  • FastAPI
  • WebSockets
  • Next.js
  • D3

Next project

Cortex

AI research assistant