A VS Code extension for visualizing and debugging the training process of machine learning models.
- Training Visualization: Visualize the training process through dimensionality reduction.
- Time-Travelling Debugging: Step through training events to understand model behavior over time.
- Influence Analysis: Inspect influence functions to see how training data affects predictions.
- Interactive Tools: Exploring the Representation Space with Multiple Functions.
-
Setup Environment
-
Backend (Python): Run the setup script below (make sure you have installed Anaconda or Miniconda):
bash setup.sh
This will create a Python 3.10 environment named "visualizer" and install the required dependencies.
-
Frontend (Node.js): We assume you have Node.js installed. Navigate to the
webandextensiondirectories to install the dependencies:# Install web dependencies cd web npm install cd .. # Install extension dependencies cd extension npm install
-
-
Launch
- Backend Server:
- Open a terminal and navigate to the project root directory.
- Activate the Conda environment:
conda activate visualizer
- Start the backend server:
cd tool/server python server.py
- Frontend (Run Extension):
- Open the project root directory In VS Code, press
Ctrl+Shift+Dor click the "Run and Debug" icon in the sidebar. - Select the "Run Extension" configuration from the dropdown menu.
- Press
F5or click the "Start Debugging" button. - This will open a new "Extension Development Host" window where the extension is running.

- Open the project root directory In VS Code, press
- Backend Server:
💭 This is only a temporary way to start up the extension; the final version will switch to a regular VSCode extension that can be imported and used directly. For detailed usage instructions, see Doc for time-travelling-visualizer.
.
├── extension/ # 📦 VS Code Extension Source Code
├── tool/ # 🐍 Python Backend & Visualization Methods
├── web/ # 🌐 Frontend Web Application (Loaded In Extension)
├── setup.sh # 🚀 Setup Script
└── README.md
- Code Refactoring:
- Decouple various visualization algorithm modules.
- Elegantly encapsulate the communication between the extension, web page, and backend.
- Refactor and resolve code smells.
- Broader Task Compatibility:
- Extend support to more training tasks, such as generative and contrastive learning tasks.
- Features in Development:
- The Token Panel and Influence Function features are currently under development.
