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 |
Changelog
0.5.8 (2024-06-20)
Fix linewidth attributes on plots to allow saving the plots
0.5.6 (2023-10-20)
Updated supported Python versions
0.5.5 (2022-09-28)
Added check for X-matrix with row full of NAs
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.
Metadata
Release files for nipals 0.5.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| nipals-0.5.8.tar.gz | 294.8 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| nipals-0.5.8-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details |
Total release size: 305.6 kB
Release files / nipals-0.5.8.tar.gz
| Download URL | nipals-0.5.8.tar.gz |
|---|---|
| Size | 294.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8514b27c7816f18104bc131e9a365fed06d71133be4409fc62c901978c6b18d8
|
|
BLAKE2b-256 checksum How to use checksums |
16600d6b7b0d3f3002923ba62b3a30612f7504f8bcb6320bd32fb1682a322c0b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.0 CPython/3.9.19
|
Release files / nipals-0.5.8-py2.py3-none-any.whl
| Download URL | nipals-0.5.8-py2.py3-none-any.whl |
|---|---|
| Size | 10.8 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
0ad47bc6e57a870632f0b598e69ca6c269cb5dd3776f313f1815ec9766154093
|
|
BLAKE2b-256 checksum How to use checksums |
f9e2f8ee7a871676be213397d4ba7bcf937bdd86b83df9e9b533522ac6502404
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.0 CPython/3.9.19
|
Security for nipals 0.5.8
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.