类 XRFFSaver
java.lang.Object
weka.core.converters.AbstractSaver
weka.core.converters.AbstractFileSaver
weka.core.converters.XRFFSaver
- 所有已实现的接口:
Serializable
,CapabilitiesHandler
,BatchConverter
,FileSourcedConverter
,Saver
,EnvironmentHandler
,OptionHandler
,RevisionHandler
Writes to a destination that is in the XML version of the ARFF format. The data can be compressed with gzip, in order to save space.
Valid options are:
-i <the input file> The input file
-o <the output file> The output file
-C <class index> The class index (first and last are valid as well). (default: last)
-compress Compresses the data (uses '.xrff.gz' as extension instead of '.xrff') (default: off)
-
字段概要
从接口继承的字段 weka.core.converters.Saver
BATCH, INCREMENTAL, NONE
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明Returns the tip text for this propertyReturns the tip text for this propertyReturns the Capabilities of this saver.Get the index of the class attribute.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
setClassIndex
(String value) Sets index of the class attribute.void
setCompressOutput
(boolean value) Sets whether to compress the output.void
setDestination
(OutputStream output) Sets the destination output stream.void
Sets the destination file.void
setInstances
(Instances instances) Sets instances that should be stored.void
setOptions
(String[] options) Parses the options for this object.void
Writes a Batch of instances从类继承的方法 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, setRetrieval, setStructure, writeIncremental
-
构造器详细资料
-
XRFFSaver
public XRFFSaver()Constructor
-
-
方法详细资料
-
globalInfo
Returns a string describing this Saver- 返回:
- a description of the Saver suitable for displaying in the explorer/experimenter gui
-
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
-C <class index> The class index (first and last are valid as well). (default: last)
-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
-
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
-
resetOptions
public void resetOptions()Resets the Saver- 覆盖:
resetOptions
在类中AbstractFileSaver
-
classIndexTipText
Returns the tip text for this property- 返回:
- tip text for this property suitable for displaying in the explorer/experimenter gui
-
getClassIndex
Get the index of the class attribute.- 返回:
- the index of the class attribute
-
setClassIndex
Sets index of the class attribute.- 参数:
value
- the index of the class attribute
-
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
-
getCapabilities
Returns the Capabilities of this saver.- 指定者:
getCapabilities
在接口中CapabilitiesHandler
- 覆盖:
getCapabilities
在类中AbstractSaver
- 返回:
- the capabilities of this object
- 另请参阅:
-
setInstances
Sets instances that should be stored.- 指定者:
setInstances
在接口中Saver
- 覆盖:
setInstances
在类中AbstractSaver
- 参数:
instances
- the instances
-
setDestination
Sets the destination output stream.- 指定者:
setDestination
在接口中Saver
- 覆盖:
setDestination
在类中AbstractFileSaver
- 参数:
output
- the output stream.- 抛出:
IOException
- throws an IOException if destination cannot be set
-
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.
-