Metadata-Version: 2.1
Name: pynir
Version: 0.1
Summary: NIR calibration toolbox in python
Project-URL: Bug Tracker, https://github.com/JinZhangLab/pynir/issues
Project-URL: Homepage, https://github.com/JinZhangLab/pynir
Author-email: Jin Zhang <jinzhang@nankai.edu.cn>
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Requires-Python: >=3.7
Description-Content-Type: text/markdown

# 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](https://pip.pypa.io/en/stable/) to install toolkit in requirements.txt.

```bash
pip install -r requirements.txt
```

## 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）**](https://link.springer.com/article/10.1007%2Fs11426-018-9368-9). 
```python
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._](https://link.springer.com/article/10.1007%2Fs11426-018-9368-9)

## 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](https://choosealicense.com/licenses/mit/)