|
Oracle Data Mining Java API Reference 10g Release 1 (10.1) B12276-01 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--oracle.dmt.odm.MiningObject | +--oracle.dmt.odm.settings.algorithm.MiningAlgorithmSettings | +--oracle.dmt.odm.settings.algorithm.AdaptiveBayesNetworkSettings
An instance of AdaptiveBayesNetworkSettings
is used to specify settings for the Adaptive Bayes Network algorithm. The settings are intended to allow the user control over build performance. The build process includes a step that finds an array of seed features. A seed feature consists of a training attribute that is statistically correlated with the target. In a training table with many attributes, many seed features may be found. The statistical procedure ranks the seed features with respect to their statistical correlation. The first step consists of constructing a Naive Bayes Model of size specified by numberOfPredictorsInNBModel parameter consisting of the top ranked attributes. Subsequent steps extend each seed feature one at a time in rank order. The maximum number of seed features extended is specified by maximum predictors. Each step must yield a model of smaller description length or it is rejected. The initial baseline is the global target distribution or prior. Each time a seed feature is extended, it involves a scan of the table.
To control the length of time it takes for the build, there are six user parameters:
Constructor Summary | |
AdaptiveBayesNetworkSettings() Creates a AdaptiveBayesNetworkSettings default settings object. | |
AdaptiveBayesNetworkSettings(int maximumNetworkFeatureDepth) Creates an AdaptiveBayesNetworkSettings. | |
AdaptiveBayesNetworkSettings(int maximumNetworkFeatureDepth, int maximumPredictors) Creates an AdaptiveBayesNetworkSettings. | |
AdaptiveBayesNetworkSettings(int maximumNetworkFeatureDepth, int maximumPredictors, ABNModelBuildType modelBuildType) Creates an AdaptiveBayesNetworkSettings | |
AdaptiveBayesNetworkSettings(int maximumNetworkFeatureDepth, int maximumNumberOfNetworkFeatures, int maximumConsecutivePrunedNetworkFeatures) Deprecated. As of ODM 9.2.0.4 | |
AdaptiveBayesNetworkSettings(int maximumNetworkFeatureDepth, int maximumPredictors, int maximumBuildTime, ABNModelBuildType modelBuildType) Creates an AdaptiveBayesNetworkSettings | |
AdaptiveBayesNetworkSettings(int maximumNetworkFeatureDepth, int maximumNumberOfNetworkFeatures, int maximumConsecutivePrunedNetworkFeatures, int maximumBuildTime) Deprecated. As of ODM 9.2.0.4 | |
AdaptiveBayesNetworkSettings(int maximumNetworkFeatureDepth, int maximumConsecutivePrunedNetworkFeatures, int maximumPredictors, int numberOfPredictorsInNBModel, int maximumBuildTime, ABNModelBuildType modelBuildType) Creates an AdaptiveBayesNetworkSettings |
Method Summary | |
int |
getMaximumBuildTime() Returns the maximum build time. |
int |
getMaximumConsecutivePrunedNetworkFeatures() Returns the maximum number of consecutive pruned features before halting the stepwise selection process. |
int |
getMaximumNetworkFeatureDepth() Returns the maximum depth of any NetworkFeature. |
int |
getMaximumNumberOfNetworkFeatures() Deprecated. As of ODM 9.2.0.4, this method is replaced by getMaxPredictors and getNaiveBayesNumPredictors . |
int |
getMaximumPredictors() Returns maximum number of predictors chosen during predictor selection phase, any data. |
ABNModelBuildType |
getModelBuildType() Returns the model build type. |
int |
getNaiveBayesNumberPredictors() Returns the number of predictors in the NB model. |
void |
setMaximumBuildTime(int maximumBuildTime) Sets the maximum build time. |
void |
setMaximumConsecutivePrunedNetworkFeatures(int maximumConsecutivePrunedNetworkFeatures) Sets the maximum number of consecutive pruned features before halting the stepwise selection process. |
void |
setMaximumNetworkFeatureDepth(int maximumNetworkFeatureDepth) Sets the maximum depth of any NetworkFeature. |
void |
setMaximumNumberOfNetworkFeatures(int maximumNumberOfNetworkFeatures) Deprecated. As of ODM 9.2.0.4, this method is replaced by setMaxPredictors and setNaiveBayesNumPredictors . |
void |
setMaximumPredictors(int maximumPredictors) Sets maximum number of predictors chosen during predictor selection phase. |
void |
setModelBuildType(ABNModelBuildType modelBuildType) Sets model build type. |
void |
setNaiveBayesNumberPredictors(int numberOfPredictorsInNBModel) Sets the number of predictors in the Naive Bayes model. |
void |
validate() Validates all settings. |
Methods inherited from class oracle.dmt.odm.settings.algorithm.MiningAlgorithmSettings |
getMiningAlgorithm, getMiningAlgorithmName |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public AdaptiveBayesNetworkSettings()
AdaptiveBayesNetworkSettings
default settings object.public AdaptiveBayesNetworkSettings(int maximumNetworkFeatureDepth) throws InvalidArgumentException
maximumNetworkFeatureDepth
- maximum depth of any NetworkFeature. Setting closer to 1 builds the model faster. Set to 1 if the number of attributes is greater than the number of rows or the number of rows is < 300. Set to 0 for unrestricted depth.InvalidArgumentException
- when the maximumNetworkFeatureDepth < 0.public AdaptiveBayesNetworkSettings(int maximumNetworkFeatureDepth, int maximumPredictors) throws InvalidArgumentException
maximumNetworkFeatureDepth
- maximum depth of any NetworkFeature. Setting closer to 1 builds the model faster. Set to 1 if the number of attributes is greater than the number of rows or the number of rows is < 300. Set to 0 for unrestricted depth.maximumPredictors
- maximum number of predictors chosen during predictor selection phase.InvalidArgumentException
-
public AdaptiveBayesNetworkSettings(int maximumNetworkFeatureDepth, int maximumPredictors, ABNModelBuildType modelBuildType) throws InvalidArgumentException
maximumNetworkFeatureDepth
- maximum depth of any NetworkFeature. Setting closer to 1 builds the model faster. Set to 1 if the number of attributes is greater than the number of rows or the number of rows is < 300. Set to 0 for unrestricted depth.maximumPredictors
- maximum number of predictors chosen during predictor selection phase.modelBuildType
- model build type.InvalidArgumentException
-
public AdaptiveBayesNetworkSettings(int maximumNetworkFeatureDepth, int maximumPredictors, int maximumBuildTime, ABNModelBuildType modelBuildType) throws InvalidArgumentException
maximumNetworkFeatureDepth
- maximum depth of any NetworkFeature. Setting closer to 1 builds the model faster. Set to 1 if the number of attributes is greater than the number of rows or the number of rows is < 300. Set to 0 for unrestricted depth.maximumPredictors
- maximum number of predictors chosen during predictor selection phase.maximumBuildTime
- maximum build time. Set to 0 for no time limit.modelBuildType
- model build type.InvalidArgumentException
-
public AdaptiveBayesNetworkSettings(int maximumNetworkFeatureDepth, int maximumNumberOfNetworkFeatures, int maximumConsecutivePrunedNetworkFeatures) throws InvalidArgumentException
maximumNetworkFeatureDepth
- maximum depth of any NetworkFeature. Setting closer to 1 builds the model faster. Set to 1 if the number of attributes is greater than the number of rows or the number of rows is < 300.maximumNumberOfNetworkFeatures
- maximum number of seed NetworkFeatures trees that are candidates for extension and size of baseline Naive Bayes model. Setting closer to 1 builds the model faster. Can be set to the number of attributes.maximumConsecutivePrunedNetworkFeatures
- maximum number of consecutive pruned features before halting the stepwise selection process. Negative value specifies that only a single feature and the baseline Naive Bayes model will be constructed. Setting closer to 1 builds the model faster. Set to -1 when the number of rows > 300,000 and the number of attributes > 40.InvalidArgumentException
-
public AdaptiveBayesNetworkSettings(int maximumNetworkFeatureDepth, int maximumNumberOfNetworkFeatures, int maximumConsecutivePrunedNetworkFeatures, int maximumBuildTime) throws InvalidArgumentException
maximumNetworkFeatureDepth
- maximum depth of any NetworkFeature. Setting closer to 1 builds the model faster. Set to 1 if the number of attributes is greater than the number of rows or the number of rows is < 300.maximumNumberOfNetworkFeatures
- maximum number of seed NetworkFeatures trees that are candidates for extension and size of baseline Naive Bayes model. Setting closer to 1 builds the model faster. Can be set to the number of attributes.maximumConsecutivePrunedNetworkFeatures
- maximum number of consecutive pruned features before halting the stepwise selection process. Negative value specifies that only a single feature and the baseline Naive Bayes model will be constructed. Setting closer to 1 builds the model faster. Negative values are fastest. Set to -1 when the number of rows > 300,000 and the number of attributes > 40.maximumBuildTime
- maximum build timeInvalidArgumentException
-
public AdaptiveBayesNetworkSettings(int maximumNetworkFeatureDepth, int maximumConsecutivePrunedNetworkFeatures, int maximumPredictors, int numberOfPredictorsInNBModel, int maximumBuildTime, ABNModelBuildType modelBuildType) throws InvalidArgumentException
maximumNetworkFeatureDepth
- maximum depth of any NetworkFeature. Setting closer to 1 builds the model faster. Set to 1 if the number of attributes is greater than the number of rows or the number of rows is < 300. Set to 0 for unrestricted depth.maximumConsecutivePrunedNetworkFeatures
- maximum number of consecutive pruned features before halting the stepwise selection process. This setting is ignored if the model type is not MultiFeatureBuild.maximumPredictors
- maximum number of predictors chosen during predictor selection phase.numberOfPredictorsInNBModel
- number of predictors in the NB model. This setting is ignored if the model type is neither NaiveBayesBuild nor MultiFeatureBuild.maximumBuildTime
- maximum build time. Set to 0 for no time limit.modelBuildType
- model build type.InvalidArgumentException
-
Method Detail |
public int getMaximumNetworkFeatureDepth()
public int getMaximumNumberOfNetworkFeatures()
getMaxPredictors
and getNaiveBayesNumPredictors
.public int getMaximumPredictors()
public int getNaiveBayesNumberPredictors()
public int getMaximumConsecutivePrunedNetworkFeatures()
public int getMaximumBuildTime()
public ABNModelBuildType getModelBuildType()
public void setMaximumNetworkFeatureDepth(int maximumNetworkFeatureDepth) throws InvalidArgumentException
maximumNetworkFeatureDepth
- maximum depth of any NetworkFeature. Setting closer to 1 builds the model faster. Set to 1 if the number of attributes is greater than the number of rows or the number of rows is < 300. Set to 0 for unrestricted depth.InvalidArgumentException
- when the maximumNetworkFeatureDepth < 0.public void setMaximumNumberOfNetworkFeatures(int maximumNumberOfNetworkFeatures) throws InvalidArgumentException
setMaxPredictors
and setNaiveBayesNumPredictors
.maximumNumberOfNetworkFeatures
- maximum number of seed NetworkFeatures trees that are candidates for extension and size of baseline Naive Bayes model. Setting closer to 1 builds the model faster. Can be set to the number of attributes.InvalidArgumentException
- is thrown when the maximumNumberOfNetworkFeatures < 0.InvalidArgumentException
public void setMaximumPredictors(int maximumPredictors) throws InvalidArgumentException
maximumPredictors
- maximum number of predictors chosen during predictor selection phase.InvalidArgumentException
- when the maximumPredictors < 1.public void setNaiveBayesNumberPredictors(int numberOfPredictorsInNBModel) throws InvalidArgumentException
numberOfPredictorsInNBModel
- number of predictors in the Naive Bayes model. This setting is ignored if the model type is neither NaiveBayesBuild nor MultiFeatureBuild.InvalidArgumentException
- when model build type is NaiveBayesBuild or MultiFeatureBuild and numberOfPredictorsInNBModel < 1.public void setMaximumConsecutivePrunedNetworkFeatures(int maximumConsecutivePrunedNetworkFeatures) throws InvalidArgumentException
maximumConsecutivePrunedNetworkFeatures
- maximum number of consecutive pruned features before halting the stepwise selection process. Setting closer to 1 builds the model faster. This setting is ignored if the model type is not MultiFeatureBuild.InvalidArgumentException
- when model build type is MultiFeatureBuild and maximumConsecutivePrunedNetworkFeatures < 1.public void setMaximumBuildTime(int maximumBuildTime) throws InvalidArgumentException
maximumBuildTime
- maximum build timeInvalidArgumentException
- when the maximumBuildTime < 0public void setModelBuildType(ABNModelBuildType modelBuildType)
modelBuildType
-ABNModelBuildType
public void validate() throws MiningObjectException
validate
in class MiningAlgorithmSettings
MiningObjectException
-
|
| |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |