|
jBNC Toolbox | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jbnc.measures.QualityMeasure
Implements an abstract quality measure used by search algorithms to rank Bayesian networks.
Field Summary | |
protected double |
alphaK
Value of the prior. |
protected DatasetInt |
dataset
|
protected boolean |
usePriors
Flag indicating use of priors. |
Constructor Summary | |
QualityMeasure()
Default constructor. |
|
QualityMeasure(DatasetInt dataset)
Create a quality measure based on a dataset. |
Method Summary | |
abstract double |
evaluate(BayesianNetworks.BayesNet net)
Calculate the quality measure for the given network and data set. |
double |
getAlphaK()
Gets value of the prior. |
abstract java.lang.String |
getName()
Gets name of the quality measure. |
boolean |
getUsePriors()
Gets usePriors flag. |
void |
setAlphaK(double alphaK)
Sets value of the prior. |
void |
setDataset(DatasetInt dataset)
Sets dataset used for grading Bayesian networks. |
void |
setUsePriors(boolean usePriors)
Sets usePriors flag. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected DatasetInt dataset
protected boolean usePriors
protected double alphaK
Constructor Detail |
public QualityMeasure()
public QualityMeasure(DatasetInt dataset)
dataset
- Description of ParameterMethod Detail |
public void setDataset(DatasetInt dataset)
dataset
- The new Dataset valuepublic void setUsePriors(boolean usePriors)
usePriors
- The new UsePriors valuepublic void setAlphaK(double alphaK)
alphaK
- The new AlphaK valuepublic abstract java.lang.String getName()
public boolean getUsePriors()
public double getAlphaK()
public abstract double evaluate(BayesianNetworks.BayesNet net) throws java.lang.Exception
net
- Network to be evaluated.
java.lang.Exception
- Description of Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |