|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--weka.experiment.CSVResultListener | +--weka.experiment.InstancesResultListener
InstancesResultListener outputs the received results in arff format to a Writer. All results must be received before the instances can be written out.
Constructor Summary | |
InstancesResultListener()
|
Method Summary | |
void |
acceptResult(ResultProducer rp,
java.lang.Object[] key,
java.lang.Object[] result)
Collects each instance and adjusts the header information. |
java.lang.String |
globalInfo()
Returns a string describing this result listener |
void |
postProcess(ResultProducer rp)
Perform any postprocessing. |
void |
preProcess(ResultProducer rp)
Prepare for the results to be received. |
Methods inherited from class weka.experiment.CSVResultListener |
determineColumnConstraints, getOptions, getOutputFile, isResultRequired, listOptions, outputFileTipText, setOptions, setOutputFile |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public InstancesResultListener()
Method Detail |
public java.lang.String globalInfo()
globalInfo
in class CSVResultListener
public void preProcess(ResultProducer rp) throws java.lang.Exception
preProcess
in interface ResultListener
preProcess
in class CSVResultListener
rp
- the ResultProducer that will generate the results
java.lang.Exception
- if an error occurs during preprocessing.public void postProcess(ResultProducer rp) throws java.lang.Exception
postProcess
in interface ResultListener
postProcess
in class CSVResultListener
rp
- the ResultProducer that generated the results
java.lang.Exception
- if an error occurspublic void acceptResult(ResultProducer rp, java.lang.Object[] key, java.lang.Object[] result) throws java.lang.Exception
acceptResult
in interface ResultListener
acceptResult
in class CSVResultListener
rp
- the ResultProducer that generated the resultkey
- The key for the results.result
- The actual results.
java.lang.Exception
- if the result could not be accepted.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright (c) 2003 David Lindsay, Computer Learning Research Centre, Dept. Computer Science, Royal Holloway, University of London