|
jBNC Toolbox | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjbnc.measures.QualityMeasure
jbnc.measures.QualityMeasureSB
Measure the quality of the bayesian network on the dataset using asymptotic estimate of the standard bayes measure.
q = sumi =1...n sum j =0...ri sumk =1...si Nijk log Nijk / N ij - 1/2 Dim (B ) log N
where Nijk means that variable Xi is in configuration j and parents of variable Xi are in configuration k , Dim (B ) is the dimension of the network, N is the number of cases in the training data set.
E. Castillo, J. M. Gutierrez and A. S. Hadi, Expert Systems and Probabilistic Network Models , Springer, 1997. p.494, eq.(11.28).
Field Summary |
Fields inherited from class jbnc.measures.QualityMeasure |
alphaK, dataset, usePriors |
Constructor Summary | |
QualityMeasureSB()
Constructor for the QualityMeasureSB object |
|
QualityMeasureSB(DatasetInt dataset)
Constructor for the QualityMeasureSB object |
Method Summary | |
double |
evaluate(BayesianNetworks.BayesNet net)
Description of the Method |
java.lang.String |
getName()
Gets the Name attribute of the QualityMeasureSB object |
Methods inherited from class jbnc.measures.QualityMeasure |
getAlphaK, getUsePriors, setAlphaK, setDataset, setUsePriors |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public QualityMeasureSB()
public QualityMeasureSB(DatasetInt dataset)
dataset
- Description of ParameterMethod Detail |
public java.lang.String getName()
getName
in class QualityMeasure
public final double evaluate(BayesianNetworks.BayesNet net) throws java.lang.Exception
evaluate
in class QualityMeasure
net
- 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 |