Topological and spectral analysis of neural representations.
Project description
tda-repr
Topological and spectral analysis toolkit for neural network representations.
tda-repr helps you monitor hidden-layer geometry during training and compare it to benchmark quality metrics (loss/accuracy/F1), with reproducible logs and plots.
It supports iterative research workflows with explicit run artifacts: configuration metadata, per-epoch structured logs, progress figures, checkpoint snapshots, and correlation reports. This makes comparisons between datasets, architectures, and fine-tune regimes reproducible and auditable.
tda_repr/ is the library. tools/ contains scripts used in the thesis/repro.
Run commands from the repo root. The tools/ scripts are for the repo checkout (not the PyPI package).
Install (from source)
python3 -m venv .venv
source .venv/bin/activate
python -m pip install -U pip
python -m pip install -r requirements.txt
python -m pip install -e .
Run an experiment
Interactive:
python -m tools.run_experiment --interactive --interactive_ui tui
Non-interactive:
python -m tools.run_experiment \
--no-interactive \
--task cv \
--dataset cifar10 \
--model resnet18 \
--device cpu \
--finetune full \
--epochs 20 \
--batch_size 128 \
--download
Outputs go to runs/exp_*/ (meta.json, metrics.jsonl, figures/, checkpoints/, correlations_report/, analysis/).
Analysis after successful run
Correlation report:
python -m tools.correlation_report --run_dir runs/<run_dir>
Embedding quality / layer selection:
python -m tools.evaluate_embeddings --run_dir runs/<run_dir> --checkpoint best_main --split val --device cpu --download --skip_existing
Early-stop sweep (offline):
python -m tools.repr_early_stop_sweep --roots runs --skip_existing
Reproducibility
Zenodo [ https://doi.org/10.5281/zenodo.20114914 ] archive (saved_runs/) -> figures + 3 case tables:
./reproduction_cases.sh
Full regeneration (runs/) -> all remaining tables:
./reproduction_runs.sh
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tda_repr-0.1.4.tar.gz.
File metadata
- Download URL: tda_repr-0.1.4.tar.gz
- Upload date:
- Size: 34.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1993f2856a7c803f5f07423fe72af923c1336dfab5f331deba537780f8af5e74
|
|
| MD5 |
45590e4e46a8a841491af7b9e86614bb
|
|
| BLAKE2b-256 |
326928ecb53825fe87565d91369105d82db9e165dc07bce677701ea2a77b1c7c
|
File details
Details for the file tda_repr-0.1.4-py3-none-any.whl.
File metadata
- Download URL: tda_repr-0.1.4-py3-none-any.whl
- Upload date:
- Size: 37.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
099e1d3cd45c107730649060ee4cab4719326948b5ebe92dad6c4116747ec082
|
|
| MD5 |
bbb2b7b744bb5d115db3e5f06a534c21
|
|
| BLAKE2b-256 |
eb03ad63f14764023665cdae2c4307e1d294ac5703702f06eaf3b12a8a1dbe60
|