程序包 weka.experiment
类 InstancesResultListener
java.lang.Object
weka.experiment.CSVResultListener
weka.experiment.InstancesResultListener
- 所有已实现的接口:
Serializable
,OptionHandler
,RevisionHandler
,ResultListener
Outputs the received results in arff format to a Writer. All results must be received before the instances can be written out.
Valid options are:
-O <file name> The filename where output will be stored. Use - for stdout. (default temp file)
- 版本:
- $Revision: 1.11 $
- 作者:
- Len Trigg (trigg@cs.waikato.ac.nz)
- 另请参阅:
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明void
acceptResult
(ResultProducer rp, Object[] key, Object[] result) Collects each instance and adjusts the header information.Returns the revision string.Returns a string describing this result listenervoid
Perform any postprocessing.void
Prepare for the results to be received.从类继承的方法 weka.experiment.CSVResultListener
determineColumnConstraints, getOptions, getOutputFile, isResultRequired, listOptions, outputFileName, outputFileTipText, setOptions, setOutputFile, setOutputFileName
-
构造器详细资料
-
InstancesResultListener
public InstancesResultListener()Sets temporary file.
-
-
方法详细资料
-
globalInfo
Returns a string describing this result listener- 覆盖:
globalInfo
在类中CSVResultListener
- 返回:
- a description of the result listener suitable for displaying in the explorer/experimenter gui
-
preProcess
Prepare for the results to be received.- 指定者:
preProcess
在接口中ResultListener
- 覆盖:
preProcess
在类中CSVResultListener
- 参数:
rp
- the ResultProducer that will generate the results- 抛出:
Exception
- if an error occurs during preprocessing.
-
postProcess
Perform any postprocessing. When this method is called, it indicates that no more results will be sent that need to be grouped together in any way.- 指定者:
postProcess
在接口中ResultListener
- 覆盖:
postProcess
在类中CSVResultListener
- 参数:
rp
- the ResultProducer that generated the results- 抛出:
Exception
- if an error occurs
-
acceptResult
Collects each instance and adjusts the header information.- 指定者:
acceptResult
在接口中ResultListener
- 覆盖:
acceptResult
在类中CSVResultListener
- 参数:
rp
- the ResultProducer that generated the resultkey
- The key for the results.result
- The actual results.- 抛出:
Exception
- if the result could not be accepted.
-
getRevision
Returns the revision string.- 指定者:
getRevision
在接口中RevisionHandler
- 覆盖:
getRevision
在类中CSVResultListener
- 返回:
- the revision
-