classification
Class NaiveBayes

java.lang.Object
  extended by classification.NaiveBayes

public class NaiveBayes
extends Object


Constructor Summary
NaiveBayes(double smoothTrue, double smoothFalse, Alphabet xAlphabet, Alphabet yAlphabet)
           
 
Method Summary
 LinearClassifier batchTrain(ArrayList<ClassificationInstance> trainingData)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NaiveBayes

public NaiveBayes(double smoothTrue,
                  double smoothFalse,
                  Alphabet xAlphabet,
                  Alphabet yAlphabet)
Method Detail

batchTrain

public LinearClassifier batchTrain(ArrayList<ClassificationInstance> trainingData)


Copyright © 2009. All Rights Reserved.