javax.datamining.algorithm.naivebayes
Interface NaiveBayesSettings

All Superinterfaces:
AlgorithmSettings, SupervisedAlgorithmSettings

public interface NaiveBayesSettings
extends SupervisedAlgorithmSettings

A NaiveBayesSettings object supports function settings specific to the NaiveBayes mining algorithm.

Author:
JSR-73 Java Data Mining Expert Group
See Also:
AlgorithmSettings, SupervisedAlgorithmSettings

Method Summary
 double getPairwiseThreshold()
          Returns the pairwise threshold.
 double getSingletonThreshold()
          Returns the singleton threshold.
 void setPairwiseThreshold(double pairwiseThreshold)
          Sets the pairwise threshold.
 void setSingletonThreshold(double singletonThreshold)
          Sets the singleton threshold.
 
Methods inherited from interface javax.datamining.base.AlgorithmSettings
getMiningAlgorithm, verify
 

Method Detail

getPairwiseThreshold

public double getPairwiseThreshold()
Returns the pairwise threshold. When a naive Bayes model is built from the build data, a pair of given values of the target attribute and predictors is ignored unless there are enough occurrences of that pair in the training data. The number of occurrences must equal or exceed the fraction specified by the pairwise threshold of the number of training cases

Returns:
double

getSingletonThreshold

public double getSingletonThreshold()
Returns the singleton threshold. When a naive Bayes model is built from the build data, a given value of a given predictor attribute is ignored unless there are enough occurrences of that value. The number of occurrences must equal or exceed the fraction specified by the singleton threshold of the number of training cases.

Returns:
double

setPairwiseThreshold

public void setPairwiseThreshold(double pairwiseThreshold)
Sets the pairwise threshold. The threshold ranges between 0 and 1, noted as [0,1), where 1 is excluded.

Parameters:
pairwiseThreshold - The pairwise threshold value.
Returns:
void

setSingletonThreshold

public void setSingletonThreshold(double singletonThreshold)
Sets the singleton threshold. The threshold ranges between 0 and 1, noted as [0,1), where 1 is excluded.

Parameters:
singletonThreshold - The singleton threshold value.
Returns:
void