类 ArffSaver
java.lang.Object
weka.core.converters.AbstractSaver
weka.core.converters.AbstractFileSaver
weka.core.converters.ArffSaver
- 所有已实现的接口:
Serializable
,CapabilitiesHandler
,BatchConverter
,FileSourcedConverter
,IncrementalConverter
,Saver
,EnvironmentHandler
,OptionHandler
,RevisionHandler
Writes to a destination in arff text format.
Valid options are:
-i <the input file> The input file
-o <the output file> The output file
-
字段概要
从接口继承的字段 weka.core.converters.Saver
BATCH, INCREMENTAL, NONE
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明Returns the tip text for this propertyReturns the Capabilities of this saver.boolean
Gets whether the output data is compressed.Returns a description of the file type.String[]
Gets all the file extensions used for this type of fileString[]
returns the options of the current setupReturns the revision string.Returns a string describing this SaverReturns an enumeration describing the available options.static void
Main method.void
Resets the Savervoid
setCompressOutput
(boolean value) Sets whether to compress the output.void
setDestination
(OutputStream output) Sets the destination output stream.void
Sets the destination file.void
setOptions
(String[] options) Parses the options for this object.void
Writes a Batch of instancesvoid
writeIncremental
(Instance inst) Saves an instances incrementally.从类继承的方法 weka.core.converters.AbstractFileSaver
cancel, filePrefix, getFileExtension, getUseRelativePath, getWriter, resetWriter, retrieveDir, retrieveFile, runFileSaver, setDestination, setDir, setDirAndPrefix, setEnvironment, setFilePrefix, setUseRelativePath, useRelativePathTipText
从类继承的方法 weka.core.converters.AbstractSaver
getInstances, getWriteMode, resetStructure, setInstances, setRetrieval, setStructure
-
构造器详细资料
-
ArffSaver
public ArffSaver()Constructor
-
-
方法详细资料
-
listOptions
Returns an enumeration describing the available options.- 指定者:
listOptions
在接口中OptionHandler
- 覆盖:
listOptions
在类中AbstractFileSaver
- 返回:
- an enumeration of all the available options.
-
getOptions
returns the options of the current setup- 指定者:
getOptions
在接口中OptionHandler
- 覆盖:
getOptions
在类中AbstractFileSaver
- 返回:
- the current options
-
setOptions
Parses the options for this object. Valid options are:-i <the input file> The input file
-o <the output file> The output file
-compress Compresses the data (uses '.xrff.gz' as extension instead of '.xrff') (default: off)
- 指定者:
setOptions
在接口中OptionHandler
- 覆盖:
setOptions
在类中AbstractFileSaver
- 参数:
options
- the options to use- 抛出:
Exception
- if setting of options fails
-
compressOutputTipText
Returns the tip text for this property- 返回:
- tip text for this property suitable for displaying in the explorer/experimenter gui
-
getCompressOutput
public boolean getCompressOutput()Gets whether the output data is compressed.- 返回:
- true if the output data is compressed
-
setCompressOutput
public void setCompressOutput(boolean value) Sets whether to compress the output.- 参数:
value
- if truee the output will be compressed
-
globalInfo
Returns a string describing this Saver- 返回:
- a description of the Saver suitable for displaying in the explorer/experimenter gui
-
getFileDescription
Returns a description of the file type.- 指定者:
getFileDescription
在接口中FileSourcedConverter
- 指定者:
getFileDescription
在类中AbstractFileSaver
- 返回:
- a short file description
-
getFileExtensions
Gets all the file extensions used for this type of file- 指定者:
getFileExtensions
在接口中FileSourcedConverter
- 覆盖:
getFileExtensions
在类中AbstractFileSaver
- 返回:
- the file extensions
-
setFile
Sets the destination file.- 指定者:
setFile
在接口中FileSourcedConverter
- 指定者:
setFile
在接口中Saver
- 覆盖:
setFile
在类中AbstractFileSaver
- 参数:
outputFile
- the destination file.- 抛出:
IOException
- throws an IOException if file cannot be set
-
setDestination
Sets the destination output stream.- 指定者:
setDestination
在接口中Saver
- 覆盖:
setDestination
在类中AbstractFileSaver
- 参数:
output
- the output stream.- 抛出:
IOException
- throws an IOException if destination cannot be set
-
resetOptions
public void resetOptions()Resets the Saver- 覆盖:
resetOptions
在类中AbstractFileSaver
-
getCapabilities
Returns the Capabilities of this saver.- 指定者:
getCapabilities
在接口中CapabilitiesHandler
- 覆盖:
getCapabilities
在类中AbstractSaver
- 返回:
- the capabilities of this object
- 另请参阅:
-
writeIncremental
Saves an instances incrementally. Structure has to be set by using the setStructure() method or setInstances() method.- 指定者:
writeIncremental
在接口中Saver
- 覆盖:
writeIncremental
在类中AbstractSaver
- 参数:
inst
- the instance to save- 抛出:
IOException
- throws IOEXception if an instance cannot be saved incrementally.
-
writeBatch
Writes a Batch of instances- 指定者:
writeBatch
在接口中Saver
- 指定者:
writeBatch
在类中AbstractSaver
- 抛出:
IOException
- throws IOException if saving in batch mode is not possible
-
getRevision
Returns the revision string.- 指定者:
getRevision
在接口中RevisionHandler
- 返回:
- the revision
-
main
Main method.- 参数:
args
- should contain the options of a Saver.
-