a Vector of summed TF or TF-IDF weights for each word in dictionary.
a Vector of summed TF or TF-IDF weights for each label.
Laplace smoothing factor. Defaut value of 1.
getter for summed TF or TF-IDF weights by word.
getter for summed TF or TF-IDF weights by word.
index of word.
sum of TF or TF-IDF weights for word.
getter for summed TF or TF-IDF weights by label
getter for summed TF or TF-IDF weights by label
index of label
sum of word TF or TF-IDF weights for label
Getter for the weight normalizer vector as indexed by label
Getter for the weight normalizer vector as indexed by label
a copy of the weight normalizer vector.
Train the weight normalization vector for each label
Train the weight normalization vector for each label
add the magnitude of the current weight to the current label's corresponding Vector element.
add the magnitude of the current weight to the current label's corresponding Vector element.
index of label to update.
weight to add.
Trainer for the weight normalization vector used by Transform Weight Normalized Complement Naive Bayes. See: Rennie et.al.: Tackling the poor assumptions of Naive Bayes Text classifiers, ICML 2003, http://people.csail.mit.edu/jrennie/papers/icml03-nb.pdf Sec. 3.2.