org.apache.mahout.classifier.naivebayes.training
Class AbstractThetaTrainer
java.lang.Object
org.apache.mahout.classifier.naivebayes.training.AbstractThetaTrainer
- Direct Known Subclasses:
- ComplementaryThetaTrainer, StandardThetaTrainer
public abstract class AbstractThetaTrainer
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractThetaTrainer
protected AbstractThetaTrainer(Vector weightsPerFeature,
Vector weightsPerLabel,
double alphaI)
train
public abstract void train(int label,
Vector instance)
alphaI
protected double alphaI()
numFeatures
protected double numFeatures()
labelWeight
protected double labelWeight(int label)
totalWeightSum
protected double totalWeightSum()
featureWeight
protected double featureWeight(int feature)
updatePerLabelThetaNormalizer
protected void updatePerLabelThetaNormalizer(int label,
double weight)
retrievePerLabelThetaNormalizer
public Vector retrievePerLabelThetaNormalizer()
Copyright © 2008–2014 The Apache Software Foundation. All rights reserved.