Skip to main content

Portable nirs4all aggregate binding over formats, IO, methods, dag-ml, and dag-ml-data (datasets optional)

Project description

Python Binding

Distribution name: nirs4all-core

Import name: nirs4all_lite

This binding intentionally avoids the nirs4all import name so it can be installed next to the full Python nirs4all package during parity checks. The canonical source repository is nirs4all-core; only the Python distribution carries the -core suffix because the production nirs4all Python package already owns the bare name.

Additive import facades are available for governed topology work:

  • n4a mirrors the full nirs4all_lite aggregate surface.
  • nirs4all_core advertises the release-gated core contract only: inspection, validation, capability reporting, release topology, and facade access. Legacy execution helpers remain reachable through passthrough for compatibility, but are excluded from nirs4all_core.__all__.

Portable Execution

nirs4all_lite.run_portable_pipeline(source, dataset) executes the shared portable JSON/YAML subset through the nirs4all-methods Python bindings:

  • KennardStoneSplitter
  • StandardNormalVariate / SNV
  • SavitzkyGolay
  • sklearn.cross_decomposition.PLSRegression
  • _range_ sweeps over n_components

Savitzky-Golay defaults to mode="interp" for full Python nirs4all parity and preserves explicit methods-backed modes (mirror, constant, nearest, wrap, interp) plus cval.

The aggregate does not implement numerical kernels. Install the optional methods extra, or make n4m and pls4all importable, before calling it:

python -m pip install "nirs4all-core[methods]"

The strict local parity gate compares all shared fixtures against the full Python nirs4all oracle and reports max prediction/RMSE deltas on failure:

PYTHONPATH=bindings/python/src:/path/to/nirs4all-methods/bindings/python/src \
PLS4ALL_LIB_PATH=/path/to/libn4m.so \
NIRS4ALL_LITE_REQUIRE_METHODS_PARITY=1 \
python -m unittest bindings/python/tests/test_execution_parity.py -v

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nirs4all_core-0.2.13.tar.gz (40.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nirs4all_core-0.2.13-py3-none-any.whl (28.7 kB view details)

Uploaded Python 3

File details

Details for the file nirs4all_core-0.2.13.tar.gz.

File metadata

  • Download URL: nirs4all_core-0.2.13.tar.gz
  • Upload date:
  • Size: 40.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for nirs4all_core-0.2.13.tar.gz
Algorithm Hash digest
SHA256 2fc9c4ab48023901565625227e32b1796664391586f07537f703463f7f1f815e
MD5 c37baf379c96760424ddf1ed49463c98
BLAKE2b-256 ca8ab36442eabd7a81f806a2cb4dfeee50455ca485396bc90af8a79afb9374f7

See more details on using hashes here.

Provenance

The following attestation bundles were made for nirs4all_core-0.2.13.tar.gz:

Publisher: release-python.yml on GBeurier/nirs4all-core

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file nirs4all_core-0.2.13-py3-none-any.whl.

File metadata

  • Download URL: nirs4all_core-0.2.13-py3-none-any.whl
  • Upload date:
  • Size: 28.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for nirs4all_core-0.2.13-py3-none-any.whl
Algorithm Hash digest
SHA256 94ded2c9488ae9e1819800cf3f8cbc76bc81d54f4d13ba49b18abcdcb1f38b68
MD5 50e78048395e6613b38b6e45efe02fdc
BLAKE2b-256 d7fc236a130f3f81205f9f194f6b1149e8a2c9fee1d96339cdc4a0865ec11d7c

See more details on using hashes here.

Provenance

The following attestation bundles were made for nirs4all_core-0.2.13-py3-none-any.whl:

Publisher: release-python.yml on GBeurier/nirs4all-core

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page