public class ProcessDataset
extends java.lang.Object
Wrapper for KEEL's Dataset class.
Constructor and Description |
---|
ProcessDataset()
A constructor that inits a new set of instances
|
Modifier and Type | Method and Description |
---|---|
int[] |
getC()
Returns classes for classification problems.
|
java.lang.String |
getHeader()
Returns the header of the data set with the attributes' information
|
double[] |
getImaximum()
Returns maximum value for each variable.
|
double[] |
getIminimum()
Returns maximum value for each variable.
|
int |
getNclasses()
Returns the number of classes for classification problems.
|
int |
getNdata()
Returns the size of input data.
|
int |
getNinputs()
Returns the number of input variables.
|
int |
getNvariables()
Returns the number of input variables plus output variables.
|
double |
getOmaximum()
Returns maximum value for output.
|
double |
getOminimum()
Returns maximum value for output.
|
double[][] |
getX()
Returns input examples.
|
double[] |
getY()
Returns input examples.
|
boolean |
isMissing(int i,
int j)
Returns if an example is missing.
|
void |
oldClassificationProcess(java.lang.String nfejemplos)
Process a old format dataset file for a modelling problem.
|
void |
oldClusteringProcess(java.lang.String nfejemplos)
Process an old format dataset file for a classification problem.
|
void |
procesa_clustering_old(java.lang.String nfejemplos)
Process an old format dataset file for a clustering problem.
|
void |
processClassifierDataset(java.lang.String nfejemplos,
boolean train)
Process a dataset file for a classification problem.
|
void |
processClusterDataset(java.lang.String nfexamples,
boolean train)
Process a dataset file for a clustering problem.
|
void |
processModelDataset(java.lang.String nfexamples,
boolean train)
Process a dataset file for a modelling problem.
|
void |
showDatasetStatistics()
prints to standard output statistics about the dataset.
|
public ProcessDataset()
A constructor that inits a new set of instances
public double[][] getX()
Returns input examples.
public double[] getY()
Returns input examples.
public int[] getC()
Returns classes for classification problems.
public double[] getImaximum()
Returns maximum value for each variable.
public double[] getIminimum()
Returns maximum value for each variable.
public double getOmaximum()
Returns maximum value for output.
public double getOminimum()
Returns maximum value for output.
public int getNdata()
Returns the size of input data.
public int getNvariables()
Returns the number of input variables plus output variables.
public int getNinputs()
Returns the number of input variables.
public int getNclasses()
Returns the number of classes for classification problems.
public boolean isMissing(int i, int j)
Returns if an example is missing.
i
- example id.j
- attribute id.public void processClassifierDataset(java.lang.String nfejemplos, boolean train) throws java.io.IOException
Process a dataset file for a classification problem.
nfejemplos
- Name of the dataset filetrain
- The dataset file is for training or for testjava.io.IOException
- if there is any semantical, lexical or sintactical error in the input file.public void processModelDataset(java.lang.String nfexamples, boolean train) throws java.io.IOException
Process a dataset file for a modelling problem.
nfexamples
- Name of the dataset filetrain
- The dataset file is for training or for testjava.io.IOException
- if there is any semantical, lexical or sintactical error in the input file.public void processClusterDataset(java.lang.String nfexamples, boolean train) throws java.io.IOException
Process a dataset file for a clustering problem.
nfexamples
- Name of the dataset filetrain
- The dataset file is for training or for testjava.io.IOException
- if there is any semantical, lexical or sintactical error in the input file.public void oldClassificationProcess(java.lang.String nfejemplos)
Process a old format dataset file for a modelling problem.
nfejemplos
- Name of the dataset filepublic void oldClusteringProcess(java.lang.String nfejemplos)
Process an old format dataset file for a classification problem.
nfejemplos
- Name of the dataset file.public void procesa_clustering_old(java.lang.String nfejemplos)
Process an old format dataset file for a clustering problem.
nfejemplos
- Name of the dataset file.public void showDatasetStatistics()
prints to standard output statistics about the dataset.
public java.lang.String getHeader()