Old files used sys.path.append('path') to make different lxmls tools accesible to the scripts and command line. This has now been replaced by the correspoding imports, assuming that we work from the lxmls folder. In the future the installer will be improved to make all modules reachable. In this case a lxmls. must be appended to all these imports.
Old files used sys.path.append('path') to make different lxmls tools accesible to the scripts and command line. This has now been replaced by the correspoding imports, assuming that we work from the lxmls folder. In the future the installer will be improved to make all modules reachable. In this case a lxmls. must be appended to all these imports.
Following changes on the classifier tools for day1 exercises

The new code runs on the day1.py script. The only exception is that I could not run

classifiers/max_ent_online.py

due to incompatibilities with the scipy version I am currently running. This should be solved soon.

Added lots of comments and extra spacing so that newcomers can quickly uncerstand what the code does.
Homogenized terms and code across differen methods e.g. "nr_epochs" replaced by "round_nr" used at first models. Also parameter initialization and similar common stages in the algorithms were given the similar structure and names.

In particular in

classifiers/gaussian_naive_bayes.py

I removed the use of estimate_gaussian, since it is just a mean calculation. I think this way it is easyer to follow the guide.
I also removed the variance which was not used.

in

classifiers/multinomial_naive_bayes.py

Replaced the variables likelihoods and sums by class_count and total_count which where more coherent whith what it is explained in the guide

IMPORTANT

I changed the computation of the learning rate for maxent and svn. It is now computed outside of the feature loop and it does not decrease with each feature loop iteration. This is my interpretation of the indications on the guide but I could be wrong.
Reverted the learning_rate change of last commit. Changed all round by epoch since this seems to be the propper term
Missing round to epochs
Added #!/usr/bin/python to the beginning of the file
Replaced sys.path.append() by corresponding import
Replaced sys.path.append() by corresponding import
Added comments
Replaced sys.path.append() by corresponding import
Replaced sys.path.append() by corresponding import
Replaced sys.path.append() by corresponding import
Merge remote branch 'upstream/master'

Conflicts:
	lxmls/classifiers/perceptron.py
	lxmls/sequences/hmm.py
Documentation update.
Merge pull request #1 from ricardo-daniel-ribeiro/master

Documentation update
multinomial_naive_bayes

multinomial_naive_bayes
remove old svn files
Update README.txt

Added explanation of the subfolders
Merge pull request #10 from MarianaAlmeida/master

multinomial_naive_bayes
Removed Mariana's solution from the labs folder, will add to code folder.