Skip to main content

A module for calculation of PCA with the NIPALS algorithm

Project description

A module for calculation of PCA and PLS with the NIPALS algorithm. Based on the R packages nipals and pcaMethods <https://doi.org/10.18129/B9.bioc.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

https://python-nipals.readthedocs.io/

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

Changelog

0.4.1 (2018-04-09)

  • Fixed bug with cross validation of PCA

0.4.0 (2018-04-09)

  • Added cross validations

  • Added calculation of distance to model with plots

  • Added model overview plots

0.3.0 (2018-04-05)

  • Added R2X and R2Y to the PLS class

  • Made plot color selectable also for scoreplots without classes

0.2.0 (2018-03-29)

  • Added a PLS class

  • Improved plotting

  • Fixed some problems with missing/infinite values

0.1.0 (2018-03-14)

  • First release on PyPI.

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

nipals-0.4.1.tar.gz (193.6 kB view details)

Uploaded Source

Built Distribution

nipals-0.4.1-py2.py3-none-any.whl (10.6 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file nipals-0.4.1.tar.gz.

File metadata

  • Download URL: nipals-0.4.1.tar.gz
  • Upload date:
  • Size: 193.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for nipals-0.4.1.tar.gz
Algorithm Hash digest
SHA256 a5d55a430bfef7493cb2a7ace0b8eb8a77a0f7bcedf8fac7591f7a0ea49f41aa
MD5 423bc8f325e8dbd29a4df83a09efb664
BLAKE2b-256 3970937ad55a8de3accf43ca1f22ca8e703ed351add7f0f3145500ea1522f0f7

See more details on using hashes here.

File details

Details for the file nipals-0.4.1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for nipals-0.4.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 13fc12db632fc47b844fed5583d540a68ca6200fb84372dc115b928bfde57a17
MD5 4a69d3a6a2253a9ad68c64ad5ef521d3
BLAKE2b-256 5091fdb39386a7b4ea110f33f41d9a3811b7fc0e48af32f43969fe0673f1f2ba

See more details on using hashes here.

Supported by

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