A module for calculation of PCA with the NIPALS algorithm


License
MIT
Install
pip install nipals==0.5.7

Documentation

Overview

docs
Documentation Status
tests
package

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