API referenceΒΆ
Leaf modules are listed explicitly rather than recursively: several are
re-exported from their package __init__, and a recursive sweep documents those
objects twice, which Sphinx reports as a duplicate description.
The user-facing inference pipeline: LR spectrum in, SR spectrum and redshift out. |
|
Filesystem locations used by specsr. |
|
On-demand model weight fetching from the Hugging Face Hub. |
|
Configuration loading for the training stages. |
|
Environment-variable overrides for the training scripts. |
|
Residual and power-spectrum statistics used by the paper figures. |
|
Gaussian emission-line fitting, and the S/N derived from it. |
|
The common wavelength grid, and flux-conserving resampling onto it. |
|
Augmentation of paired spectra, with explicit provenance. |
|
Build paired training products from the raw JADES release. |
|
Discovery and reading of raw JADES NIRSpec |
|
Combine the medium gratings into one high-resolution reference. |
|
Torch datasets over the paired spectra products. |
|
Group-aware train/test splitting for the augmented spectra datasets. |
|
Building blocks shared across the SR1, ZHead and SR2 architectures. |
|
SR1 β the super-resolution backbone (stage 1 of 3). |
|
ZHead β redshift inference from a super-resolved spectrum (stage 2 of 3). |
|
SR2 β physics-informed residual refiner (stage 3 of 3). |
|
Rest-frame spectral feature catalogue. |
|
Loss functions for the SR1 and SR2 stages. |
|
Redshift normalisation and bounded decoding. |
|
Input representations for the redshift head. |