Graphics Reference
In-Depth Information
Next we show a valid example of a Method Configuration file (data files lists are
not fully shown):
algorithm = Genetic Algorithm
inputData = ''../datasets/iris/iris.dat'' ...
outputData = ''../results/iris/result0.tra'' ...
Seed = 12345678
Number of Generations = 1000
Crossover Probability = 0.9
Mutation Probability = 0.1
...
A complete description of the parameters file can be found in Sect. 3 of the KEEL
Manual.
￿
The input data sets follow a specific format that extends the “arff” files by complet-
ing the header with more metadata information about the attributes of the problem.
Next, the list of examples is included, which is given in rows with the attribute
values separated by commas.
For more information about the input data sets files please refer to Sect. 4 of
the KEEL Manual. Furthermore, in order to ease the data management, we have
developed an API data set, the main features of which are described in Sect. 7 of
the Manual.
￿
The output format consists of a header, which follows the same scheme as the
input data, and two columns with the output values for each example separated by
a whitespace. The first value corresponds to the expected output, and the second
one to the predicted value. All methods must generate two output files: one for
training and another one for testing.
For more information about the obligatory output files please refer to Sect. 5 of
the KEEL Manual.
Although the list of constraints is short, the KEEL development team have created
a simple template that manages all these features. Our KEEL template includes four
classes:
1. Main : This class contains the main instructions for launching the algorithm. It
reads the parameters from the file and builds the “algorithm object”.
public class Main {
private parseParameters parameters;
private void execute(String confFile) {
parameters = new parseParameters();
parameters.parseConfigurationFile(confFile);
Algorithm method = new Algorithm(parameters);
method.execute();
}
Search WWH ::




Custom Search