Skip to main content

Package to integrate chemometrics in scikit-learn pipelines

Project description

chemotools

pypi pypi pypi codecov Downloads

chemotools

Welcome to Chemotools, a Python package that integrates chemometrics with Scikit-learn.

Note

Since I released Chemotools, I have received a fantastic response from the community. I am really happy for the interest in the project 🤗. This also means that I have received a lot of good feedback and suggestions for improvements. I have been intensively working on releasing new versions of Chemotools to address the feedback and suggestions. If you use Chemotools, make sure you are using the latest version (see installation), which will be aligned with the documentation.

👉👉 Check the latest version and make sure you don't miss out on cool new features.

👉👉 Check the documentation for a full description on how to use chemotools.

Description

Chemotools is a Python package that provides a collection of preprocessing tools and utilities for working with spectral data. It is built on top of popular scientific libraries and is designed to be highly modular, easy to use, and compatible with Scikit-learn transformers.

If you are interested in learning more about chemotools, please visit the documentation page.

Benefits:

  • Provides a collection of preprocessing tools and utilities for working with spectral data
  • Highly modular and compatible with Scikit-learn transformers
  • Can perform popular preprocessing tasks such as baseline correction, smoothing, scaling, derivatization, and scattering correction
  • Open source and available on PyPI

Applications:

  • Analyzing and processing spectral data in chemistry, biology, and other fields
  • Developing machine learning models for predicting properties or classifying samples based on spectral data
  • Teaching and learning about chemometrics and data preprocessing in Python

Installation

Chemotools is distributed via PyPI and can be easily installed using pip:

pip install chemotools

Upgrading to the latest version is as simple as:

pip install chemotools --upgrade

Usage

Chemotools is designed to be used in conjunction with Scikit-learn. It follows the same API as other Scikit-learn transformers, so you can easily integrate it into your existing workflow. For example, you can use chemotools to build pipelines that include transformers from chemotools and Scikit-learn:

from sklearn.preprocessing import StandardScaler
from sklearn.pipeline import make_pipeline

from chemotools.baseline import AirPls
from chemotools.scatter import MultiplicativeScatterCorrection

preprocessing = make_pipeline(AirPls(), MultiplicativeScatterCorrection(), StandardScaler(with_std=False)) 
spectra_transformed = preprocessing.fit_transform(spectra)

Check the documentation for more information on how to use chemotools.

Contributing

We welcome contributions to Chemotools from anyone interested in improving the package. Whether you have ideas for new features, bug reports, or just want to help improve the code, we appreciate your contributions! You are also welcome to see the Project Board to see what we are currently working on.

To contribute to Chemotools, please follow the contributing guidelines.

License

This package is distributed under the MIT license. See the LICENSE file for more information.

Credits

AirPLS baseline correction is based on the implementation by Zhang et al.. The current implementation is based on the Python implementation by zmzhang.

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

chemotools-0.1.1.tar.gz (7.4 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

chemotools-0.1.1-py3-none-any.whl (7.5 MB view details)

Uploaded Python 3

File details

Details for the file chemotools-0.1.1.tar.gz.

File metadata

  • Download URL: chemotools-0.1.1.tar.gz
  • Upload date:
  • Size: 7.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for chemotools-0.1.1.tar.gz
Algorithm Hash digest
SHA256 6e82db2fab1e1fb27cf421d54ca8a2030a6ab64a69ed97c010b0611a96d11fc5
MD5 486c5bc64913ca26bc85fdda72050559
BLAKE2b-256 f4127f02764d58dc615b4c0cd837f735658c2563a25304038ff37fe0233c4608

See more details on using hashes here.

File details

Details for the file chemotools-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: chemotools-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 7.5 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for chemotools-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 448330fa568131636c16d9add6dbb67a8f1bc37adf43f061980ffde626e46e21
MD5 e6e7bf3852b338182bd5c3da81349919
BLAKE2b-256 cd12c53e3f3f56545aeac7e0b610fa1af3818322df2655dd7c428534110d1d15

See more details on using hashes here.

Supported by

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