Bayesian Principal Component Analysis
Project description
bpca
Bayesian Principal Component Analysis
Getting started
BPCA follows the standard scikit-learn syntax
from bpca import BPCA
from sklearn.datasets import load_iris
iris_dataset = load_iris()
X = iris_dataset["data"]
# Fit + Extract information
bpca = BPCA(n_components=2)
usage = bpca.fit_transform(X)
loadings = bpca.components_
explained_variance_ratio = bpca.explained_variance_ratio_
Please refer to the documentation, in particular, the API documentation.
Installation
You need to have Python 3.11 or newer installed on your system.
- Install the latest release of
bpcafrom PyPI:
pip install bpca
- Or Install the latest development version:
pip install git+https://github.com/lucas-diedrich/bpca.git@main
Release notes
See the Release Notes.
Contact
For questions and help requests, you can reach out in the scverse discourse. If you found a bug, please use the issue tracker.
Citation
This package implements the algorithm proposed by Oba, 2003 and is built on the reference implementation by Stacklies et al, 2008 Please cite the original authors
Oba, S. et al. A Bayesian missing value estimation method for gene expression profile data. Bioinformatics 19, 2088 - 2096 (2003).
Stacklies, W., Redestig, H., Scholz, M., Walther, D. & Selbig, J. pcaMethods—a bioconductor package providing PCA methods for incomplete data. Bioinformatics 23, 1164 - 1167 (2007).
Generative model proposed by Bishop, 1998:
Bishop, C. Bayesian PCA. in Advances in Neural Information Processing Systems vol. 11 (MIT Press, 1998).
If you find this implementation useful, consider giving it a star on GitHub and cite this implementation
Diedrich, L. bpca [Computer software]. https://github.com/lucas-diedrich/bpca.git
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file bpca-0.0.3.tar.gz.
File metadata
- Download URL: bpca-0.0.3.tar.gz
- Upload date:
- Size: 195.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
165f0108294337497fba5276af9294c3376709431bbd80ece1693a4301ae8d98
|
|
| MD5 |
16fddc98af123308419cfb69cb058025
|
|
| BLAKE2b-256 |
d6ad5dab5f8eb68e2b293eba3d5eeaeacc8fe6799d37c4548d3d34b002e3b85e
|
Provenance
The following attestation bundles were made for bpca-0.0.3.tar.gz:
Publisher:
release.yaml on lucas-diedrich/bpca
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
bpca-0.0.3.tar.gz -
Subject digest:
165f0108294337497fba5276af9294c3376709431bbd80ece1693a4301ae8d98 - Sigstore transparency entry: 780388648
- Sigstore integration time:
-
Permalink:
lucas-diedrich/bpca@c63fed2b58b61334b7738a36c9157fe8d49e64ca -
Branch / Tag:
refs/tags/v0.0.3 - Owner: https://github.com/lucas-diedrich
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yaml@c63fed2b58b61334b7738a36c9157fe8d49e64ca -
Trigger Event:
release
-
Statement type:
File details
Details for the file bpca-0.0.3-py3-none-any.whl.
File metadata
- Download URL: bpca-0.0.3-py3-none-any.whl
- Upload date:
- Size: 22.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
39e9af5d9c8492bf5d34be1e4501cf99726134ce6e169f3a91fd96a0c95199ec
|
|
| MD5 |
ab5ab855fae1b6a93bbd5fdf51e0ae48
|
|
| BLAKE2b-256 |
c0c305f122e962afb1bfbce00401a2655f8ad27638e2132d3016e28de6017c4e
|
Provenance
The following attestation bundles were made for bpca-0.0.3-py3-none-any.whl:
Publisher:
release.yaml on lucas-diedrich/bpca
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
bpca-0.0.3-py3-none-any.whl -
Subject digest:
39e9af5d9c8492bf5d34be1e4501cf99726134ce6e169f3a91fd96a0c95199ec - Sigstore transparency entry: 780388649
- Sigstore integration time:
-
Permalink:
lucas-diedrich/bpca@c63fed2b58b61334b7738a36c9157fe8d49e64ca -
Branch / Tag:
refs/tags/v0.0.3 - Owner: https://github.com/lucas-diedrich
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yaml@c63fed2b58b61334b7738a36c9157fe8d49e64ca -
Trigger Event:
release
-
Statement type: