org.apache.mahout.classifier.naivebayes.training
Class ComplementaryThetaTrainer

java.lang.Object
  extended by org.apache.mahout.classifier.naivebayes.training.AbstractThetaTrainer
      extended by org.apache.mahout.classifier.naivebayes.training.ComplementaryThetaTrainer

public class ComplementaryThetaTrainer
extends AbstractThetaTrainer


Constructor Summary
ComplementaryThetaTrainer(Vector weightsPerFeature, Vector weightsPerLabel, double alphaI)
           
 
Method Summary
 void train(int label, Vector perLabelWeight)
           
 
Methods inherited from class org.apache.mahout.classifier.naivebayes.training.AbstractThetaTrainer
alphaI, featureWeight, labelWeight, numFeatures, retrievePerLabelThetaNormalizer, totalWeightSum, updatePerLabelThetaNormalizer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ComplementaryThetaTrainer

public ComplementaryThetaTrainer(Vector weightsPerFeature,
                                 Vector weightsPerLabel,
                                 double alphaI)
Method Detail

train

public void train(int label,
                  Vector perLabelWeight)
Specified by:
train in class AbstractThetaTrainer


Copyright © 2008–2014 The Apache Software Foundation. All rights reserved.