Skip to main content

pca: A Python Package for Principal Component Analysis.

Project description

Python Pypi Docs LOC Downloads Downloads License Github Forks Open Issues Project Status DOI Medium Gumroad Colab GitHub repo size Donate

pca is a Python package for Principal Component Analysis. The core of PCA is built on sklearn functionality to find maximum compatibility when combining with other packages. But this package can do a lot more. Besides the regular PCA, it can also perform SparsePCA, and TruncatedSVD. Depending on your input data, the best approach can be chosen. pca contains the most-wanted analysis and plots. Navigate to API documentations for more detailed information. ⭐️ Star it if you like it ⭐️


Key Features

Feature Description Docs Medium Gumroad & Podcast
Fit and Transform Perform the PCA analysis. Link PCA Guide Link
Biplot and Loadings Make Biplot with the loadings. Link
Explained Variance Determine the explained variance and plot. Link
Best Performing Features Extract the best performing features. Link
Scatterplot Create scatterplot with loadings. Link
Outlier Detection Detect outliers using Hotelling T2 and/or SPE/Dmodx. Link Outlier Detection Link
Normalize out Variance Remove any bias from your data. Link
Save and load Save and load models. Link
Analyze discrete datasets Analyze discrete datasets. Link

Resources and Links


Installation

pip install pca
from pca import pca

Examples

Quick Start Make Biplot
Explained Variance Plot 3D Plots
Alpha Transparency Normalize Out Principal Components
Extract Feature Importance
Make the biplot to visualize the contribution of each feature to the principal components.

Detect Outliers Show Only Loadings
Detect outliers using Hotelling's T² and Fisher’s method across top components (PC1–PC5).

Select Outliers Toggle Visibility
Select and filter identified outliers for deeper inspection or removal. Toggle visibility of samples and components to clean up visualizations.
Map Unseen Datapoints
Project new data into the transformed PCA space. This enables testing new observations without re-fitting the model.

Contributors

Setting up and maintaining PCA has been possible thanks to users and contributors. Thanks to:

Maintainer

  • Erdogan Taskesen, github: erdogant
  • Contributions are welcome.
  • Yes! This library is entirely free but it runs on coffee! :) Feel free to support with a Coffee.

Buy me a coffee

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

pca-2.10.2.tar.gz (37.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pca-2.10.2-py3-none-any.whl (35.1 kB view details)

Uploaded Python 3

File details

Details for the file pca-2.10.2.tar.gz.

File metadata

  • Download URL: pca-2.10.2.tar.gz
  • Upload date:
  • Size: 37.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for pca-2.10.2.tar.gz
Algorithm Hash digest
SHA256 4c5f7bc7e82c02349fc260b1957b5332882a94677b1c822b81038d0f819c5562
MD5 90e7c565f77a7e37f473f56b001ef08d
BLAKE2b-256 7a0568191cb9929b1f2160efb8b9a2fe6c38c6f9ffc3e78e368d60453739060e

See more details on using hashes here.

File details

Details for the file pca-2.10.2-py3-none-any.whl.

File metadata

  • Download URL: pca-2.10.2-py3-none-any.whl
  • Upload date:
  • Size: 35.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for pca-2.10.2-py3-none-any.whl
Algorithm Hash digest
SHA256 9cd76e10deb45d4c86cdeb257d45edbb6637926b444018430e9b618ea47028ea
MD5 78180f1aac425452aa09988418df8e1d
BLAKE2b-256 6640fdc0924e99e772efdb814a013fefbf01f08afa729cae521fa3635d4dce95

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page