|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectunbbayes.evaluation.AEvaluation
public abstract class AEvaluation
| Field Summary | |
|---|---|
protected int |
currentProgress
|
protected String |
currentProgressStatus
|
protected List<EvidenceEvaluation> |
evidenceEvaluationList
|
protected TreeVariable[] |
evidenceNodeList
|
protected float[][] |
evidenceSetCM
|
protected float |
evidenceSetPCC
|
protected int |
evidenceStatesProduct
|
protected int[] |
factors
|
protected int |
lastProgressUpdated
|
protected int |
maxProgress
|
protected ProbabilisticNetwork |
net
|
protected int |
statesProduct
|
protected TreeVariable[] |
targetNodeList
|
protected int |
targetStatesProduct
|
static float |
UNSET_VALUE
|
| Constructor Summary | |
|---|---|
AEvaluation()
|
|
| Method Summary | |
|---|---|
protected abstract float[][] |
computeCM(List<String> targetNodeNameList,
List<String> evidenceNodeNameList)
|
protected void |
computeFactors()
Calculate the factors necessary to transform the linear coordinate into a multidimensional one (which is the the state for each possible node - target and evidence). |
protected void |
evaluate(List<String> targetNodeNameList,
List<String> evidenceNodeNameList,
boolean onlyGCM)
|
void |
evaluate(ProbabilisticNetwork net,
List<String> targetNodeNameList,
List<String> evidenceNodeNameList,
boolean onlyGCM)
|
void |
evaluate(String netFileName,
List<String> targetNodeNameList,
List<String> evidenceNodeNameList,
boolean onlyGCM)
|
List<EvidenceEvaluation> |
getBestIndividualCostRate()
|
List<EvidenceEvaluation> |
getBestIndividualPCC()
|
List<EvidenceEvaluation> |
getBestMarginalImprovement()
|
int |
getCurrentProgress()
The current number of this long task progress. |
String |
getCurrentProgressStatus()
Returns a message with a description of the current status of the long task progress. |
abstract float |
getError()
|
List<EvidenceEvaluation> |
getEvidenceEvaluationList()
|
protected int |
getEvidenceLinearCoord(int[] multidimensionalCoord)
Get the evidence linear coordinate from the multidimensional one. |
float[][] |
getEvidenceSetCM()
|
float |
getEvidenceSetPCC()
|
protected int |
getLinearCoord(int[] multidimensionalCoord)
Get the linear coordinate from the multidimensional one. |
int |
getMaxProgress()
The maximum number allowed for this long task progress. |
protected int[] |
getMultidimensionalCoord(int linearCoord)
Get the multidimensional coordinate from the linear one. |
int |
getPercentageDone()
Returns the percentage of the progress done so far. |
protected void |
init(List<String> targetNodeNameList,
List<String> evidenceNodeNameList)
It creates the target and evidence node list of TreeVariable and the
product of the target, evidence and total states. |
protected void |
loadNetwork(String netFileName)
|
void |
notityObservers(LongTaskProgressChangedEvent event)
|
void |
registerObserver(ILongTaskProgressObserver observer)
|
void |
removeObserver(ILongTaskProgressObserver observer)
|
protected static void |
show(float[][] a)
|
protected void |
updateProgress(int progress)
|
protected void |
updateProgress(int progress,
String progressStatus)
As this progress is an approximation, it is going to be updated until it reaches 98%. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected ProbabilisticNetwork net
protected int targetStatesProduct
protected TreeVariable[] targetNodeList
public static final float UNSET_VALUE
protected TreeVariable[] evidenceNodeList
protected int statesProduct
protected int evidenceStatesProduct
protected float[][] evidenceSetCM
protected float evidenceSetPCC
protected List<EvidenceEvaluation> evidenceEvaluationList
protected int[] factors
protected int maxProgress
protected int currentProgress
protected String currentProgressStatus
protected int lastProgressUpdated
| Constructor Detail |
|---|
public AEvaluation()
| Method Detail |
|---|
public List<EvidenceEvaluation> getEvidenceEvaluationList()
getEvidenceEvaluationList in interface IEvaluationpublic float[][] getEvidenceSetCM()
getEvidenceSetCM in interface IEvaluationpublic abstract float getError()
getError in interface IEvaluation
public float getEvidenceSetPCC()
throws EvaluationException
getEvidenceSetPCC in interface IEvaluationEvaluationException
public List<EvidenceEvaluation> getBestIndividualPCC()
throws EvaluationException
getBestIndividualPCC in interface IEvaluationEvaluationException
public List<EvidenceEvaluation> getBestIndividualCostRate()
throws EvaluationException
getBestIndividualCostRate in interface IEvaluationEvaluationException
public List<EvidenceEvaluation> getBestMarginalImprovement()
throws EvaluationException
getBestMarginalImprovement in interface IEvaluationEvaluationException
public void evaluate(String netFileName,
List<String> targetNodeNameList,
List<String> evidenceNodeNameList,
boolean onlyGCM)
throws LoadException,
IOException,
javax.xml.bind.JAXBException,
EvaluationException
evaluate in interface IEvaluationLoadException
IOException
javax.xml.bind.JAXBException
EvaluationException
public void evaluate(ProbabilisticNetwork net,
List<String> targetNodeNameList,
List<String> evidenceNodeNameList,
boolean onlyGCM)
throws EvaluationException
evaluate in interface IEvaluationEvaluationException
protected void evaluate(List<String> targetNodeNameList,
List<String> evidenceNodeNameList,
boolean onlyGCM)
throws EvaluationException
EvaluationException
protected abstract float[][] computeCM(List<String> targetNodeNameList,
List<String> evidenceNodeNameList)
throws EvaluationException
EvaluationExceptionprotected void computeFactors()
protected final int getLinearCoord(int[] multidimensionalCoord)
multidimensionalCoord - Multidimensional coordinate (represented by the state for
each node).
protected final int getEvidenceLinearCoord(int[] multidimensionalCoord)
multidimensionalCoord - Multidimensional coordinate (represented by the state for
each node).
protected final int[] getMultidimensionalCoord(int linearCoord)
linearCoord - The linear coordinate.
protected void init(List<String> targetNodeNameList,
List<String> evidenceNodeNameList)
TreeVariable and the
product of the target, evidence and total states.
targetNodeNameList - List of the target nodes name.evidenceNodeNameList -
protected void loadNetwork(String netFileName)
throws LoadException,
IOException
LoadException
IOExceptionprotected static void show(float[][] a)
public void registerObserver(ILongTaskProgressObserver observer)
registerObserver in interface ILongTaskProgressObservablepublic void removeObserver(ILongTaskProgressObserver observer)
removeObserver in interface ILongTaskProgressObservablepublic void notityObservers(LongTaskProgressChangedEvent event)
notityObservers in interface ILongTaskProgressObservablepublic int getMaxProgress()
ILongTaskProgressObservable
getMaxProgress in interface ILongTaskProgressObservablepublic int getCurrentProgress()
ILongTaskProgressObservable
getCurrentProgress in interface ILongTaskProgressObservablepublic int getPercentageDone()
ILongTaskProgressObservable
getPercentageDone in interface ILongTaskProgressObservablepublic String getCurrentProgressStatus()
ILongTaskProgressObservable
getCurrentProgressStatus in interface ILongTaskProgressObservable
protected void updateProgress(int progress,
String progressStatus)
protected void updateProgress(int progress)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||