public class OpenDataset
extends java.lang.Object
Dataset interface simplification
Constructor and Description |
---|
OpenDataset()
Empty Constructor
|
Modifier and Type | Method and Description |
---|---|
int |
getClassAt(int element)
Returns the class of a given element.
|
java.lang.String |
getDatosAt(int index)
Return example data at index in a string separated by comma without spaces
|
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 |
getRangeOutput()
It returns the list of values for the output class
|
java.util.Vector |
getRangosVar(int index)
It 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)
It returns the nominal value list of an attribute
index
- Index of the attributepublic java.util.Vector getRangeOutput()
It returns the list of values for the output class
public java.lang.String getDatosAt(int index)
Return example data at index in a string separated by comma without spaces
index
- Index of the instancepublic void processClassifierDataset(java.lang.String nfejemplos, boolean b)
Load a file and parse it
nfejemplos
- Name of the fileb
- Is a training file?public int getClassAt(int element)
element
- element's index.