|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectadams.core.ConsoleObject
adams.core.option.AbstractOptionHandler
adams.data.io.input.AbstractDataContainerReader<Instance>
adams.data.io.input.InstanceReader
public class InstanceReader
Reads WEKA datasets in various formats.
Valid options are:-D <int> (property: debugLevel) The greater the number the more additional info the scheme may output to the console (0 = off). default: 0 minimum: 0
-input <adams.core.io.PlaceholderFile> (property: input) The file to read and turn into a container. default: .
-create-dummy-report (property: createDummyReport) If true, then a dummy report is created if none present.
| Field Summary | |
|---|---|
protected int |
m_Index
the current index. |
protected weka.core.converters.ConverterUtils.DataSource |
m_Source
the data source for reading. |
protected weka.core.Instances |
m_Structure
the current data structure. |
| Fields inherited from class adams.data.io.input.AbstractDataContainerReader |
|---|
m_CreateDummyReport, m_Input, m_InputIsFile, m_Processed, m_ReadData |
| Fields inherited from class adams.core.option.AbstractOptionHandler |
|---|
m_DebugLevel, m_OptionManager |
| Constructor Summary | |
|---|---|
InstanceReader()
|
|
| Method Summary | |
|---|---|
String |
getFormatDescription()
Returns a string describing the format (used in the file chooser). |
String[] |
getFormatExtensions()
Returns the extension(s) of the format. |
String |
globalInfo()
Returns a string describing the object. |
boolean |
hasMoreData()
Returns whether there is more data available. |
protected void |
readData()
Uses the named setup to read the data. |
void |
reset()
Resets the filter. |
| Methods inherited from class adams.data.io.input.AbstractDataContainerReader |
|---|
checkData, cleanUp, compareTo, createDummyReport, createDummyReportTipText, defineOptions, destroy, doRead, equals, forCommandLine, forName, getCreateDummyReport, getInput, getReaders, initialize, inputTipText, isInputFile, postProcessData, read, setCreateDummyReport, setInput, shallowCopy, shallowCopy |
| Methods inherited from class adams.core.option.AbstractOptionHandler |
|---|
cleanUpOptions, debug, debug, debugLevelTipText, finishInit, getDebugLevel, getOptionManager, isDebugOn, newOptionManager, setDebugLevel, toCommandLine, toString |
| Methods inherited from class adams.core.ConsoleObject |
|---|
getDebugging, getSystemErr, getSystemOut, sizeOf |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected weka.core.converters.ConverterUtils.DataSource m_Source
protected weka.core.Instances m_Structure
protected int m_Index
| Constructor Detail |
|---|
public InstanceReader()
| Method Detail |
|---|
public String globalInfo()
globalInfo in class AbstractOptionHandlerpublic String getFormatDescription()
getFormatDescription in class AbstractDataContainerReader<Instance>public String[] getFormatExtensions()
getFormatExtensions in class AbstractDataContainerReader<Instance>public void reset()
reset in class AbstractDataContainerReader<Instance>protected void readData()
readData in class AbstractDataContainerReader<Instance>public boolean hasMoreData()
hasMoreData in interface IncrementalDataContainerReader
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||