edu.ksu.cis.bnj.bbn.inference
Class ApproximateInference
java.lang.Object
edu.ksu.cis.bnj.bbn.inference.Inference
edu.ksu.cis.bnj.bbn.inference.ApproximateInference
- All Implemented Interfaces:
- Optionable
- Direct Known Subclasses:
- MCMC
- public abstract class ApproximateInference
- extends Inference
Approximate Inference abstract class
- Author:
- Roby Joehanes
Methods inherited from class edu.ksu.cis.bnj.bbn.inference.Inference |
execute, getCurrentOptions, getDefaultOptions, getGraph, getMAP, getMarginals, getMarginalsResult, getMPE, getName, getOptionsDialog, getOutputFile, getRunType, load, setGraph, setOption, setOptions, setOutputFile, setRunType |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
rmseWriter
protected RMSECalculator rmseWriter
ApproximateInference
public ApproximateInference()
ApproximateInference
public ApproximateInference(BBNGraph g)
- Constructor for ApproximateInference.
- Parameters:
g
-
setRMSEfile
public void setRMSEfile(java.io.OutputStream out)
- Sets the file to print the RMSE values of each sample to
computeRMSE
public double computeRMSE(ExactInference exact)
- Compute the Root Mean Square Error (RMSE) value between exact and inexact
inference. Does some validation
- Parameters:
exact
- The exact inference
- Returns:
- double The RMSE result
getRMSEWriter
public RMSECalculator getRMSEWriter()