Skip to content

Commit 05069bf

Browse files
committed
Refactor code and wait for goroutines to stop
1 parent 5f60622 commit 05069bf

File tree

3 files changed

+138
-120
lines changed

3 files changed

+138
-120
lines changed

‎mlp-ea-centralized/common/ga/models.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ func SortByFitnessAndNeurons(indis []eaopt.Individual) {
1313

1414
// Round with precission
1515
round := func(i float64) float64 {
16-
return math.Floor(i*Precission) / Precission
16+
return math.Floor(i*float64(Precission)) / float64(Precission)
1717
}
1818

1919
// Sort individuals first by fitness and then by number of neurons

0 commit comments

Comments
 (0)