package for chemometric data analysis
Project description
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
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
File details
Details for the file chemometrics-0.4.0.tar.gz
.
File metadata
- Download URL: chemometrics-0.4.0.tar.gz
- Upload date:
- Size: 62.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 840528ced334a074e7514bc664252651d5df3ba5fd03f5e243641cece14b3ebd |
|
MD5 | 32295463b7aa931cb15ed4a7994902df |
|
BLAKE2b-256 | ab1649953db1c4625239703fa1738dac8bb0a232b0810ab75f7784efb15a8b72 |
File details
Details for the file chemometrics-0.4.0-py3-none-any.whl
.
File metadata
- Download URL: chemometrics-0.4.0-py3-none-any.whl
- Upload date:
- Size: 81.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cd7120034f0b271ce9ce1b0166aa6a4d88790f2705c3f0cef5d9d96ed0aeb458 |
|
MD5 | f00e498f955e8f77c1f0a54673adee39 |
|
BLAKE2b-256 | b42d49bd96fe7a1631cc57ca490ab0ddaa1814ec666e1d5e6999b02a9e7f031e |