Git Product home page Git Product logo

pychemometrics's Introduction

pyChemometrics

DOI Python35 Build Status

Description

The pyChemometrics package provides implementations of PCA, PLS regression and PLS discriminant analysis (PLS-DA) tailored for the analysis of spectroscopy and metabonomic datasets (especially from Nuclear magnetic resonance spectroscopy and mass spectrometry). Some of the common validation metrics and procedures seen in the chemometric and metabonomic literature are provided, including different matrix scaling options (mean centring, Pareto and Unit-Variance), Leave-one-out-cross-validation (LOOCV), K-Fold cross validation and Monte Carlo CV, calculation of the Q2Y and Q2X measures from LOOCV and K-Fold CV, permutation tests and the variable importance for prediction (VIP) metric.

Documentation and Tutorials

Documentation and information on running the tutorials (Still in progress) can be found in readthedocs.

Table of contents

The main objects in the package are:

  • ChemometricsScaler: Handles the scaling of the data matrices
  • ChemometricsPCA: Principal Component analysis
  • ChemometricsPLS: Partial Least Squares regression
  • ChemometricsPLSDA: Partial Least Squares - Discriminant Analysis
  • ChemometricsPLS_Logistic: Partial Least Squares - Logistic regression using the PLS scores as predictors
  • ChemometricsPLS_LDA: Partial Least Squares - Quadratic discriminant analysis, using the PLS scores as predictors

The main objects in this package wrap pre-existing scikit-learn Principal Component Analysis (PCA) and Partial Least Squares (PLS) algorithms, and make use of the cross-validation and model selection functionality from scikit-learn.

Instalation

To install, simply navigate to the main package folder and run:

python setup.py install

Alternatively, using pip (from source):

pip install /pyChemometricsDirectory/

Or from Pypi:

pip install pyChemometrics

Installation with pip allows the usage of the uninstall command

pip uninstall pyChemometrics

License

All code is provided under a BSD 3-clause license. See LICENSE file for more information.

pychemometrics's People

Contributors

gscorreia89 avatar jaketmp avatar carolinesands avatar

Stargazers

Cecilia Wieder avatar

Watchers

James Cloos avatar Torben Kimhofer avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.