public class Algorithm
extends java.lang.Object
It contains the implementation of the algorithm
Constructor and Description |
---|
Algorithm()
Default constructor
|
Algorithm(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 |
eval(myDataset dataset,
Individual indi)
It evaluates an individual
|
void |
execute()
It launches the algorithm
|
java.lang.String |
Print_Population()
It prints the current population as a String
|
public Algorithm()
Default constructor
public Algorithm(parseParameters parameters)
It reads the data from the input files (training, validation and test) and parse all the parameters from the parameters array.
parameters
- parseParameters It contains the input files, output files and parameterspublic void execute()
It launches the algorithm
public double eval(myDataset dataset, Individual indi)
It evaluates an individual
dataset
- myDataset The set of examplesindi
- Invidual The individual being evaluatedpublic java.lang.String Print_Population()
It prints the current population as a String