sercandogan / eigpca

PCA via eigen-decomposition of the covariance/correlation matrix

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

eigpca

PCA via eigen-decomposition of the covariance/correlation matrix.

Install

pip install eigpca

Example

from eigpca import PCA
from sklearn.datasets import load_iris

X = load_iris().data
pca = PCA()

pca.fit(X)
pca.transform(X, n_components=2)

Scree Plot

pca.plot(y="eig")

Scree plot

Y axes is proportion of variance

pca.plot(y="pov")

Scree plot proportion of variance

About

PCA via eigen-decomposition of the covariance/correlation matrix

License:MIT License


Languages

Language:Python 100.0%