uk.ac.ed.inf.taweka.mulan.learn
Class MulanEvaluator
java.lang.Object
mulan.evaluation.Evaluator
uk.ac.ed.inf.taweka.mulan.learn.MulanEvaluator
public class MulanEvaluator
- extends mulan.evaluation.Evaluator
Class created to execute cross-evaluations and extract individual evaluation
results (not possible from the Mulan class Evaluator, because only averaged
results are returned). Calls ResultsOutput to save the results to
database.
- Version:
- 8 Jun 2010
- Author:
- Luna De Ferrari luna.deferrari-at-ed.ac.uk
| Fields inherited from class mulan.evaluation.Evaluator |
DEFAULTFOLDS |
| Methods inherited from class mulan.evaluation.Evaluator |
crossValidate, crossValidate, crossValidate, crossValidate, evaluate, evaluate |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MulanEvaluator
public MulanEvaluator(MulanExperimenter experimenter)
- Parameters:
experimenter -
crossValidate
public void crossValidate(mulan.data.MultiLabelInstances mlDataSet,
int numFolds,
int seed)
throws java.lang.Exception
- Evaluates a
MultiLabelLearner via cross-validation on given data
set with defined number of folds. The specified number of folds has to be
at least two. If negative value is specified, the used number of folds is
equal to number of instances in the data set. Also saves the data to file
and database.
- Parameters:
learner - the learner to be evaluated via cross-validationmlDataSet - the multi-label data set for cross-validationnumFolds - the number of folds to be used
- Throws:
java.lang.IllegalArgumentException - if either of learner or data set parameters is null
java.lang.IllegalArgumentException - if number of folds is invalid
java.lang.Exception
evaluate
public java.lang.String evaluate(mulan.data.MultiLabelInstances mlDataSet,
int numFolds)
- Evaluates (runs a cross validation)
- Parameters:
mlDataSet - numFolds -
- Returns:
- the sql timestamp of the end of the crossevaluation
getArffFilePath
public java.lang.String getArffFilePath()
getEndTime
public java.lang.String getEndTime()
getEvaluations
public mulan.evaluation.Evaluation[] getEvaluations()
getExperimenter
public MulanExperimenter getExperimenter()
getLearner
public MulanLearner getLearner()
getStartTime
public java.lang.String getStartTime()
getXmlFilePath
public java.lang.String getXmlFilePath()