jbnc.inducers
Class NaiveBayesInducer
java.lang.Object
jbnc.inducers.BayesianInducer
jbnc.inducers.NaiveBayesInducer
- public class NaiveBayesInducer
- extends BayesianInducer
Constructs discrete naive-Bayes classifier.
Duda R, Hart P, Pattern Recognition and Scene Analysis , John Wiley &
Sons, 1973.
- Since:
- June 1, 1999
- Author:
- Jarek Sacha
Method Summary |
static void |
main(java.lang.String[] arg)
Used for testing of the naive-Bayes algorithm. |
void |
train(FrequencyCalc fc,
boolean usePriors,
double alpha_ijk)
Construct a naive-Bayes network from the training data. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NaiveBayesInducer
public NaiveBayesInducer()
main
public static void main(java.lang.String[] arg)
- Used for testing of the naive-Bayes algorithm.
- Parameters:
arg
- The command line arguments
train
public void train(FrequencyCalc fc,
boolean usePriors,
double alpha_ijk)
throws java.lang.Exception
- Construct a naive-Bayes network from the training data.
- Specified by:
train
in class BayesianInducer
- Parameters:
fc
- Description of ParameterusePriors
- Description of Parameteralpha_ijk
- Description of Parameter
- Throws:
java.lang.Exception
- Description of Exception