Skip to main content

qojpca package

Project description

qojpca

codecov CI

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


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 hashes)

Uploaded Source

Built Distribution

qojpca-0.1.9-py3-none-any.whl (10.3 kB view hashes)

Uploaded Python 3

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