Repository navigation
autoSpectra 0.4.0
·
61 commits
to main
since this release
autoSpectra 0.4.0
Soil-property prediction from VisNIR and MIR spectra with four model families trained on the Open Soil Spectral Library (OSSL v1.2).
Model families
- Cubist + PCA(120), VisNIR and MIR. A faithful replication of Safanelli et al. (2025). Under the paper's own protocol (10-fold CV, S2 Table) it reproduces the published results within 0.01–0.02 R².
- Masked soilVAE, VisNIR and MIR. Accepts instruments that cover only part of the spectral range: VisNIR organic carbon keeps R² 0.84–0.87 whether the instrument starts at 350 or at 1350 nm.
Pre-trained models are on Zenodo as a separate dataset: 10.5281/zenodo.23950129. Install them with download_ossl_models().
Highlights
- One preprocessing path shared by training and prediction.
- Applicability domain calibrated: about 1% of held-out spectra are flagged.
- Conformal prediction intervals calibrated on held-out samples. 68% intervals cover 67–69%, and any level from 50% to 99% is available.
- Validation reported three ways: random 10-fold CV (comparison with the paper), held-out test per instrument range, and leave-one-dataset-out.
- Get-started vignette; every README table is generated from the trained models.
Data policy. No OSSL data is redistributed. Users download OSSL from its official source. The published models contain only model parameters and aggregate statistics, and every archive is checked by audit_release_archive().
See NEWS.md for the full list of changes, including the fixes from the November 2026 audit.