public class OpenDataset
extends java.lang.Object
Dataset interface simplification
Constructor and Description |
---|
OpenDataset()
Constructor
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDatosAt(int index)
Return example data at index in a string separated by comma without spaces
|
java.lang.String |
getHeader()
Returns the header of the data set with all the attributes information
|
int |
getndatos()
Gets the number of examples
|
int |
getnentradas()
Gets the number of inputs
|
int |
getnsalidas()
Gets the number of outputs
|
int |
getnvariables()
Gets the number of variables
|
java.util.Vector |
getRangosVar(int index)
Returns the nominal value list of an attribute
|
int |
getTiposAt(int index)
Return type (0 nominal, 1 integer, 2 float,..) of attribute at index.
|
void |
processClassifierDataset(java.lang.String nfejemplos,
boolean b)
Load a file and parse it.
|
public int getndatos()
Gets the number of examples
public int getnvariables()
Gets the number of variables
public int getnentradas()
Gets the number of inputs
public int getnsalidas()
Gets the number of outputs
public int getTiposAt(int index)
Return type (0 nominal, 1 integer, 2 float,..) of attribute at index.
index
- public java.util.Vector getRangosVar(int index)
Returns the nominal value list of an attribute
index
- Index of the attribute to considerpublic java.lang.String getDatosAt(int index)
Return example data at index in a string separated by comma without spaces
index
- Index of the instance to returnpublic void processClassifierDataset(java.lang.String nfejemplos, boolean b)
Load a file and parse it.
nfejemplos
- File to loadb
- Boolean indicating if the file is a training filepublic java.lang.String getHeader()