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
Merge remote-tracking branch 'upstream/master'

Conflicts:
	code/classifiers/multinomial_naive_bayes.py
	code/labs/day1.py
	code/labs/day4.py
	labs/classifiers/.svn/text-base/max_ent_batch.py.svn-base
	labs/classifiers/.svn/text-base/max_ent_online.py.svn-base
	labs/classifiers/.svn/text-base/mira.py.svn-base
	labs/classifiers/.svn/text-base/svm.py.svn-base
	labs/labs/day1.py
	labs/sequences/.svn/text-base/discriminative_sequence_classifier.py.svn-base
	labs/sequences/.svn/text-base/hmm.py.svn-base
	lxmls/sequences/structured_perceptron.py
Merge remote-tracking branch 'upstream/master'

Conflicts:
	code/classifiers/multinomial_naive_bayes.py
	labs/sequences/.svn/text-base/crf_batch.py.svn-base
Merge remote-tracking branch 'upstream/master'
Simplified code of hmm.compute_scores()

Initialization of initial_scores and final_scores was not needed. Added comments for clarity.
Changed comment style on changes to match rest