unbbayes.evaluation
Class MemoryEfficientApproximateEvaluation

java.lang.Object
  extended by unbbayes.evaluation.AEvaluation
      extended by unbbayes.evaluation.MemoryEfficientApproximateEvaluation
All Implemented Interfaces:
IEvaluation, ILongTaskProgressObservable

public class MemoryEfficientApproximateEvaluation
extends AEvaluation


Field Summary
 
Fields inherited from class unbbayes.evaluation.AEvaluation
currentProgress, currentProgressStatus, evidenceEvaluationList, evidenceNodeList, evidenceSetCM, evidenceSetPCC, evidenceStatesProduct, factors, lastProgressUpdated, maxProgress, net, statesProduct, targetNodeList, targetStatesProduct, UNSET_VALUE
 
Constructor Summary
MemoryEfficientApproximateEvaluation(int sampleSize)
           
 
Method Summary
protected  float[][] computeCM(List<String> targetNodeNameList, List<String> evidenceNodeNameList)
           
protected  void evaluate(List<String> targetNodeNameList, List<String> evidenceNodeNameList, boolean onlyGCM)
           
 float getError()
           
protected  int[] getMultidimensionalCoord(byte[] dim)
          Get the multidimensional evaluation coordinate from the monte carlo multidimensional coordinate.
static void main(String[] args)
           
 
Methods inherited from class unbbayes.evaluation.AEvaluation
computeFactors, evaluate, evaluate, getBestIndividualCostRate, getBestIndividualPCC, getBestMarginalImprovement, getCurrentProgress, getCurrentProgressStatus, getEvidenceEvaluationList, getEvidenceLinearCoord, getEvidenceSetCM, getEvidenceSetPCC, getLinearCoord, getMaxProgress, getMultidimensionalCoord, getPercentageDone, init, loadNetwork, notityObservers, registerObserver, removeObserver, show, updateProgress, updateProgress
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MemoryEfficientApproximateEvaluation

public MemoryEfficientApproximateEvaluation(int sampleSize)
Method Detail

getError

public float getError()
Specified by:
getError in interface IEvaluation
Specified by:
getError in class AEvaluation

evaluate

protected void evaluate(List<String> targetNodeNameList,
                        List<String> evidenceNodeNameList,
                        boolean onlyGCM)
                 throws EvaluationException
Overrides:
evaluate in class AEvaluation
Throws:
EvaluationException

computeCM

protected float[][] computeCM(List<String> targetNodeNameList,
                              List<String> evidenceNodeNameList)
                       throws EvaluationException
Specified by:
computeCM in class AEvaluation
Throws:
EvaluationException

getMultidimensionalCoord

protected final int[] getMultidimensionalCoord(byte[] dim)
Get the multidimensional evaluation coordinate from the monte carlo multidimensional coordinate.

Parameters:
dim - Monte carlo multidimensional coordinate.
Returns:
The corresponding multidimensional coordinate.

main

public static void main(String[] args)
                 throws Exception
Throws:
Exception


Copyright © 2001-2010 University of Brasilia - UnB. All Rights Reserved.