unbbayes.evaluation
Class MemoryEfficientApproximateEvaluation
java.lang.Object
unbbayes.evaluation.AEvaluation
unbbayes.evaluation.MemoryEfficientApproximateEvaluation
- All Implemented Interfaces:
- IEvaluation, ILongTaskProgressObservable
public class MemoryEfficientApproximateEvaluation
- extends AEvaluation
Fields inherited from class unbbayes.evaluation.AEvaluation |
currentProgress, currentProgressStatus, evidenceEvaluationList, evidenceNodeList, evidenceSetCM, evidenceSetPCC, evidenceStatesProduct, factors, lastProgressUpdated, maxProgress, net, statesProduct, targetNodeList, targetStatesProduct, UNSET_VALUE |
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 |
MemoryEfficientApproximateEvaluation
public MemoryEfficientApproximateEvaluation(int sampleSize)
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.