oracle.dmt.odm.settings.algorithm
Class CombinationNaiveBayesSettings
java.lang.Object
|
+--oracle.dmt.odm.MiningObject
|
+--oracle.dmt.odm.settings.algorithm.MiningAlgorithmSettings
|
+--oracle.dmt.odm.settings.algorithm.CombinationNaiveBayesSettings
- All Implemented Interfaces:
- java.io.Serializable
- public class CombinationNaiveBayesSettings
- extends MiningAlgorithmSettings
An instance of CombinationNaiveBayesSettings
is used to specify
multiple settings for the Naive Bayes algorithm
to be used by Model Seeker.
As an example, assume that the values in the pairwiseThresholdArray
argument are 0.1 and 0.2, and
the values in the singletonThresholdArray
argument are 0.03 and 0.05.
If the pairsOption
paramater is parallelPairs
, there will be two Naive Bayes models built,
one with pairwise threshold 0.1 and singleton threshold 0.03, and the other with pairwise
threshold 0.2 and singleton threshold 0.05.
If the pairsOption
paramater is crossProduct
, there will be four Naive Bayes models built,
with pariwise and singleton threshold values as follows: (1) 0.1 and 0.03, (2) 0.1 and 0.05, (3) 0.2 and 0.03,
(4) 0.2 and 0.05.
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CombinationNaiveBayesSettings
public CombinationNaiveBayesSettings(PairCombinationsOption pairsOption,
float[] singleThresholdArray,
float[] pairwiseThresholdArray)
throws InvalidArgumentException
- Creates a
CombinationNaiveBayesSettings
object.
- Parameters:
pairsOption
- Specifies how pair combinations of values from the two arrays will be generated while creating the NaiveBayesSettings
instances.singleThresholdArray
- An array of float values for the singleThreshold
attribute of a NaiveBayesSettings
object. All values must be >= 0 and < 1. The array size must be > 0 and <= 20.pairwiseThresholdArray
- An array of float values for the pairwiseThreshold
attribute of a NaiveBayesSettings
object. All values must be >= 0 and < 1. The array size must be > 0 and <= 20.- Throws:
InvalidArgumentException
- one or both arrays are null
- either or both array size is < 1 or is > 20
- one or more array elements have a value < 0.0 or > 1.0
- the option is parallelPairs and the arrays are not the same size
If an array is null or the size is < 1 or is > 20, the exception message identifies the first array
found to be bad.
If an array value is < 0.0 or > 1.0, the exception message identifies the first array with such an invalid value,
and the first element in the array that has an invalid value.
getPairsOption
public PairCombinationsOption getPairsOption()
- Returns the option value that determines the way in which pair combinations are created.
- Returns:
- The option value that determines whether the arrays of singleton and pairwise
threshold values are to be combined.
getSingletonThresholdArray
public float[] getSingletonThresholdArray()
- Returns an array of values as specified for the singleton threshhold.
- Returns:
- The array of values for the singleton threshold
For more details see NaiveBayesSettings
class,
getSingletonThreshold
method.
getPairwiseThresholdArray
public float[] getPairwiseThresholdArray()
- Returns an array of values as specified for the pairwise threshhold.
- Returns:
- The array of values for the pairwise threshold
For more details see NaiveBayesSettings
class,
getPairwiseThreshold
method.