Robust PCA in Python. Methods are from the http://perception.csl.illinois.edu/matrix-rank/sample_code.html and papers therein.
- scipy
- numpy
- pypropack(optional)
- scikit-learn
- nosetest
test_robustpca.pytest whether the algorithms included can recovery the synthetic data successfully. Usenosetest test_robustpca.pyplot_benchmark.pyplot the benchmarks with synthetic data generated with different parameters. Usepython2 plot_benchmark.pybackground_subtraction.pygenerate the result using the escalator dataset. Usepython2 background_subtraction.py. This will generate the.matfiles with respect to each algorithms and can be directly readable from matlab. Furthermore,background_subtraction_visualize.pycould be used to generate a video. The temporary image files are located in/tmp/robust_pca_tmp/which should be created first.topic_extraction.pyextracts the keywords from the 20newsgroup dataset. It will generate two files, one isorigin.txtand another iskeyword.txt. The keyword and the original text on the same line is one-one mapped.
Special thanks for the following two resources and their authors.