Skip to content

Latest commit

 

History

History
57 lines (44 loc) · 831 Bytes

Readme.md

File metadata and controls

57 lines (44 loc) · 831 Bytes

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