There was an error while loading. Please reload this page.
1 parent 5f60622 commit 05069bfCopy full SHA for 05069bf
mlp-ea-centralized/common/ga/models.go
@@ -13,7 +13,7 @@ func SortByFitnessAndNeurons(indis []eaopt.Individual) {
13
14
// Round with precission
15
round := func(i float64) float64 {
16
- return math.Floor(i*Precission) / Precission
+ return math.Floor(i*float64(Precission)) / float64(Precission)
17
}
18
19
// Sort individuals first by fitness and then by number of neurons
0 commit comments