schema_version: 1
id: detrend_ridge
name: Detrend · SNV · Ridge
summary: Fast linear regression — polynomial detrend + SNV feeding an L2-regularised Ridge model.
description: |
  A lightweight, fast linear baseline. A polynomial detrend removes low-order baseline
  curvature, SNV handles scatter, and a Ridge (L2) regressor gives a well-conditioned,
  high-dimensional linear fit without the latent-variable tuning of PLS. A good sanity
  check and a strong baseline on near-linear targets.
framework: nirs4all
kind: recipe
task: regression
tags: [ridge, detrend, snv, linear]
version: "1.0.0"
license: CeCILL-2.1 OR AGPL-3.0-or-later
created_at: "2026-06-17"
authors:
  - name: Gregory Beurier
    email: gregory.beurier@cirad.fr
    affiliation: CIRAD
recipe:
  format: nirs4all/pipeline-config
  path: pipeline.json
reference:
  source: nirs4all-datasets
  name: regression_demo
evaluation:
  metric: rmse
  task: regression
  expected:
    val: { value: 0.140, tol: 0.04 }
    test: { value: 0.165, tol: 0.05 }
  nirs4all_version: ">=0.10,<0.11"
  status: unvalidated
provenance:
  generated_by: nirs4all 0.10.2
governance:
  status: draft
  visibility: public
  trust: community
