|
jBNC Toolbox | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjbnc.dataset.DatasetReader
Functions for reading data sets with test cases.
Dataset
,
NamesReader
Constructor Summary | |
DatasetReader()
|
Method Summary | |
protected java.util.Vector |
convertCase(java.util.Vector rawData,
AttributeSpecs[] names)
Convert case from a raw format. |
boolean |
getDiscardIncompleteCases()
|
java.util.Vector |
open(java.lang.String fileName,
AttributeSpecs[] names)
Reads a data file with cases - comma delimited, no header. |
Dataset |
open(java.lang.String fileName,
java.lang.String className)
Reads a data file with cases - comma delimited, with header. |
void |
setDiscardIncompleteCases(boolean discardIncompleteCases)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DatasetReader()
Method Detail |
public void setDiscardIncompleteCases(boolean discardIncompleteCases)
discardIncompleteCases
- public boolean getDiscardIncompleteCases()
public java.util.Vector open(java.lang.String fileName, AttributeSpecs[] names) throws java.lang.Exception
names
- Descriptions of columns in the file.fileName
- Description of Parameter
java.lang.Exception
- Description of Exceptionpublic Dataset open(java.lang.String fileName, java.lang.String className) throws java.lang.Exception
fileName
- Name of the file to read data from.className
- Name of the attribute representing class. If it is
null, it is assumed that the last column represents class.
java.lang.Exception
- Description of Exceptionprotected java.util.Vector convertCase(java.util.Vector rawData, AttributeSpecs[] names) throws java.lang.Exception
rawData
- Description of Parameternames
- Description of Parameter
java.lang.Exception
- Description of Exception
|
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |