classifiers
Class NaiveBayes
java.lang.Object
classifiers.NaiveBayes
- All Implemented Interfaces:
- Classifier
public class NaiveBayes
- extends java.lang.Object
- implements Classifier
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
NaiveBayes
public NaiveBayes(boolean diag)
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