Yanked
This release has been yanked by its maintainers, and will be ignored by installers, except when explicitly specified.
Reason given by maintainers: "Renamed to 'ndtracker'"
Neural Dimensionality Tracker (NDT)
High-frequency monitoring of neural network representational dimensionality during training. Track how your network's internal representations evolve, detect phase transitions, and gain insights into the learning dynamics of deep neural networks.
Features
- Minimal Intrusion: Add dimensionality tracking to any PyTorch model with just 3 lines of code
- Architecture-Agnostic: Automatic support for MLPs, CNNs, Transformers, and Vision Transformers
- Multiple Metrics: Track 4 complementary dimensionality measures
- Jump Detection: Automatically identify phase transitions during training
- Rich Visualization: Built-in plotting with Matplotlib and interactive Plotly dashboards
- Flexible Export: Save results as CSV, JSON, or HDF5
- Production-Ready: Fully typed, tested (>90% coverage), and documented
Installation
pip install neural-dimensionality-tracker
Quick Start
import torch.nn as nn
from ndt import HighFrequencyTracker
# Your model
model = nn.Sequential(
nn.Linear(784, 512), nn.ReLU(),
nn.Linear(512, 256), nn.ReLU(),
nn.Linear(256, 10)
)
# Create tracker
tracker = HighFrequencyTracker(model, sampling_frequency=10)
# Training loop
for step, (x, y) in enumerate(dataloader):
output = model(x)
loss = criterion(output, y)
loss.backward()
optimizer.step()
tracker.log(step, loss.item()) # One line!
# Analyze
results = tracker.get_results()
from ndt import plot_phases
plot_phases(results, metric="stable_rank")
Documentation
See examples/ for complete working examples and detailed usage guides.
License
MIT License - see LICENSE file for details
Metadata
Release files for neural-dimensionality-tracker 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| neural_dimensionality_tracker-0.1.0.tar.gz | 32.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| neural_dimensionality_tracker-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 65.2 kB
Release files / neural_dimensionality_tracker-0.1.0.tar.gz
| Download URL | neural_dimensionality_tracker-0.1.0.tar.gz |
|---|---|
| Size | 32.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
21030485431958b845d35834dd9950b6ddf702fa88d9f9611db40af937461dc9
|
|
BLAKE2b-256 checksum How to use checksums |
c3c38e73732289fc596fea36d8b48f483e6cf62df9f2787f40f267942c4f2511
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.19
|
Release files / neural_dimensionality_tracker-0.1.0-py3-none-any.whl
| Download URL | neural_dimensionality_tracker-0.1.0-py3-none-any.whl |
|---|---|
| Size | 32.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
dc22940122905a5f66d1ac9ff05f69d2704d94bccdcecd55378dd48aed719899
|
|
BLAKE2b-256 checksum How to use checksums |
ff73888fb868e030ef5df38826c6114c52e073244c1f9e5d7380e07679fb611a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.19
|