/compression_sparse

Compression Sparse Representation

Primary LanguagePythonMIT LicenseMIT

Tutorial execution

Create a virtual environment to install all packages in their specific versions, which ensures greater success in executing the algorithm.

Clone project

git clone https://github.com/claudiovaliense/compression_sparse.git

Project root

cd compression_sparse

Install virtual enviroment and python 3.6

sudo apt-get install virtualenv && sudo apt-get install python3.6

Create virtual environment

virtualenv -p python3.6 virtualenv

Ativate virtual environment

source virtualenv/bin/activate

Install package and version specific

pip install -r requeriments.txt

Create representation the texts, example of the representation in file .sh

sh representations.py.sh

Optimize hyper-parameter of classifier

sh classifier_score.py.sh

Train and predict the classes

sh classifiers_predict.py.sh

Print statistics of results, save stats in stats folder

sh classifiers_statistics.py.sh

Expected result at the end of the process

debate_word_tfidf_classifier_svm & 76.49$\pm$2.68\