No packages match

nirs4all - Composable Near-Infrared Spectroscopy Pipelines for R

Provides an R-facing pipeline API for near-infrared spectroscopy. Composes portable preprocessing (including local and robust normalization, area normalization, detrending, train-fitted MSC and Savitzky-Golay filtering) and partial least squares operations from 'n4m' with explicit R learner controllers, including native sparse PLS-DA and post-SIMPLS group-sparse PLS, optional 'parsnip' and 'mlr3' regression and classification adapters, 'ranger' probability-forest and optional 'xgboost' regression and classification controllers, and optional CPU 'torch' regression and classification controllers. Offers local fit, predict, portable 'n4m' model and bounded trained-pipeline serialization, and a native 'dagml' cross-validation, fixed-candidate selection, refit and replay path for single-node pipelines and optional sequential n4m transform nodes, including fixed-candidate selection and parallel preprocessing branches joined and composed with sequential preprocessing before a model. Native-only n4m refit artifacts are detached into portable N4MM bytes in the DAG bundle; other persisted refit models and transform states remain R sidecars. Both can predict new R samples. Optional 'nirs4allformats' datasets feed local and native paths with numeric or categorical targets while preserving sample and spectral-axis identities. Shared native dense-regression workflows provide out-of-fold selection, resumable hyperparameter search, experiment result views, held-out split conformal calibration and frozen robustness audits. Complete native multimodal predictors preserve aligned raw source schemas and portable fitted state.

Last updated

3.17 score 98 scripts