类 SVMLightSaver
java.lang.Object
weka.core.converters.AbstractSaver
weka.core.converters.AbstractFileSaver
weka.core.converters.SVMLightSaver
- 所有已实现的接口:
Serializable
,CapabilitiesHandler
,BatchConverter
,FileSourcedConverter
,IncrementalConverter
,Saver
,EnvironmentHandler
,OptionHandler
,RevisionHandler
public class SVMLightSaver
extends AbstractFileSaver
implements BatchConverter, IncrementalConverter
Writes to a destination that is in svm light format.
For more information about svm light see:
http://svmlight.joachims.org/ Valid options are:
For more information about svm light see:
http://svmlight.joachims.org/ Valid options are:
-i <the input file> The input file
-o <the output file> The output file
-c <class index> The class index (default: last)
-
字段概要
字段修饰符和类型字段说明static String
the file extension.static int
the number of digits after the decimal point.从接口继承的字段 weka.core.converters.Saver
BATCH, INCREMENTAL, NONE
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明Returns the tip text for this property.Returns the Capabilities of this saver.Get the index of the class attribute.Returns a description of the file type.String[]
returns the options of the current setup.Returns the revision string.Returns a string describing this Saver.Returns an enumeration describing the available options.static void
Main method.void
Resets the Saver.void
setClassIndex
(String value) Sets index of the class attribute.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.void
writeIncremental
(Instance inst) Saves an instances incrementally.从类继承的方法 weka.core.converters.AbstractFileSaver
cancel, filePrefix, getFileExtension, getFileExtensions, getUseRelativePath, getWriter, resetWriter, retrieveDir, retrieveFile, runFileSaver, setDestination, setDestination, setDir, setDirAndPrefix, setEnvironment, setFile, setFilePrefix, setUseRelativePath, useRelativePathTipText
从类继承的方法 weka.core.converters.AbstractSaver
getInstances, getWriteMode, resetStructure, setRetrieval, setStructure
-
字段详细资料
-
FILE_EXTENSION
the file extension. -
MAX_DIGITS
public static int MAX_DIGITSthe number of digits after the decimal point.
-
-
构造器详细资料
-
SVMLightSaver
public SVMLightSaver()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 (default: last)
- 指定者:
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
-
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
-
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
-
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.
-