qojpca package
Project description
qojpca
QOJPCA (Quasi-orthogonal Joint Principal Component Analysis) package allows for improving the orthogonality between linear bases computed through Principal Component Analysis.
Install it from PyPI
The package has been released on PyPip and can be installed through.
pip install qojpca
Requirements
Numpy, Scikit
Usage
The package can be used by importing the "base" module into your python script as:
from qojpca import base
"""
QOJPCA can be computed using the qojpca static function
l_p (resp. l_q): number of latent variables for P (resp. Q)
l: regularization parameter. Note that it is multiplied by the largest eigenvalue of XX^T
"""
P_vals,Q_vals,P,Q = base.qojpca(X,Y,l_p,l_q,l)
Or by using the command line interface. For example
$ python -m qojpca X.npy Y.npy --l_x 10 --l_y 10 --output_directory output --regularization 100
where: l_p (resp. l_q) are the number of latent variables for linear basis P (resp. Q).
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
qojpca-0.1.9.tar.gz
(12.1 kB
view details)
Built Distribution
qojpca-0.1.9-py3-none-any.whl
(10.3 kB
view details)
File details
Details for the file qojpca-0.1.9.tar.gz
.
File metadata
- Download URL: qojpca-0.1.9.tar.gz
- Upload date:
- Size: 12.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.7.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d59cac5a51b292bcd5986c07155e130a95cac69135952c6264b885e0c5363fc7 |
|
MD5 | b3059005e0f1aa43a4d499bdb0a82286 |
|
BLAKE2b-256 | e239c9bfed40ca3e731426de36b89913b4e31a069ee07a146b21c35e9a156a82 |
File details
Details for the file qojpca-0.1.9-py3-none-any.whl
.
File metadata
- Download URL: qojpca-0.1.9-py3-none-any.whl
- Upload date:
- Size: 10.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8e697387cad8308756acfd03e9c54d7ae54cd892b3a140bf37f5077ff45db71e |
|
MD5 | 217e4995be190e6bf2a24d326d122284 |
|
BLAKE2b-256 | dc33a2bb5762098bd98cc3cf40a83fdc332e75934efbf40c52a0b1a6b9dae038 |