A worked, end-to-end example of the nirs4all reproduction-document publisher. A partial least-squares model is calibrated on near-infrared spectra to predict protein content, using a min–max scaling and standard-normal-variate preprocessing chain. The deposited .n4a bundle carries the archived pipeline and fitted artifacts. A separately declared browser companion demonstrates the preprocessing and PLS on an included synthetic dataset using approximate NIPALS PLS and its own deterministic folds. Its live scores are independent of the published values; method references remain available in the bibliography.
Archive deposit; current reading and execution have not been evaluated.
| Split | 5-fold cross-validation (out-of-fold predictions) |
|---|---|
| Cross-validation | 5-fold |
| Scoring metric | RMSE / R² / RPD |
| Fold strategy | weighted_average |
| Dataset | Synthetic NIRS protein calibration set |
|---|---|
| Target | protein (% w/w) |
| Samples | 120 |
| Wavelengths | 100 |
| Note | Synthetic, deterministic (seed = 42). Included only to demonstrate the live replay; a real paper would reference a DOI-pinned nirs4all-datasets entry. |
Run this approximate browser companion on your data, entirely in your browser. Upload a CSV (rows = samples; one column is the target, the rest are the spectrum) — for vendor spectra files, open the full nirs4all-web app. Nothing is uploaded to a server.
Runs the separately declared reference preprocessing + model on the dataset under leakage-safe 5-fold cross-validation, recomputing out-of-fold predictions and scores entirely in your browser. Synthetic demonstration dataset (deterministic, seed=42, 120 samples) included so the deposited pipeline can be re-run live; no redistribution constraints.
Approximate. This is an independent pure-JS reference engine
(NIPALS PLS) with a deterministic 5-fold split. It demonstrates the declared browser plan;
it does not execute the deposited .n4a or reproduce its exact implementation, folds,
or published scores. Current owner reading and native execution remain separate.
Deposited manuscripts keep their publisher's copyright; datasets keep their own license / DOI terms. The reproduction code and page are dual-licensed open-source.
| Reading status | archive_only |
|---|---|
| Reading detail | Archive deposit; current reading and execution have not been evaluated. |
| Raw downloadable file SHA-256 | c1d99c12d44233ddcb43c9643cfb7b0237c308dbee7fdaca406eefea54b3dff0 |
| Execution | Not evaluated; Papers does not load fitted objects |
| Source | nirs4all (examples/exports) @ D02_base_model |
Raw historical copies do not establish current admission. Owner documents are read-only evidence. Use separately supplied frozen reproduction instructions.
Cite the paper (below) for the science; cite this reproduction page / the deposited .n4a by its bundle fingerprint when referencing the exact pipeline.
@article{beurier2026,
author = {Gregory Beurier and nirs4all ecosystem},
title = {Reproducible PLS calibration of protein content from near-infrared spectra},
journal = {Demonstration bundle},
year = {2026}
}cff-version: 1.2.0
message: "If you use this reproduction bundle, please cite the associated paper."
title: "Reproducible PLS calibration of protein content from near-infrared spectra"
abstract: "A worked, end-to-end example of the nirs4all reproduction-document publisher. A partial least-squares model is calibrated on near-infrared spectra to predict protein content, using a min–max scaling and standard-normal-variate preprocessing chain. The deposited .n4a bundle carries the archived pipeline and fitted artifacts. A separately declared browser companion demonstrates the preprocessing and PLS on an included synthetic dataset using approximate NIPALS PLS and its own deterministic folds. Its live scores are independent of the published values; method references remain available in the bibliography. "
authors:
- family-names: "Beurier"
given-names: "Gregory"
affiliation: "CIRAD"
- name: "nirs4all ecosystem"
identifiers:
- type: other
value: "sha256-file:c1d99c12d44233ddcb43c9643cfb7b0237c308dbee7fdaca406eefea54b3dff0"
description: "Exact downloadable file SHA-256; not scientific identity"
keywords:
- "NIRS"
- "PLS"
- "preprocessing"
- "reproducibility"
- "chemometrics"
references:
- type: article
title: "Scikit-learn: Machine Learning in Python (implementation reference)"
authors:
- family-names: "Pedregosa"
given-names: "F. et al."
journal: "Journal of Machine Learning Research 12, 2825–2830"
year: 2011
- type: article
title: "Standard Normal Variate Transformation and De-trending of Near-Infrared Diffuse Reflectance Spectra"
authors:
- family-names: "Barnes"
given-names: "R. J."
- family-names: "Dhanoa"
given-names: "M. S."
- family-names: "Lister"
given-names: "S. J."
journal: "Applied Spectroscopy 43(5), 772–777"
year: 1989
doi: "10.1366/0003702894202201"
- type: article
title: "PLS-regression: a basic tool of chemometrics"
authors:
- family-names: "Wold"
given-names: "S."
- family-names: "Sjöström"
given-names: "M."
- family-names: "Eriksson"
given-names: "L."
journal: "Chemometrics and Intelligent Laboratory Systems 58(2), 109–130"
year: 2001
doi: "10.1016/S0169-7439(01)00155-1"