Skip to content
Snippets Groups Projects
Commit 579baedd authored by a.croix's avatar a.croix
Browse files

Fix some style

parent 2faa5f5b
No related branches found
No related tags found
No related merge requests found
Pipeline #1016 failed
...@@ -20,28 +20,27 @@ public class TrainerParameters { ...@@ -20,28 +20,27 @@ public class TrainerParameters {
/** /**
* Contains parameters for the WOWA trainer. * Contains parameters for the WOWA trainer.
* *
* @param populationSize Size of the population for the Genetic Algorithm (greater than 2) * @param population_size Size of the population for the Genetic Algorithm (greater than 2)
* @param crossoverRate Crossover rate for the genetic algorithm. Percentage of the population kept to generate the next generation (1-99) * @param crossover_rate Crossover rate for the genetic algorithm. Percentage of the population kept to generate the next generation (1-99)
* @param mutationRate Mutation rate for the genetic algorithm. percentage of genes mutated in the next generation (1-99) * @param mutation_rate Mutation rate for the genetic algorithm. percentage of genes mutated in the next generation (1-99)
* @param selectionMethod Method to select parents for the next generation. RWS or TOS * @param selection_method Method to select parents for the next generation. RWS or TOS
* @param maxGenerationNumber Max generation number before the algorithm stop * @param max_generation_number Max generation number before the algorithm stop
*/ */
public TrainerParameters( public TrainerParameters(
//Logger logger, //Logger logger,
int populationSize, int population_size,
int crossoverRate, int crossover_rate,
int mutationRate, int mutation_rate,
int selectionMethod, int selection_method,
int maxGenerationNumber int max_generation_number
) { ) {
//this.setLogger(logger); //this.setLogger(logger);
this.setPopulationSize(populationSize); this.setPopulationSize(population_size);
this.setCrossoverRate(crossoverRate); this.setCrossoverRate(crossover_rate);
this.setMutationRate(mutationRate); this.setMutationRate(mutation_rate);
this.setSelectionMethod(selectionMethod); this.setSelectionMethod(selection_method);
this.setSelectionMethod(selectionMethod); this.setMaxGenerationNumber(max_generation_number);
this.setMaxGenerationNumber(maxGenerationNumber);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment