Skip to content

deepSTRF 0.1.0

Latest

Choose a tag to compare

@urancon urancon released this 03 Jun 08:56
· 4 commits to develop since this release

First public release of deepSTRF — a PyTorch library and benchmark for fitting sensory neural responses with deep neural network models.

pip install deepSTRF

Highlights

  • Datasets — a zoo of auditory neural-recording datasets (NS1, CRCNS AA1/AA2/AA4, NAT4, CRCNS-AC1, Espejo, Downer 2025, Wingert 2026, Le 2025, Alice EEG) on a common NeuralDataset API, with download=True auto-download where data is publicly mirrored. Optional raw-waveform input with a wav2spec front-end zoo.
  • Models — a four-slot encoding template (wav2spec → prefiltering → core → readout): Linear/LN, ConvNet2D, Transformer, StateNet (GRU/Mamba/S4/LMU), DNet, NRF. Strictly causal in eval mode, output rank (B, N, R=1, T).
  • Metrics — NaN-aware functional metrics (corrcoef, normalized corrcoef / cc_norm, FVE, Sahani–Linden SNR, CCmax, coherence) and Poisson/MSE losses.
  • Training — an opt-in Fitter (early stopping + best-checkpoint), multi-seed sweeps (fit_multi_seed), optional W&B / TensorBoard loggers.
  • Pretrained weights — load checkpoints from the Hugging Face Hub via from_pretrained.
  • Ships inline type hints (py.typed).

Documentation: https://deepstrf.readthedocs.io/