|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectmulan.evaluation.measure.MeasureBase
mulan.evaluation.measure.BipartitionMeasureBase
mulan.evaluation.measure.LabelBasedBipartitionMeasureBase
public abstract class LabelBasedBipartitionMeasureBase
Base class for label-based bipartition measures
| Field Summary | |
|---|---|
protected double[] |
falseNegatives
the number of false negative for each label |
protected double[] |
falsePositives
the number of false positives for each label |
protected int |
numOfLabels
the number of labels |
protected double[] |
trueNegatives
the number of true negatives for each label |
protected double[] |
truePositives
the number of true positives for each label |
| Constructor Summary | |
|---|---|
LabelBasedBipartitionMeasureBase(int aNumOfLabels)
Creates a new instance of this class |
|
| Method Summary | |
|---|---|
void |
reset()
Resets the cumulated measure value, so the process of computation can be started from beginning (e.g. for a new series of outputs from learning task). |
void |
updateBipartition(boolean[] bipartition,
boolean[] truth)
Updates the measure based on an example |
| Methods inherited from class mulan.evaluation.measure.BipartitionMeasureBase |
|---|
updateInternal |
| Methods inherited from class mulan.evaluation.measure.MeasureBase |
|---|
makeCopy, toString, update |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface mulan.evaluation.measure.Measure |
|---|
getIdealValue, getName, getValue |
| Field Detail |
|---|
protected int numOfLabels
protected double[] falseNegatives
protected double[] truePositives
protected double[] falsePositives
protected double[] trueNegatives
| Constructor Detail |
|---|
public LabelBasedBipartitionMeasureBase(int aNumOfLabels)
aNumOfLabels - the number of labels| Method Detail |
|---|
public void updateBipartition(boolean[] bipartition,
boolean[] truth)
BipartitionMeasureBase
updateBipartition in class BipartitionMeasureBasebipartition - the predicted bipartitiontruth - the ground truthpublic void reset()
Measure
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||