Skip to main content

NIR calibration toolbox in python

Project description

Commom Calibration methods for multivariate calibration

This is a Python library for dealing with multivariate calibration, e.g., Near infrared spectra regression and classification tasks.

Installation

Use the package manager pip to install toolkit in requirements.txt.

pip install -r requirements.txt

Usage

Simulata NIR spectra (spc) and reference values (conc) or load your own data

from pynir.utils import simulateNIR

spc, conc = simulateNIR()

Demon

Feature selection demostration of corn sample near infrared (NIR) spectra by Monte Carlo-uninformative variable elimination (MC-UVE), randomization test(RT), Variable selection via Combination (VC), and multi-step VC(MSVC).

python FeatureSelectionDemo_mcuve.py
python FeatureSelectionDemo_RT.py
python FeatureSelectionDemo_VC.py
python FeatureSelectionDemo_MSVC.py

Ref

1. Cai, W. S.; Li, Y. K.; Shao, X. G., A variable selection method based on uninformative variable elimination for multivariate calibration of near-infrared spectra. Chemom. Intell. Lab. Syst. 2008, 90 (2), 188-194.

2. Xu, H.; Liu, Z. C.; Cai, W. S.; Shao, X. G., A wavelength selection method based on randomization test for near-infrared spectral analysis. Chemom. Intell. Lab. Syst. 2009, 97 (2), 189-193.

3. Zhang, J.; Cui, X. Y.; Cai, W. S.; Shao, X. G., A variable importance criterion for variable selection in near-infrared spectral analysis. Sci. China Chem. 2018, 62, 271–279.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

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

pynir-0.2.tar.gz (12.1 kB view details)

Uploaded Source

Built Distribution

pynir-0.2-py3-none-any.whl (11.4 kB view details)

Uploaded Python 3

File details

Details for the file pynir-0.2.tar.gz.

File metadata

  • Download URL: pynir-0.2.tar.gz
  • Upload date:
  • Size: 12.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.3 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.12 tqdm/4.64.1 importlib-metadata/4.8.3 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.5 CPython/3.6.9

File hashes

Hashes for pynir-0.2.tar.gz
Algorithm Hash digest
SHA256 8e0a528521a03424a5d526f11c20818d7fb004d8efd0094c6bb024b16f2acf21
MD5 6fb66d16658ea11fb384fa699b9a2ee1
BLAKE2b-256 9bb7ebb2d4f1282674d55388846ad2510082e631de8642de47a56ed2ac2b0d1d

See more details on using hashes here.

File details

Details for the file pynir-0.2-py3-none-any.whl.

File metadata

  • Download URL: pynir-0.2-py3-none-any.whl
  • Upload date:
  • Size: 11.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.3 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.12 tqdm/4.64.1 importlib-metadata/4.8.3 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.5 CPython/3.6.9

File hashes

Hashes for pynir-0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 5820e9fc7690d3bfae7ebfa1395172aee82bc4ced648319bf34769aaac99a8f7
MD5 e744f70761a64d2e6e4b8d14e816a75d
BLAKE2b-256 d41a05d8d6f632136e687d448649f07e93e9b18eb22f643a76cfc06a3c9cf93a

See more details on using hashes here.

Supported by

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