jBNC Toolbox

jbnc.inducers
Class NaiveBayesInducer

java.lang.Object
  extended byjbnc.inducers.BayesianInducer
      extended byjbnc.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

Nested Class Summary
 
Nested classes inherited from class jbnc.inducers.BayesianInducer
BayesianInducer.NetLayout
 
Field Summary
 
Fields inherited from class jbnc.inducers.BayesianInducer
debugMode, DEFAULT_APLHA_IJK, layout, net, qualityMeasure
 
Constructor Summary
NaiveBayesInducer()
           
 
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 jbnc.inducers.BayesianInducer
clean, getDebugMode, getNetwork, getQualityMeasure, reset, setDebugMode, setQualityMeasure, train, verifyDataset
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NaiveBayesInducer

public NaiveBayesInducer()
Method Detail

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 Parameter
usePriors - Description of Parameter
alpha_ijk - Description of Parameter
Throws:
java.lang.Exception - Description of Exception

SourceForge.net Logo