|
jBNC Toolbox | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjbnc.inducers.BayesianInducer
Abstract class for Bayesian network inducers.
Nested Class Summary | |
protected class |
BayesianInducer.NetLayout
Network layout. |
Field Summary | |
protected boolean |
debugMode
|
protected static double |
DEFAULT_APLHA_IJK
|
protected BayesianInducer.NetLayout |
layout
|
protected BayesianNetworks.BayesNet |
net
Bayesian network representing the classifier. |
protected QualityMeasure |
qualityMeasure
Some Bayesian network inducers may use a quality measure to select the most optimal networ architecture for a given training data set. |
Constructor Summary | |
BayesianInducer()
|
Method Summary | |
protected void |
clean()
Clean member variables. |
boolean |
getDebugMode()
Gets the debug mode flag. |
BayesianNetworks.BayesNet |
getNetwork()
Gets Bayesian network representing the classifier. |
QualityMeasure |
getQualityMeasure()
Gets the current quality measure. |
void |
reset()
Reset the inducer. |
void |
setDebugMode(boolean mode)
Sets the debug mode flag. |
void |
setQualityMeasure(QualityMeasure qualityMeasure)
Sets new quality measure. |
void |
train(FrequencyCalc fc)
Construct bayesian network from the training data |
abstract void |
train(FrequencyCalc fc,
boolean usePriors,
double alpha_ijk)
Construct bayesian network from the training data |
protected void |
verifyDataset(DatasetInt dataset)
Check validity of the dataset. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static final double DEFAULT_APLHA_IJK
protected BayesianNetworks.BayesNet net
protected BayesianInducer.NetLayout layout
protected boolean debugMode
protected QualityMeasure qualityMeasure
Constructor Detail |
public BayesianInducer()
Method Detail |
public void setDebugMode(boolean mode)
mode
- The new DebugMode valuepublic void setQualityMeasure(QualityMeasure qualityMeasure)
qualityMeasure
- The new QualityMeasure valuepublic BayesianNetworks.BayesNet getNetwork() throws java.lang.Exception
java.lang.Exception
- Description of Exceptionpublic boolean getDebugMode()
public QualityMeasure getQualityMeasure()
public void reset()
public void train(FrequencyCalc fc) throws java.lang.Exception
fc
- Description of Parameter
java.lang.Exception
- Description of Exceptionpublic abstract void train(FrequencyCalc fc, boolean usePriors, double alpha_ijk) throws java.lang.Exception
fc
- Description of ParameterusePriors
- Description of Parameteralpha_ijk
- Description of Parameter
java.lang.Exception
- Description of Exceptionprotected void clean()
protected void verifyDataset(DatasetInt dataset) throws java.lang.Exception
dataset
- Description of Parameter
java.lang.Exception
- Description of Exception
|
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |