classifiers
Class NaiveBayes

java.lang.Object
  extended by classifiers.NaiveBayes
All Implemented Interfaces:
Classifier

public class NaiveBayes
extends java.lang.Object
implements Classifier


Constructor Summary
NaiveBayes(boolean diag)
           
 
Method Summary
 void evaluate(DataSet ds)
           
 int evaluate(Sample s)
           
 int evaluate(Sample s, double[] scores)
           
 java.lang.String toString()
           
 void train(DataSet ds)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NaiveBayes

public NaiveBayes(boolean diag)
Method Detail

evaluate

public void evaluate(DataSet ds)
              throws EvaluationException
Specified by:
evaluate in interface Classifier
Throws:
EvaluationException

evaluate

public int evaluate(Sample s)
             throws EvaluationException
Throws:
EvaluationException

evaluate

public int evaluate(Sample s,
                    double[] scores)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

train

public void train(DataSet ds)
           throws TrainingException
Specified by:
train in interface Classifier
Throws:
TrainingException