go(algo): sort the mean vals in algo funcs
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
109ce82f3e
commit
9801554eb5
@ -7,6 +7,7 @@ import (
|
||||
"fmt"
|
||||
"log"
|
||||
"os"
|
||||
"sort"
|
||||
"time"
|
||||
|
||||
"git.dotya.ml/wanderer/math-optim/bench"
|
||||
@ -184,6 +185,8 @@ func RandomSearchNG(maxFES, benchMinIters int, theD []int, benchFunc string, ch
|
||||
rsMeans.Means = append(rsMeans.Means, *dimXMean)
|
||||
}
|
||||
|
||||
sort.Sort(rsMeans)
|
||||
|
||||
// export AlgoMeans.
|
||||
mu.Lock()
|
||||
meanStats.AlgoMeans = append(meanStats.AlgoMeans, *rsMeans)
|
||||
|
@ -8,6 +8,7 @@ import (
|
||||
"log"
|
||||
"math"
|
||||
"os"
|
||||
"sort"
|
||||
"time"
|
||||
|
||||
"git.dotya.ml/wanderer/math-optim/bench"
|
||||
@ -301,6 +302,8 @@ func HillClimb(maxFES, benchMinIters int, theD []int, benchFunc string, ch chan
|
||||
shcMeans.Means = append(shcMeans.Means, *dimXMean)
|
||||
}
|
||||
|
||||
sort.Sort(shcMeans)
|
||||
|
||||
// export AlgoMeans.
|
||||
mu.Lock()
|
||||
meanStats.AlgoMeans = append(meanStats.AlgoMeans, *shcMeans)
|
||||
|
Loading…
Reference in New Issue
Block a user