LBJ2.learn
Class NaiveBayes.Parameters

java.lang.Object
  extended by LBJ2.learn.Parameters
      extended by LBJ2.learn.NaiveBayes.Parameters
Enclosing class:
NaiveBayes

public static class NaiveBayes.Parameters
extends Parameters

Simply a container for all of NaiveBayes's configurable parameters. Using instances of this class should make code more readable and constructors less complicated.


Field Summary
 double smoothing
          The exponential of this number is used as the conditional probability of a feature that was never observed during training; default NaiveBayes.defaultSmoothing.
 
Constructor Summary
NaiveBayes.Parameters()
          Sets all the default values.
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

smoothing

public double smoothing
The exponential of this number is used as the conditional probability of a feature that was never observed during training; default NaiveBayes.defaultSmoothing.

Constructor Detail

NaiveBayes.Parameters

public NaiveBayes.Parameters()
Sets all the default values.