Skip to content

j2kun/svd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

025c1dc · Apr 9, 2018

History

16 Commits
May 6, 2016
Apr 27, 2016
Apr 28, 2016
May 16, 2016
Apr 30, 2016
Apr 28, 2016
Oct 7, 2017
Apr 30, 2016
Apr 30, 2016
Jan 18, 2018
Apr 9, 2018

Repository files navigation

SVD

An implementation of the greedy algorithm for SVD, using the power method for the 1-dimensional case.

For the post Singular Value Decomposition Part 2: Theorem, Proof, Algorithm

And the first (motivational) post in the series: Singular Value Decomposition Part 1: Perspectives on Linear Algebra

Setup

Run the following to set up all the requirements needed to run the code in this repository.

$ virtualenv venv
$ source venv/bin/activate
$ pip install -r requirements.txt
$ bash setup.sh   # downloads relevant NLP corpora from nltk

Then run python3 topicmodel.py for the main topic-model routine, svd.py for the core svd algorithm, and demo.py for the numpy examples from the post.

When finished, run $ deactivate to exit the virtual environment.