Search in sources :

Example 1 with EvoAgentSearchSpaceAsteroids

use of planetwar.EvoAgentSearchSpaceAsteroids in project SimpleAsteroids by ljialin.

the class TestHyperParamAsteroids method main.

public static void main(String[] args) {
    AnnotatedFitnessSpace testAsteroids = new EvoAgentSearchSpaceAsteroids();
    EvoAlg[] evoAlgs = { new NTupleBanditEA().setKExplore(10000), // new CompactSlidingGA(),
    new SlidingMeanEDA() };
    int nChecks = 50;
    int nEvals = 50;
    int nTrials = 2;
    for (EvoAlg evoAlg : evoAlgs) {
        HyperParamTuneRunner runner = new HyperParamTuneRunner();
        runner.nChecks = nChecks;
        runner.nTrials = nTrials;
        runner.nEvals = nEvals;
        runner.runTrials(evoAlg, testAsteroids);
    }
}
Also used : AnnotatedFitnessSpace(evodef.AnnotatedFitnessSpace) EvoAgentSearchSpaceAsteroids(planetwar.EvoAgentSearchSpaceAsteroids) SlidingMeanEDA(ntuple.SlidingMeanEDA) NTupleBanditEA(ntuple.NTupleBanditEA) EvoAlg(evodef.EvoAlg)

Example 2 with EvoAgentSearchSpaceAsteroids

use of planetwar.EvoAgentSearchSpaceAsteroids in project SimpleAsteroids by ljialin.

the class TestSolutionAsteroids method main.

public static void main(String[] args) {
    // use this code to re-rest a particular point in the search space
    ElapsedTimer timer = new ElapsedTimer();
    int[] solution = { 0, 1, 1, 0, 5 };
    int nChecks = 10;
    new HyperParamTuneRunner().runChecks(new EvoAgentSearchSpaceAsteroids(), solution, nChecks);
    System.out.println(timer);
}
Also used : EvoAgentSearchSpaceAsteroids(planetwar.EvoAgentSearchSpaceAsteroids) ElapsedTimer(utilities.ElapsedTimer)

Aggregations

EvoAgentSearchSpaceAsteroids (planetwar.EvoAgentSearchSpaceAsteroids)2 AnnotatedFitnessSpace (evodef.AnnotatedFitnessSpace)1 EvoAlg (evodef.EvoAlg)1 NTupleBanditEA (ntuple.NTupleBanditEA)1 SlidingMeanEDA (ntuple.SlidingMeanEDA)1 ElapsedTimer (utilities.ElapsedTimer)1