protected class ClassifierPerformanceEvaluator.EvaluationTask extends java.lang.Object implements java.lang.Runnable, Task
| Modifier and Type | Field and Description |
|---|---|
protected Classifier |
m_classifier |
protected java.lang.String |
m_evalLabel |
protected int |
m_maxSetNum |
protected int |
m_setNum |
protected boolean |
m_stopped |
protected Instances |
m_testData |
protected Instances |
m_trainData |
| Constructor and Description |
|---|
EvaluationTask(Classifier classifier,
Instances trainData,
Instances testData,
int setNum,
int maxSetNum,
java.lang.String evalLabel)
Constructor for an EvaluationTask
|
| Modifier and Type | Method and Description |
|---|---|
void |
execute()
Execute this task.
|
TaskStatusInfo |
getTaskStatus()
Clients should be able to call this method at any time to obtain
information on a current task.
|
void |
run() |
void |
setStopped() |
protected Instances m_testData
protected Instances m_trainData
protected int m_setNum
protected int m_maxSetNum
protected Classifier m_classifier
protected boolean m_stopped
protected java.lang.String m_evalLabel
public EvaluationTask(Classifier classifier, Instances trainData, Instances testData, int setNum, int maxSetNum, java.lang.String evalLabel)
classifier - the classifier being evaluatedtrainData - the training datatestData - the test datasetNum - the set numbermaxSetNum - maximum number of setseventLabel - the label to associate with this evaluation (for
charting)public void setStopped()
public void run()
run in interface java.lang.Runnablepublic void execute()
Taskpublic TaskStatusInfo getTaskStatus()
TaskgetTaskStatus in interface Task