public class Multiclassifier
extends java.lang.Object
Title: Multiclassifier
Description: This class implements the Main execution class for the Binarization methodology (OVO and OVO )
Company: KEEL
Constructor and Description |
---|
Multiclassifier()
Default constructor
|
Multiclassifier(boolean nested,
Multiclassifier padre)
It constructs a new set of OVO classifiers for NESTING aggregation
|
Multiclassifier(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 |
---|---|
void |
execute_nesting(int[] empate)
It executes the algorithm, but only for those instances which were ties in the
previous OVO
|
void |
execute()
It launches the algorithm
|
protected int |
obtainClass(int x,
int y,
double[] example)
It computes the output class according to the learned system
|
protected double[] |
obtainConfidence(int x,
int y,
double[] example)
Computes and returns the confidence vector for a given example for the classification class x vs class y.
|
protected double[] |
ova_table(double[] example)
Computes and returns the one-vs-all vector for a given example.
|
protected double[][] |
ovo_table(double[] example)
Computes and returns the one-vs-one matrix for a given example.
|
public Multiclassifier()
public Multiclassifier(parseParameters parameters)
parameters
- parseParameters It contains the input files, output files and parameterspublic Multiclassifier(boolean nested, Multiclassifier padre)
nested
- if the classifier is nestedpadre
- the reference to the parent OVOpublic void execute()
public void execute_nesting(int[] empate)
empate
- An array containing wether instances were ties or notprotected int obtainClass(int x, int y, double[] example)
x
- first class in the classification.y
- second class in the classification.example
- given example to compute its class.protected double[] obtainConfidence(int x, int y, double[] example)
x
- first class in the classification.y
- second class in the classification.example
- example given to compute the matrix.protected double[][] ovo_table(double[] example)
example
- example given to compute the matrix.protected double[] ova_table(double[] example)
example
- example given to compute the matrix.