public class multi_C45
extends java.lang.Object
Title: multi_C45
Description: Main class to compute the algorithm procedure
Company: KEEL
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
outputTr
Training output filename.
|
Constructor and Description |
---|
multi_C45()
Default constructor
|
multi_C45(parseParameters parameters)
It reads the data from the input files (training, validation and test) and parse all the parameters
from the parameters array.
|
Modifier and Type | Method and Description |
---|---|
double |
classify(myDataset dataset)
It carries out the classification of a given dataset throughout the learning stage of the ensemble
|
void |
execute()
It launches the algorithm
|
protected int |
obtainClass(int i,
double[] example)
It returns the class index of the prediction of an example in the i^{th} classifier
|
protected double |
obtainConfidence(int i,
double[] example)
It obtains the confidence on the prediction of the example in the i^{th} classifier
|
void |
writeOutput(AccAUC pairTra,
AccAUC pairTst,
java.lang.String ruleBaseFile)
It writes on a file the full ensemble (C4.5 rule sets)
|
public multi_C45()
public multi_C45(parseParameters parameters)
parameters
- parseParameters It contains the input files, output files and parameterspublic void execute()
public double classify(myDataset dataset)
dataset
- the instance setprotected int obtainClass(int i, double[] example)
i
- the classifier to be usedexample
- the example to be classifiedprotected double obtainConfidence(int i, double[] example)
i
- the classifier to be usedexample
- the example to be classified