|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--edu.uiuc.ge.illigal.gale.agents.BatchPerformance
Implements the AgentPerformance for batch learning.
Field Summary | |
protected int |
iCls
Number of classes |
protected int |
iDontKnow
Number of unclassified classified instances |
protected int[][] |
imConfusion
Confusion matrix |
protected int |
iTotal
Number of classified instances |
Constructor Summary | |
BatchPerformance(edu.uiuc.ge.illigal.gale.config.GALEConfiguration galeCnf)
Initializes the performance object using the given configuration. |
Method Summary | |
java.lang.Object |
clone()
Clones the current IncrementalLearning Performance object. |
boolean |
equals(java.lang.Object obj)
Compares if the performances are equal |
float |
getAccuracy()
Provides the overall classification performance information. |
int[][] |
getConfusionMatrix()
Returns the confusion matrix. |
int |
getDontKnow()
Returns the total number of unclassified instances |
float |
getScaledAccuracy()
Provides the overall classification performance information. |
int |
getTotal()
Returns the total number of classified instances |
void |
reset()
Resets all the performance information contained. |
java.lang.String |
toString()
Converts the information into a string |
void |
update(int iCls,
int iReal)
Updates the performance information. |
Methods inherited from class java.lang.Object |
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected int[][] imConfusion
protected int iDontKnow
protected int iTotal
protected int iCls
Constructor Detail |
public BatchPerformance(edu.uiuc.ge.illigal.gale.config.GALEConfiguration galeCnf)
galeCnf
- The GALE environment configurationMethod Detail |
public int[][] getConfusionMatrix()
AgentPerformance
getConfusionMatrix
in interface AgentPerformance
public int getDontKnow()
AgentPerformance
getDontKnow
in interface AgentPerformance
public int getTotal()
AgentPerformance
getTotal
in interface AgentPerformance
public float getAccuracy()
AgentPerformance
getAccuracy
in interface AgentPerformance
public float getScaledAccuracy()
AgentPerformance
getScaledAccuracy
in interface AgentPerformance
public void update(int iCls, int iReal)
AgentPerformance
update
in interface AgentPerformance
iCls
- The predicted classiReal
- The real classpublic void reset()
AgentPerformance
reset
in interface AgentPerformance
public boolean equals(java.lang.Object obj)
AgentPerformance
equals
in interface AgentPerformance
equals
in class java.lang.Object
obj
- the performance to be compared with
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
AgentPerformance
clone
in interface AgentPerformance
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
- The object could not be clonedpublic java.lang.String toString()
AgentPerformance
toString
in interface AgentPerformance
toString
in class java.lang.Object
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |