Minimal Principal Component Analysis (PCA) implementation using JAX.
Project description
pcax
Minimal Principal Component Analsys (PCA) implementation using jax.
The aim of this project is to provide a JAX-based PCA implementation, eliminating the need for unnecessary data transfer to CPU or conversions to Numpy. This can provide performance benefits when working with large datasets or in GPU-intensive workflow
Usage
import pcax
# Fit the PCA model with 3 components on your data X
state = pcax.fit(X, n_components=3)
# Transform X to its principal components
X_pca = pcax.transform(state, X)
# Recover the original X from its principal components
X_recover = pcax.recover(state, X_pca)
Installation
pcax
can be installed from PyPI via pip
pip install pcax
Alternatively, it can be installed directly from the GitHub repository:
pip install git+git://github.com/alonfnt/pcax.git
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
pcax-0.1.0.tar.gz
(4.0 kB
view details)
Built Distribution
pcax-0.1.0-py3-none-any.whl
(4.3 kB
view details)
File details
Details for the file pcax-0.1.0.tar.gz
.
File metadata
- Download URL: pcax-0.1.0.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0831e31bf62554876080f33e1ad9c18f9ae500ef09ed70f5759a6326a8812327 |
|
MD5 | c3cceb53e334be5092c66dcd5121b000 |
|
BLAKE2b-256 | d771662ff67c3eb5a68208344c951748a960bc142790c897642d1bab1d21f456 |
File details
Details for the file pcax-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: pcax-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8d1d1fa4d68314196d28d9b4489c9f71999ad059a7bae4a301f485ccf05a2c13 |
|
MD5 | 0c44869bd284183c923b559107d671df |
|
BLAKE2b-256 | f89842f4aee4505a9f809c20c2622f85fadb86adfdccb365b7d8faebd445acca |