Skip to content

Commit

Permalink
Reenable earlyStop if missed fitness
Browse files Browse the repository at this point in the history
  • Loading branch information
FeldiPat committed Oct 8, 2023
1 parent d6a9628 commit 9b5890e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions config/Neuroevolution/neatest.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
"algorithm": "neatest",
"eventSelection": "activation",
"populationSize": 150,
"numberOfSpecies": 10,
"numberOfSpecies": 5,
"parentsPerSpecies": 0.20,
"penalizingAge": 15,
"ageSignificance": 1.0,
"switchTargetCount": 10,
"switchTargetCount": 15,
"extractor": "neuroevolution",
"aTRepetitions": 0,
"chromosome": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ export class ReliableStatementFitness implements NetworkFitnessFunction<NetworkC
// target statement to the fitness function.
if(!await network.targetFitness.isCovered(network)){
network.fitness += (1 / await network.targetFitness.getFitness(network));
continue;
break;
}

// At this point, we know that we have covered the statement again.
Expand Down

0 comments on commit 9b5890e

Please sign in to comment.