LaDyS (Latent Dynamical Systems) Package
PyTorch benchmark scaffolding for latent variable models of neural dynamics.
The first API pass standardizes model construction, training/reporting contracts,
and a Lorenz synthetic dataset. Models accept (batch, time, neurons) tensors in
forward.
Initial Examples
ladys.models.cassm: thin adapter around the upstream sparse CASSMKalmanFilterSmootherimplementation. Install the originalcassmpackage or the local CASSM repository before constructing this model.ladys.models.gpfa: Gaussian-observation GPFA with FA initialization, EM updates, and RBF GP timescale learning. One full-dataset E/M update is treated as one benchmark epoch.
References Inspected
- Local planning note:
/Users/jonathanhuml/Desktop/npdb.md - CASSM Lorenz data source:
jonathanhuml/cassm/src/cassm/datasets - Local GPFA-MATLAB reference:
/Users/jonathanhuml/Desktop/gpfa-matlab
Smoke Usage
PYTHONPATH=src python3 examples/smoke_compare.py
Public Experiment API
LaDyS is organized around three public pieces:
ladys.models: model configs build PyTorchnn.Moduleinstances and carry their optimization settings.ladys.data.DataModule: creates PyTorch train/validation datasets and dataloaders.ladys.Experiment: gathers data, model, training, evaluation metrics, and artifacts into one inspectable run folder.
Run the canonical CLI path with a dataset and model:
ladys run -d lorenz -m cassm
The run folder includes config.json, history.csv, metrics.json,
predictions.npz, model.pt, and report.md. The CLI also accepts full YAML
experiment configs:
ladys run -c configs/experiment/gpfa_lorenz.yaml
ladys list datasets
ladys list models
Scaling Benchmark
PYTHONPATH=src python3 scripts/benchmark_lorenz_scaling.py \
--models cassm gpfa \
--neurons 10 100 1000 \
--seeds 1
The script writes lorenz_scaling_results.csv,
lorenz_scaling_results.npy, and time_vs_neurons.png under
artifacts/lorenz_scaling/.
Loss-Curve Benchmark
PYTHONPATH=src python3 scripts/benchmark_lorenz_loss_curves.py \
--models cassm gpfa \
--neurons 100 \
--epochs 30
The script writes lorenz_loss_history.csv, test_rate_mse_curves.png,
test_objective_curves.png, train_test_objective_curves.png, and per-model
held-out rate trace plots/CSVs under artifacts/lorenz_loss_curves/.
Preprocessing
Experiment YAML files can include a preprocessing block. The benchmark
scripts apply this to dataset observations before models see them, while
leaving Lorenz ground-truth rates unchanged for MSE metrics.
preprocessing:
observations:
name: smooth_firing_rate
sampling_precision: 20.0
kern_sd_ms: 50.0
configs/experiment/cassm_lorenz.yaml enables this CASSM-style spike
smoothing. configs/experiment/gpfa_lorenz.yaml leaves observations raw.
See docs/model_output_contract.md for the forward-output convention.
See docs/optimizer_contract.md for the benchmark epoch definition.
Documentation Site
Docs source lives under docs/ and is configured by mkdocs.yml. Model pages
under docs/models/ are generated from model class docstrings and config
defaults. Images referenced from model docstrings should live under
docs/assets/ and can be linked as assets/<filename>:
python scripts/generate_model_docs.py
python scripts/generate_model_docs.py --check
Install the docs extra and serve the site locally:
pip install -e ".[docs]"
mkdocs serve
The GitHub Pages workflow publishes the root homepage at
https://zkunkworks.com/ from website/ and the generated documentation at
https://zkunkworks.com/ladys/.
Metadata
Release files for ladys 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ladys-0.1.1.tar.gz | 28.8 kB | With provenance | Details for ladys-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ladys-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for ladys-0.1.1-py3-none-any.whl |
Total release size: 60.7 kB
Release files / ladys-0.1.1.tar.gz
| Download URL | ladys-0.1.1.tar.gz |
|---|---|
| Size | 28.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
629de5d0cd2281d3a3b5d1aa91768f4f50465c22dd401abc7e575f3dd4efa673
|
|
BLAKE2b-256 checksum How to use checksums |
709731a7ddc60c3b13b6d1f0c593aaa29924b53c4a7ebd22682eb6a89f26cd3a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 20, 2026.
Transparency logRelease files / ladys-0.1.1-py3-none-any.whl
| Download URL | ladys-0.1.1-py3-none-any.whl |
|---|---|
| Size | 31.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
89d3f71dc718b3996433d1187b0b16f46dfcda7c5d8bedf5e3d98a0c245f969a
|
|
BLAKE2b-256 checksum How to use checksums |
29bdc2ed3ca1738ca440bbdf7bce1143fee34185fd949c8f96d91704ebd71505
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 20, 2026.
Transparency logSecurity for ladys 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for ladys-0.1.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 20, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.