Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
J
java-wowa-training
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cylab
java-wowa-training
Commits
579baedd
Commit
579baedd
authored
6 years ago
by
a.croix
Browse files
Options
Downloads
Patches
Plain Diff
Fix some style
parent
2faa5f5b
No related branches found
No related tags found
No related merge requests found
Pipeline
#1016
failed
6 years ago
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/be/cylab/java/wowa/training/TrainerParameters.java
+15
-16
15 additions, 16 deletions
...n/java/be/cylab/java/wowa/training/TrainerParameters.java
with
15 additions
and
16 deletions
src/main/java/be/cylab/java/wowa/training/TrainerParameters.java
+
15
−
16
View file @
579baedd
...
@@ -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 population
S
ize Size of the population for the Genetic Algorithm (greater than 2)
* @param population
_s
ize Size of the population for the Genetic Algorithm (greater than 2)
* @param crossover
R
ate Crossover rate for the genetic algorithm. Percentage of the population kept to generate the next generation (1-99)
* @param crossover
_r
ate Crossover rate for the genetic algorithm. Percentage of the population kept to generate the next generation (1-99)
* @param mutation
R
ate Mutation rate for the genetic algorithm. percentage of genes mutated in the next generation (1-99)
* @param mutation
_r
ate Mutation rate for the genetic algorithm. percentage of genes mutated in the next generation (1-99)
* @param selection
M
ethod Method to select parents for the next generation. RWS or TOS
* @param selection
_m
ethod Method to select parents for the next generation. RWS or TOS
* @param max
G
eneration
N
umber Max generation number before the algorithm stop
* @param max
_g
eneration
_n
umber Max generation number before the algorithm stop
*/
*/
public
TrainerParameters
(
public
TrainerParameters
(
//Logger logger,
//Logger logger,
int
population
S
ize
,
int
population
_s
ize
,
int
crossover
R
ate
,
int
crossover
_r
ate
,
int
mutation
R
ate
,
int
mutation
_r
ate
,
int
selection
M
ethod
,
int
selection
_m
ethod
,
int
max
G
eneration
N
umber
int
max
_g
eneration
_n
umber
)
{
)
{
//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
);
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment