Skip to content

Python library for PCA using by SVD and eig methods

License

Notifications You must be signed in to change notification settings

onidzelskyi/pca_lib

Repository files navigation

Demo PCA algorithm

Environment setup

Install virtualenv

sudo apt install python-pip
pip install virtualenvwrapper

Add two lines to /.bashrc (/.profile)

export WORKON_HOME=$HOME/.virtualenvs
export PROJECT_HOME=$HOME/Devel

# load virtualenvwrapper for python (after custom PATHs)
venvwrap="virtualenvwrapper.sh"
/usr/bin/which $venvwrap
if [ $? -eq 0 ]; then
    venvwrap=`/usr/bin/which $venvwrap`
    source $venvwrap
fi

Run script

. ~/.local/bin/virtualenvwrapper.sh

Create virtual environment for matching app

mkvirtualenv -p python3.5 pca

Install dependencies

pip install -r requirements.txt

Install library

pip install .

Run tests

pytest tests

Run app

python demo.py

About

Python library for PCA using by SVD and eig methods

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages