Skip to content

fredrikw/python-nipals

Repository files navigation

Overview

docs
Documentation Status
tests
Python Package Requirements Status Coverage Status CodeQL Analysis
package
PyPI Package latest release PyPI Wheel Supported versions Supported implementations
Commits since latest release

A module for calculation of PCA and PLS with the NIPALS algorithm. Based on the R packages nipals and pcaMethods as well as the statistical appendixes to "Introduction to Multi- and Megavariate Data Analysis using Projection Methods (PCA & PLS)" by Eriksson et. al. Tested to give same results as the above packages and Simca, with some rounding errors.

  • Free software: MIT license

Installation

pip install nipals

Documentation

See https://github.com/fredrikw/python-nipals/blob/master/docs/nipals_demo_iris.ipynb for an example and the tests at https://github.com/fredrikw/python-nipals/tree/master/tests.

Development

To run the all tests run:

tox

Note, to combine the coverage data from all the tox environments run:

Windows
set PYTEST_ADDOPTS=--cov-append
tox
Other
PYTEST_ADDOPTS=--cov-append tox