|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Measure
Interface for a measure, used to evaluate the performance of a multi-label learner on when performing multi-label learning task. Various measures capture different characteristics of a learning task performance.
Method Summary | |
---|---|
double |
getIdealValue()
Gets an 'ideal' value of a measure. |
String |
getName()
Gets the name of a measure. |
double |
getValue()
Gets the value of a measure. |
Measure |
makeCopy()
Creates a deep copy of the given measure using serialization. |
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 |
update(MultiLabelOutput prediction,
boolean[] truth)
Computes the value of a measure for the given prediction and true labels. |
Method Detail |
---|
String getName()
double getValue()
update(MultiLabelOutput, boolean[])
call. The value
returned by the method, returns sum of all update calls divided by the number
of calls (average of all measures for all predictions).
double getIdealValue()
void update(MultiLabelOutput prediction, boolean[] truth)
prediction
- the prediction for which measure has to be computedtruth
- the true labels bipartition for given predictiongetValue()
Measure makeCopy() throws Exception
Exception
- if an error occurs while making copy of the measure.void reset()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |