Package ch.idsia.ai.tasks

Examples of ch.idsia.ai.tasks.ProgressTask.evaluate()


        options.setVisualization(false);     
        options.setMaxAttempts(1);
        options.setMatlabFileName("");
        task.setOptions(options);
        for (int i = 0; i < repetitions; i++) {
            System.out.println ("Score: " + task.evaluate (controller)[0]);
        }
    }

}
View Full Code Here


      options.setLevelDifficulty(difficulty);
      options.setTimeLimit(0);
     
      task.setOptions(options);

      System.out.println("Score: " + ArrayUtils.toString(task.evaluate(controller)));
      System.out.println("Seed: " + options.getLevelRandSeed());
      System.out.println("Difficulty: " + options.getLevelDifficulty());
      seed++;
    }
  }
View Full Code Here

          System.out.println("Best of Gen " + i + ": " + vivarium.getBestFitnesses()[0]);
          vivarium.nextGeneration();
          System.out.flush();
        }

        System.out.println("Score: " + ArrayUtils.toString(task.evaluate(controller)));
        System.out.println("Seed: " + options.getLevelRandSeed());
        System.out.println("Difficulty: " + options.getLevelDifficulty());
        System.out.println("Best Genome: " + vivarium.getBests()[0]);
    }
}
View Full Code Here

    options.setLevelLength(length);
    options.setLevelRandSeed(seed);
    options.setLevelDifficulty(difficulty);
    task.setOptions(options);

    System.out.println("Score: " + ArrayUtils.toString(task.evaluate(controller)));
    System.out.println("Seed: " + options.getLevelRandSeed());
    System.out.println("Difficulty: " + options.getLevelDifficulty());
  }
}
View Full Code Here

                options.setMaxFPS(true);
                Agent a = (Agent) es.getBests()[0];
                a.setName(((Agent)initial).getName() + df.format(gen));
                RegisterableAgent.registerAgent(a);
                bestAgents.add(a);
                double result = task.evaluate(a)[0];
//                LOGGER.println("trying: " + result, LOGGER.VERBOSE_MODE.INFO);
                options.setVisualization(false);
                options.setMaxFPS(true);
                Easy.save (es.getBests()[0], "evolved.xml");
                if (result > 4000)
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.