Package 'nirs4all'

Title: Portable nirs4all Aggregate Binding
Description: Aggregates the nirs4all formats, IO, datasets, methods, 'dag-ml', and 'dag-ml-data' language bindings into one portable package surface without reimplementing their parsing, numerical, or pipeline logic. The aggregated engines remain the source of truth and are delegated to at run time.
Authors: nirs4all contributors [aut, cre, cph]
Maintainer: nirs4all contributors <[email protected]>
License: MIT + file LICENSE
Version: 0.1.0
Built: 2026-06-12 11:44:16 UTC
Source: https://github.com/GBeurier/nirs4all-lite

Help Index


Portable nirs4all Aggregate Binding

Description

Aggregates the low-level nirs4all bindings without reimplementing parsing, dataset assembly, DAG orchestration, or numerical methods.


Access upstream nirs4all domains

Description

Convenience accessors for the upstream domains exposed by the aggregate nirs4all R package.

Usage

formats()

io()

datasets()

methods()

dag_ml()

dag_ml_data()

Value

The loaded namespace for the requested upstream domain.


Load a nirs4all JSON/YAML pipeline definition

Description

Parses the same pipeline definition envelope as full Python nirs4all.pipeline.PipelineConfigs, restricted to the current portable operator subset. This validates syntax and operator declarations only; it does not execute the pipeline.

Usage

nirs4all_load_pipeline(source)

nirs4all_portable_class_names(definition)

Arguments

source

A direct step list, mapping with pipeline or steps, JSON/YAML path, or JSON/YAML text.

definition

A parsed pipeline definition or step list.

Value

nirs4all_load_pipeline() returns a nirs4all_pipeline_definition list. nirs4all_portable_class_names() returns class names in traversal order.


Load an upstream nirs4all binding

Description

Loads an upstream binding by key or fails with a diagnostic listing the tried candidate packages.

Usage

nirs4all_require(name)

Arguments

name

Upstream key such as "formats" or "methods".

Value

The loaded namespace for the first installed candidate package.


Execute portable nirs4all pipeline fixtures

Description

Executes the portable Kennard-Stone, SNV, Savitzky-Golay, and PLS subset by delegating to the installed n4m methods R binding. The aggregate does not implement numerical kernels itself.

Usage

nirs4all_run_portable_pipeline(source, dataset)

nirs4all_parse_execution_plan(source)

Arguments

source

A JSON/YAML path, JSON/YAML text, pipeline list, or normalized pipeline definition accepted by nirs4all_load_pipeline().

dataset

List containing X, y, and optionally rows/cols or n_samples/n_features. Flat X is interpreted as row-major.

Value

nirs4all_run_portable_pipeline() returns a list with the same contract as the Python and WASM bindings: name, rows, cols, split, preprocessing, variants, selected, and targets. nirs4all_parse_execution_plan() returns the parsed execution subset.


List nirs4all upstream bindings

Description

Returns the upstream binding registry used by the R aggregate package.

Usage

nirs4all_upstreams()

Value

A data frame with upstream keys, availability flags, candidate package names, and roles.