Skip to main content

*ChemometricsPy: A scientific Python library for chemometric modeling*.

Project description

ChemometricsPy

ChemometricsPy is a modern, modular chemometrics library for Python, designed to support a wide range of multivariate methods in analytical chemistry, chemical engineering, and process optimization.

Currently, the package includes powerful tools for Design of Experiments (DOE) such as:

  • Full factorial design
  • Fractional factorial design with automatic resolution checking (III, IV, V)
  • Central Composite Design (CCD) — rotatable and face-centered
  • Box-Behnken Design (BBD)
  • Built-in plotting functions and residual diagnostics

Future modules will include:

  • Preprocessing (SNV, MSC, derivatives)
  • Univariate and multivariate calibration (PLS, PCR, SVM)
  • Exploratory analysis (PCA)
  • Neural networks for chemometrics

Installation

pip install chemometricspy

Example

from chemometricspy.doe import Factorial

f = Factorial(number_of_factors=3, factors_names=["pH", "Temp", "Conc"], center_points=4)
df = f.generate_codified_matrix()
print(df)
plan = f.generate_doe(factor_levels = [(4, 8), (25, 75), (0.25, 0.75)], center_levels = [6, 50, 0.50])
print(plan)
experimental = f.randomize(plan)
print(experimental)
f.calculate_effects(responses=[38.4, 66.1, 55.9, 69.8, 28.8, 39.6, 31.2, 28.8, 50.4, 51.6, 50.2, 48.3])
f.plot_pareto_effects(center_responses=[50.4, 51.6, 50.2, 48.3])

Author

Developed by Leonardo Guimarães
Email: leo.sguimaraes4@gmail.com

Citation

If you use this library in your research or publication, please cite it as:

Guimarães, L. (2025). ChemometricsPy: A scientific Python library for chemometric modeling. Version 0.1.0. https://pypi.org/project/chemometricspy

License

This project is licensed under the MIT License - see the LICENSE file for details.

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

chemometricspy-0.1.2.tar.gz (13.7 kB view details)

Uploaded Source

Built Distribution

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

chemometricspy-0.1.2-py3-none-any.whl (15.4 kB view details)

Uploaded Python 3

File details

Details for the file chemometricspy-0.1.2.tar.gz.

File metadata

  • Download URL: chemometricspy-0.1.2.tar.gz
  • Upload date:
  • Size: 13.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.0

File hashes

Hashes for chemometricspy-0.1.2.tar.gz
Algorithm Hash digest
SHA256 3ae1d5b6bdcd28194f10b568175f542eaf94c9f0d44aca0dda30666650280a2d
MD5 12cf074d3bada07e84c920b2496f4daf
BLAKE2b-256 c69f20b021c277ba2dc0b2f82254d0469899e0d27ce62d0e70ed3dd3331d0af5

See more details on using hashes here.

File details

Details for the file chemometricspy-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: chemometricspy-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 15.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.0

File hashes

Hashes for chemometricspy-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 2270a815341048ea367a936583803ce85e4a66f4765109b59dc92e7a29a997c4
MD5 81a1687de70269bc9bc906354118b92f
BLAKE2b-256 444346564147f60c6ee46f04192526a3b0c988df10f12f6581235e80f073a933

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