public class MyDataset
extends java.lang.Object
It contains the methods to read a Dataset
Modifier and Type | Field and Description |
---|---|
java.lang.String[] |
clases
Classes values.
|
keel.Algorithms.Fuzzy_Rule_Learning.Genetic.ClassifierMOGUL.T_Table[] |
datos
Dataset.
|
keel.Algorithms.Fuzzy_Rule_Learning.Genetic.ClassifierMOGUL.T_Interval[] |
extremos
Variables intervals.
|
java.lang.String |
fichero
Input filename.
|
InstanceSet |
IS
Dataset (InstanceSet Object).
|
int |
long_tabla
Total number of variables.
|
int |
n_inputs
Total number of variables.
|
int |
n_variables
Total number of variables.
|
int |
nClasses
Number of classes.
|
int |
no_cubiertos
Number of uncovered instaces.
|
boolean |
noOutputs
Identifies if there is ouput variables or not.
|
java.lang.String[] |
output
Output files names.
|
Constructor and Description |
---|
MyDataset(java.lang.String f,
boolean train)
Stores in memory the contents of the data file "f"
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getClassAsString(int pos)
Return the name of the class in position "pos"
|
java.lang.String |
getHeader()
It returns the header
|
java.lang.String |
getOutputAsString(int pos)
Return the output value of the example in position "pos"
|
void |
newTable()
It create a new table with the examples from the Data Set
|
void |
processModelDataset(java.lang.String nfejemplos,
boolean train)
Reads the Data Sets
|
public keel.Algorithms.Fuzzy_Rule_Learning.Genetic.ClassifierMOGUL.T_Table[] datos
public int n_variables
public int n_inputs
public int long_tabla
public int nClasses
public int no_cubiertos
public java.lang.String[] output
public java.lang.String[] clases
public keel.Algorithms.Fuzzy_Rule_Learning.Genetic.ClassifierMOGUL.T_Interval[] extremos
public java.lang.String fichero
public InstanceSet IS
public boolean noOutputs
public MyDataset(java.lang.String f, boolean train)
Stores in memory the contents of the data file "f"
f
- String The name containing the Data Settrain
- boolean TRUE is the Data Set contains the training data. FALSE if it contains the test datapublic void processModelDataset(java.lang.String nfejemplos, boolean train) throws java.io.IOException
Reads the Data Sets
nfejemplos
- String The name containing the Data Settrain
- boolean TRUE is the Data Set contains the training data. FALSE if it contains the test datajava.io.IOException
- if the dataset can not be read.public java.lang.String getHeader()
It returns the header
public void newTable()
It create a new table with the examples from the Data Set
public java.lang.String getOutputAsString(int pos)
Return the output value of the example in position "pos"
pos
- example position.public java.lang.String getClassAsString(int pos)
Return the name of the class in position "pos"
pos
- example position.