mulan.evaluation
Class MultipleEvaluation

java.lang.Object
  extended by mulan.evaluation.MultipleEvaluation

public class MultipleEvaluation
extends Object

Simple class that includes an array, whose elements are lists of evaluation evaluations. Used to compute means and standard deviations of multiple evaluations (e.g. cross-validation)

Author:
Grigorios Tsoumakas

Constructor Summary
MultipleEvaluation(Evaluation[] someEvaluations, MultiLabelInstances data)
          Constructs a new object with given array of evaluations
MultipleEvaluation(MultiLabelInstances data)
          Constructs a new object
 
Method Summary
 void addEvaluation(Evaluation evaluation)
          Adds an evaluation results to the list of evaluations
 void calculateStatistics()
          Computes mean and standard deviation of all evaluation measures
 double getMean(String measureName)
          Returns the mean value of a measure
 String toCSV()
          Returns a CSV string representation of the results
 String toString()
          Returns a string with the results of the evaluation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MultipleEvaluation

public MultipleEvaluation(MultiLabelInstances data)
Constructs a new object

Parameters:
data - the evaluation data used for obtaining label names for per outputting per label values of macro average measures

MultipleEvaluation

public MultipleEvaluation(Evaluation[] someEvaluations,
                          MultiLabelInstances data)
Constructs a new object with given array of evaluations

Parameters:
data - the evaluation data used for obtaining label names for per outputting per label values of macro average measures
someEvaluations -
Method Detail

calculateStatistics

public void calculateStatistics()
Computes mean and standard deviation of all evaluation measures


addEvaluation

public void addEvaluation(Evaluation evaluation)
Adds an evaluation results to the list of evaluations

Parameters:
evaluation - an evaluation result

toString

public String toString()
Returns a string with the results of the evaluation

Overrides:
toString in class Object
Returns:
a string with the results of the evaluation

getMean

public double getMean(String measureName)
Returns the mean value of a measure

Parameters:
measureName - the name of the measure
Returns:
the mean value of the measure

toCSV

public String toCSV()
Returns a CSV string representation of the results

Returns:
a CSV string representation of the results