Package: nirs4all 0.8.0

Gregory Beurier

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.

Authors:Gregory Beurier [aut, cre], nirs4all contributors [ctb]

nirs4all_0.8.0.tar.gz
nirs4all_0.8.0.zip(r-4.7-any)nirs4all_0.8.0.zip(r-4.6-any)nirs4all_0.8.0.zip(r-4.5-any)
nirs4all_0.8.0.tgz(r-4.6-any)nirs4all_0.8.0.tgz(r-4.5-any)
nirs4all_0.8.0.tar.gz(r-4.7-any)nirs4all_0.8.0.tar.gz(r-4.6-any)
nirs4all_0.8.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
nirs4all/json (API)

# Install 'nirs4all' in R:
install.packages('nirs4all', repos = c('https://gbeurier.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/gbeurier/nirs4all-r/issues

On CRAN:

Conda:

2.54 score 127 exports 4 dependencies

Last updated from:d1d7517cb4. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-develOK167
source / vignettesOK212
linux-releaseOK167
macos-releaseOK198
macos-oldrelOK111
windows-develOK95
windows-releaseOK130
windows-oldrelOK96
wasm-releaseOK107

Exports:dag_mldag_ml_datadatasetsformatsiomethodsnirs4all_area_normalizationnirs4all_calibratenirs4all_concatnirs4all_conformal_metricsnirs4all_controllernirs4all_core_archivenirs4all_core_archive_predictnirs4all_core_archive_predict_methodsnirs4all_core_multimodal_adapternirs4all_dag_cv_refit_predictnirs4all_dag_predictnirs4all_dag_role_adapternirs4all_datasetnirs4all_detrendnirs4all_emscnirs4all_execution_profilesnirs4all_expand_portable_pipelinesnirs4all_export_calibratednirs4all_export_native_modelnirs4all_export_pipelinenirs4all_export_trained_pipelinenirs4all_fitnirs4all_fit_role_recipenirs4all_from_formatsnirs4all_generatenirs4all_glmnetnirs4all_group_sparse_plsnirs4all_import_native_modelnirs4all_import_trained_pipelinenirs4all_import_workspacenirs4all_lmnirs4all_loadnirs4all_load_calibratednirs4all_load_pipelinenirs4all_load_tuningnirs4all_local_implementation_registrynirs4all_local_snvnirs4all_mlr3nirs4all_mlr3_classifiernirs4all_mscnirs4all_multimodal_archive_predictnirs4all_multimodal_exportnirs4all_multimodal_fitnirs4all_multimodal_loadnirs4all_multimodal_predictnirs4all_multimodal_retrainnirs4all_n4a_inspectnirs4all_n4a_predictnirs4all_n4a_producenirs4all_n4a_readnirs4all_n4a_retrainnirs4all_n4a_writenirs4all_n4m_methodnirs4all_n4m_selectornirs4all_native_augmentationnirs4all_native_exportnirs4all_native_loadnirs4all_native_multimodal_exportnirs4all_native_multimodal_loadnirs4all_native_predictnirs4all_native_retrainnirs4all_native_runnirs4all_native_splitnirs4all_native_splitternirs4all_open_experimentnirs4all_open_workspacenirs4all_parse_execution_plannirs4all_parsnipnirs4all_parsnip_classifiernirs4all_pipelinenirs4all_pipeline_exportnirs4all_pipeline_from_portablenirs4all_pipeline_loadnirs4all_pipeline_predictnirs4all_pipeline_retrainnirs4all_plsnirs4all_portable_class_namesnirs4all_predictnirs4all_predict_calibratednirs4all_predict_probanirs4all_r_pipeline_from_recipenirs4all_rangernirs4all_ranger_classifiernirs4all_requirenirs4all_result_comparenirs4all_result_predictionsnirs4all_result_viewnirs4all_resume_tuningnirs4all_retrainnirs4all_robust_snvnirs4all_robustnessnirs4all_runnirs4all_run_multimodalnirs4all_run_pipelinenirs4all_run_portable_pipelinenirs4all_savenirs4all_save_experimentnirs4all_savgolnirs4all_snvnirs4all_spanirs4all_sparse_pls_danirs4all_torch_mlpnirs4all_torch_mlp_classifiernirs4all_torch_modulenirs4all_torch_module_classifiernirs4all_tunenirs4all_tuning_exportnirs4all_tuning_predictnirs4all_upstreamsnirs4all_workflow_exportnirs4all_workflow_loadnirs4all_workflow_predictnirs4all_workflow_retrainnirs4all_workspace_closenirs4all_workspace_exportnirs4all_workspace_predictnirs4all_workspace_predictionsnirs4all_workspace_runsnirs4all_workspace_sessionnirs4all_xgboostnirs4all_xgboost_classifier

Dependencies:digestjsonliten4myaml

Readme and manuals

Help Manual

Help pageTopics
Define an area-normalization preprocessing stepnirs4all_area_normalization
Calibrate and audit frozen native regression predictionsnirs4all_calibrate nirs4all_conformal_metrics nirs4all_export_calibrated nirs4all_load_calibrated nirs4all_predict_calibrated nirs4all_robustness
Concatenate parallel preprocessing branchesnirs4all_concat
Define learner controllersnirs4all_controller nirs4all_glmnet nirs4all_lm nirs4all_pls nirs4all_ranger nirs4all_ranger_classifier
Replay a native Core N4a package through native DAG and Methods processesnirs4all_core_archive nirs4all_core_archive_predict nirs4all_core_archive_predict_methods nirs4all_core_multimodal_adapter
Run a native DAG-ML CV, refit and predict campaign from R matricesnirs4all_dag_cv_refit_predict
Predict new samples from a native DAG-ML refit artifactnirs4all_dag_predict
Prepare a native Methods multimodal DAG process adapternirs4all_dag_role_adapter
Construct aligned datasets and replay complete multimodal statenirs4all_dataset nirs4all_multimodal_archive_predict nirs4all_multimodal_export nirs4all_multimodal_fit nirs4all_multimodal_load
Define a polynomial detrend preprocessing stepnirs4all_detrend
Access upstream domain namespacesdag_ml dag_ml_data datasets formats io methods nirs4all_domains
Define a train-fitted Extended Multiplicative Scatter Correction stepnirs4all_emsc
Native execution profiles and the R federation recordnirs4all_execution_profiles
Expand a bounded Python-style generator recipe into R pipelinesnirs4all_expand_portable_pipelines
Export a fitted native pipeline as portable N4MM bytesnirs4all_export_native_model
Export a qualified R pipeline recipenirs4all_export_pipeline
Export a trained native pipeline for R/Python replaynirs4all_export_trained_pipeline
Fit and predict with a local R pipelinenirs4all_fit nirs4all_predict nirs4all_predict_proba predict.nirs4all_fitted
Fit a recipe of generic n4m role stepsnirs4all_fit_role_recipe
Convert a nirs4all-formats spectral dataset for modellingnirs4all_from_formats
Native group-sparse PLS regression controllernirs4all_group_sparse_pls
Import native N4MM pipeline state against an explicit R recipenirs4all_import_native_model
Import a trained native pipeline from R or Pythonnirs4all_import_trained_pipeline
Read a Python-style portable pipeline definitionnirs4all_load_pipeline
Use the upstream DAG-ML loss and metric registrynirs4all_local_implementation_registry
Define a local SNV preprocessing stepnirs4all_local_snv
Optional mlr3 regression learner controllernirs4all_mlr3
Optional mlr3 classification learner controllernirs4all_mlr3_classifier
Define a train-fitted Multiplicative Scatter Correction stepnirs4all_msc
Canonical V1 .n4a operations and owner-neutral exchange through the native Core CLInirs4all_n4a nirs4all_n4a_inspect nirs4all_n4a_predict nirs4all_n4a_produce nirs4all_n4a_read nirs4all_n4a_retrain nirs4all_n4a_write
Native n4m linear-method controllernirs4all_n4m_method
Define a train-fitted native n4m variable selectornirs4all_n4m_selector
Specify a seeded n4m training-only augmentationnirs4all_native_augmentation
Run and replay the shared native archive workflownirs4all_native_export nirs4all_native_load nirs4all_native_predict nirs4all_native_retrain nirs4all_native_run
Split sample identities with n4m's native enginenirs4all_native_split
Specify an n4m native sample splitternirs4all_native_splitter
Translate a portable pipeline definitionnirs4all_parse_execution_plan
Optional parsnip regression controllernirs4all_parsnip
Optional parsnip classification controllernirs4all_parsnip_classifier
Define a local R spectroscopy pipelinenirs4all_pipeline nirs4all_savgol nirs4all_snv
Convert a portable JSON/YAML recipe into an R pipelinenirs4all_pipeline_from_portable
List classes in a portable pipeline definitionnirs4all_portable_class_names
Read an R-native ML/DL pipeline recipenirs4all_r_pipeline_from_recipe
Load an upstream domain namespacenirs4all_require
Inspect native results and save verified experiment directoriesnirs4all_open_experiment nirs4all_result_compare nirs4all_result_predictions nirs4all_result_view nirs4all_save_experiment
Retrain a fitted pipeline on fresh datanirs4all_retrain
Define a robust SNV preprocessing stepnirs4all_robust_snv
Run and persist a local native DAG regression campaignnirs4all_run nirs4all_workflow_export nirs4all_workflow_load nirs4all_workflow_predict nirs4all_workflow_retrain
Native multimodal workflows with explicit source policiesnirs4all_multimodal_predict nirs4all_multimodal_retrain nirs4all_native_multimodal_export nirs4all_native_multimodal_load nirs4all_run_multimodal
Catalog native pipeline workflowsnirs4all_pipeline_export nirs4all_pipeline_load nirs4all_pipeline_predict nirs4all_pipeline_retrain nirs4all_run_pipeline
Run a Python-style JSON/YAML portable pipelinenirs4all_run_portable_pipeline
Save and load a fitted R pipelinenirs4all_load nirs4all_save
Define a train-fitted n4m SPA variable-selection stepnirs4all_spa
Native n4m sparse PLS-DA classification controllernirs4all_sparse_pls_da
R torch multilayer-perceptron regression controllernirs4all_torch_mlp
Optional R torch multilayer-perceptron classification controllernirs4all_torch_mlp_classifier
Optional R torch module regression controllernirs4all_torch_module
Optional R torch module classification controllernirs4all_torch_module_classifier
Generate constrained candidates and run native resumable tuningnirs4all_generate nirs4all_load_tuning nirs4all_resume_tuning nirs4all_tune nirs4all_tuning_export nirs4all_tuning_predict
Discover upstream R packagesnirs4all_upstreams
Portable native sessions in a modern SDK workspacenirs4all_import_workspace nirs4all_open_workspace nirs4all_workspace_close nirs4all_workspace_export nirs4all_workspace_predict nirs4all_workspace_predictions nirs4all_workspace_runs nirs4all_workspace_session
Optional XGBoost regression and classification controllersnirs4all_xgboost nirs4all_xgboost_classifier