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
Metadata
Release files for pcax 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pcax-0.1.0.tar.gz | 4.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pcax-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.3 kB
Release files / pcax-0.1.0.tar.gz
| Download URL | pcax-0.1.0.tar.gz |
|---|---|
| Size | 4.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0831e31bf62554876080f33e1ad9c18f9ae500ef09ed70f5759a6326a8812327
|
|
BLAKE2b-256 checksum How to use checksums |
d771662ff67c3eb5a68208344c951748a960bc142790c897642d1bab1d21f456
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.16
|
Release files / pcax-0.1.0-py3-none-any.whl
| Download URL | pcax-0.1.0-py3-none-any.whl |
|---|---|
| Size | 4.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8d1d1fa4d68314196d28d9b4489c9f71999ad059a7bae4a301f485ccf05a2c13
|
|
BLAKE2b-256 checksum How to use checksums |
f89842f4aee4505a9f809c20c2622f85fadb86adfdccb365b7d8faebd445acca
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.16
|