chemometrics
chemometrics is a free and open source library for visualization, modeling, and prediction of multivariate data.
The package streamlines chemometric workflows by providing powerful preprocessing algorithms combined with simple functional calls for generating fully calibrated chemometric models. A variety of analytical visualizations help to understand the data and build trust into the generated models. Looking for further extending the models? chemometrics is fully compatible with scikit-learn. Use advanced machine learning algorithms to get most out of your data.
The documentation is hosted at https://chemometrics.readthedocs.io
Installation
chemometrics is distributed over PyPI. The simplest way to install chemometrics is by running
python -m pip install chemometrics
Example applications
Plotting with reference coloring:
import numpy as np
import matplotlib.pyplot as plt
import chemometrics as cm
plt.figure(figsize=[12, 5])
lines = cm.plot_colored_series(D.T, x=wavenumbers, reference=C[:, 1])
plt.xlabel(r'Wavenumber / $\mathrm{cm^{-1}}$')
plt.ylabel('Intensity / AU')
Preprocessing by smoothing and performing a second derivative:
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$')
A working PLS model is just one function call away:
cm.fit_pls(X_deriv, Y)
Interested in more? Check out following pages:
- Full workflow from loading the data to interpreting the calibrated PLS model
- A variety of examples
- Overview of the API
Requirements
- 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.
Copyright and license
chemometrics is released under GPLv3.
Copyright 2021, 2022 Matthias Rüdt
Metadata
Release files for chemometrics 0.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| chemometrics-0.4.0.tar.gz | 62.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| chemometrics-0.4.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 143.3 kB
Release files / chemometrics-0.4.0.tar.gz
| Download URL | chemometrics-0.4.0.tar.gz |
|---|---|
| Size | 62.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
840528ced334a074e7514bc664252651d5df3ba5fd03f5e243641cece14b3ebd
|
|
BLAKE2b-256 checksum How to use checksums |
ab1649953db1c4625239703fa1738dac8bb0a232b0810ab75f7784efb15a8b72
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.7
|
Release files / chemometrics-0.4.0-py3-none-any.whl
| Download URL | chemometrics-0.4.0-py3-none-any.whl |
|---|---|
| Size | 81.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
cd7120034f0b271ce9ce1b0166aa6a4d88790f2705c3f0cef5d9d96ed0aeb458
|
|
BLAKE2b-256 checksum How to use checksums |
b42d49bd96fe7a1631cc57ca490ab0ddaa1814ec666e1d5e6999b02a9e7f031e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.7
|