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 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.5.4 (2021-05-07)

  • Fixed Packaging error (0.5.3 was never released)

0.5.3 (2021-05-06)

  • Fixed error on numpy version >= 1.19

  • Updated supported versions

  • Moved CI to Github Action (pt 1)

0.5.2 (2019-06-04)

  • Added compatibility with Nipals objects saved from pre-0.5 versions

0.5.1 (2019-05-23)

  • Added checks for, and optional removal of, zero variance in variables

  • Added support for Python 3.7

  • (0.5.0 was never released due to failing CI tests)

0.4.3 (2018-04-24)

  • Fixed test that failed after last bug fix

0.4.2 (2018-04-24)

  • Fixed bug with selection of starting column for cross validation of PCA

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.5.4.tar.gz (294.3 kB view details)

Uploaded Source

Built Distribution

nipals-0.5.4-py2.py3-none-any.whl (10.4 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

  • Download URL: nipals-0.5.4.tar.gz
  • Upload date:
  • Size: 294.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.5

File hashes

Hashes for nipals-0.5.4.tar.gz
Algorithm Hash digest
SHA256 b5583cccab06b89d179d8c08d5f9bf4b425605bcd253d5c4e1010449137e6220
MD5 014e7af3c6b556761e7aa4c8dafacb7f
BLAKE2b-256 e1c625686924349fcd6761440cfa70daed4812c2f3d29a91ef2c6d02ead89811

See more details on using hashes here.

File details

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

File metadata

  • Download URL: nipals-0.5.4-py2.py3-none-any.whl
  • Upload date:
  • Size: 10.4 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.5

File hashes

Hashes for nipals-0.5.4-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 1701e3acf4079df5ca7ae4171fbe47d860206914e10b3de227453c456a8d0b28
MD5 afc461b016edc5dbee061f260e8b3d1f
BLAKE2b-256 08f0eb677b3015cc69e65308cb5e1400fce640e63ede1dd473726c02a0172e0a

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