类 AbstractFileLoader
java.lang.Object
weka.core.converters.AbstractLoader
weka.core.converters.AbstractFileLoader
- 所有已实现的接口:
Serializable
,FileSourcedConverter
,Loader
,EnvironmentHandler
,RevisionHandler
- 直接已知子类:
ArffLoader
,C45Loader
,CSVLoader
,LibSVMLoader
,SerializedInstancesLoader
,SVMLightLoader
,XRFFLoader
public abstract class AbstractFileLoader
extends AbstractLoader
implements FileSourcedConverter, EnvironmentHandler
Abstract superclass for all file loaders.
- 版本:
- $Revision: 7391 $
- 作者:
- fracpete (fracpete at waikato dot ac dot nz)
- 另请参阅:
-
字段概要
字段从接口继承的字段 weka.core.converters.Loader
BATCH, INCREMENTAL, NONE
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明boolean
Gets whether relative paths are to be usedvoid
reset()
Resets the loader ready to read a new data setget the File specified as the sourcestatic void
runFileLoader
(AbstractFileLoader loader, String[] options) runs the given loader with the provided optionsvoid
Set the environment variables to use.void
sets the source Filevoid
Resets the Loader object and sets the source of the data set to be the supplied File object.void
setUseRelativePath
(boolean rp) Set whether to use relative rather than absolute pathsTip text suitable for displaying int the GUI从类继承的方法 weka.core.converters.AbstractLoader
getDataSet, getNextInstance, getStructure, setRetrieval, setSource
从接口继承的方法 weka.core.converters.FileSourcedConverter
getFileDescription, getFileExtension, getFileExtensions
从接口继承的方法 weka.core.RevisionHandler
getRevision
-
字段详细资料
-
FILE_EXTENSION_COMPRESSED
the extension for compressed files
-
-
构造器详细资料
-
AbstractFileLoader
public AbstractFileLoader()
-
-
方法详细资料
-
retrieveFile
get the File specified as the source- 指定者:
retrieveFile
在接口中FileSourcedConverter
- 返回:
- the source file
-
setFile
sets the source File- 指定者:
setFile
在接口中FileSourcedConverter
- 参数:
file
- the source file- 抛出:
IOException
- if an error occurs
-
setEnvironment
Set the environment variables to use.- 指定者:
setEnvironment
在接口中EnvironmentHandler
- 参数:
env
- the environment variables to use
-
reset
Resets the loader ready to read a new data set- 指定者:
reset
在接口中Loader
- 覆盖:
reset
在类中AbstractLoader
- 抛出:
IOException
- if something goes wrong
-
setSource
Resets the Loader object and sets the source of the data set to be the supplied File object.- 指定者:
setSource
在接口中Loader
- 覆盖:
setSource
在类中AbstractLoader
- 参数:
file
- the source file.- 抛出:
IOException
- if an error occurs
-
useRelativePathTipText
Tip text suitable for displaying int the GUI- 返回:
- a description of this property as a String
-
setUseRelativePath
public void setUseRelativePath(boolean rp) Set whether to use relative rather than absolute paths- 指定者:
setUseRelativePath
在接口中FileSourcedConverter
- 参数:
rp
- true if relative paths are to be used
-
getUseRelativePath
public boolean getUseRelativePath()Gets whether relative paths are to be used- 指定者:
getUseRelativePath
在接口中FileSourcedConverter
- 返回:
- true if relative paths are to be used
-
runFileLoader
runs the given loader with the provided options- 参数:
loader
- the loader to runoptions
- the commandline options, first argument must be the file to load
-