A PyTorch implementation of Incremental PCA
Project description
PyTorch Incremental PCA
This project provides a PyTorch implementation of the Incremental PCA algorithm, inspired by the IncrementalPCA
class from scikit-learn and the repository PCAonGPU. This implementation has some shortcomings with regards to the precision of operations leading to vastly different results compared to the sklearn implemtation. The IncrementalPCA class in this repo produces outputs which are very close to the sklearn implementation with the added benefit of running on GPU.
Incremental PCA is a valuable technique for dimensionality reduction when dealing with large datasets that cannot fit entirely into memory.
Features
- PyTorch Integration: Seamlessly use incremental PCA within your PyTorch workflows.
- Memory Efficiency: Process large datasets incrementally without loading everything into memory at once.
- Similar API: Familiar interface if you've used scikit-learn's
IncrementalPCA
. - Customization: Easily extend or modify the core functionality to suit your specific needs.
Installation
pip install torch-incremental-pca
Usage
import torch_incremental_pca as tip
pca = tip.IncrementalPCA(n_components=32)
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
Built Distribution
File details
Details for the file torch_incremental_pca-0.0.13.tar.gz
.
File metadata
- Download URL: torch_incremental_pca-0.0.13.tar.gz
- Upload date:
- Size: 5.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a28d09c6d22d09239a6df2eccbe4a2945d981252a44caaee19a9e9cb99c0f869 |
|
MD5 | dbcb01c700bb95cd262147fc288d415e |
|
BLAKE2b-256 | ad1b086778f78998885a92729f1be394daed3c4c651ef2d504a537134ed826d2 |
File details
Details for the file torch_incremental_pca-0.0.13-py3-none-any.whl
.
File metadata
- Download URL: torch_incremental_pca-0.0.13-py3-none-any.whl
- Upload date:
- Size: 5.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8fdaea8c9a9902e86992506e943c1c711a50aa62d0d7c0f0517b8163ead3e495 |
|
MD5 | 429e7c17436f9c8bb2054b4e5b2488c1 |
|
BLAKE2b-256 | 362cc5397406323826d4b26b60d18bd4bd3450dc6409e4a9d9fab63ac0da25fc |