package for chemometric data analysis
Project description
chemometrics
chemometrics is a free and open source chemometric library for Python. Its main focus lies on the chemometric analysis of spectroscopic data (e.g. UV/Vis, NIR, Raman, NMR and MS). chemometrics builds on scikit-learn and extends its functionalities to support chemometric data analysis. The package provides methods for plotting, preprocessing and fitting data. In contrast to scikit-learn, chemometrics is mainly intended for interactive work.
chemometrics is work in progress. The current features are mainly revolving around the (supervised) analysis of spectroscopic data.
The documentation is available at https://chemometrics.readthedocs.io
Example applications
Plotting:
import matplotlib.pyplot as plt
import chemometrics as cm
cm.plot_colored_series(X.T, reference=Y)
plt.xlabel('Wavenumber / nm')
plt.ylabel('Absorbance / mAU')
Preprocessing:
X_deriv = cm.Whittaker(constraint_order=3, deriv=2).fit_transform(X)
cm.plot_colored_series(X_deriv.T, reference=Y)
plt.xlabel('Wavenumber / nm')
plt.ylabel('$d^2A/dl^2$ / $mAU/nm^2$')
Regression:
cm.fit_pls(X_deriv, Y)
Requirements and installation
- Python >= 3.8
- NumPy >= 1.19.2
- SciPy >= 1.5.2
- scikit-learn >= 0.23.2
- matplotlib >= 3.3.2
Earlier versions of the required libraries may work but have not been tested.
chemometrics is distributed over PyPI. The simplest way to install chemometrics is by running
python -m pip install chemometrics
Copyright and license
chemometrics is released under GPLv3.
Copyright 2021 Matthias Rüdt
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for chemometrics-0.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a1da1f3ce4e4779236bbcca29701e05c3c9e6cdc49570e123d6ca896487d2b13 |
|
MD5 | 4ace0b0db9eeb3bbb5a740e6a281acb5 |
|
BLAKE2b-256 | 6bf893bacdd9ba364331ac1b743ffdc2d82ba992c43cad83623b96b95355e0e2 |