Examples of computeDistancePassed()


Examples of ch.idsia.tools.EvaluationInfo.computeDistancePassed()

        agent.reset();
        options.setAgent(agent);
        Evaluator evaluator = new Evaluator (options);
        EvaluationInfo result = evaluator.evaluate().get(0);
       // System.out.print(".");
        double score = result.computeDistancePassed();
         System.out.println("score: " +score);
        return score;
    }

}
View Full Code Here

Examples of ch.idsia.tools.EvaluationInfo.computeDistancePassed()

        agent.reset();
        options.setAgent(agent);
        Evaluator evaluator = new Evaluator (options);
        EvaluationInfo result = evaluator.evaluate().get(0);
       // System.out.print(".");
        double score = result.computeDistancePassed();
         System.out.println("score: " +score);
        return score;
    }

}
View Full Code Here

Examples of ch.idsia.tools.EvaluationInfo.computeDistancePassed()

            options.setLevelRandSeed(seed + i);
            controller.reset();
            options.setAgent(controller);
            Evaluator evaluator = new Evaluator (options);
            EvaluationInfo result = evaluator.evaluate().get(0);
      System.out.printf("  map seed %d diff %2d -> %f (%f ms/frame)\n", seed+i, level, result.computeDistancePassed(), controller.averageTimeTaken());
            ss.add (result.computeDistancePassed());
        }
        return ss;
    }
View Full Code Here

Examples of ch.idsia.tools.EvaluationInfo.computeDistancePassed()

            controller.reset();
            options.setAgent(controller);
            Evaluator evaluator = new Evaluator (options);
            EvaluationInfo result = evaluator.evaluate().get(0);
      System.out.printf("  map seed %d diff %2d -> %f (%f ms/frame)\n", seed+i, level, result.computeDistancePassed(), controller.averageTimeTaken());
            ss.add (result.computeDistancePassed());
        }
        return ss;
    }

View Full Code Here

Examples of ch.idsia.tools.EvaluationInfo.computeDistancePassed()

            options.setLevelRandSeed(seed + i);
            controller.reset();
            options.setAgent(controller);
            Evaluator evaluator = new Evaluator (options);
            EvaluationInfo result = evaluator.evaluate().get(0);
            ss.add (result.computeDistancePassed());
        }
        return ss;
    }

}
View Full Code Here

Examples of ch.idsia.tools.EvaluationInfo.computeDistancePassed()

            options.setLevelDifficulty(difficulties[i]);
            options.setAgent(controller);
            Evaluator evaluator = new Evaluator(options);
            List<EvaluationInfo> results = evaluator.evaluate();
            EvaluationInfo result = results.get(0);
            double thisDistance = result.computeDistancePassed();
            fitnesses[i + 1] = thisDistance;
            distanceTravelled += thisDistance;
        }
        distanceTravelled = distanceTravelled / difficulties.length;
        fitnesses[0] = distanceTravelled;
View Full Code Here

Examples of ch.idsia.tools.EvaluationInfo.computeDistancePassed()

            controller.reset();
            options.setLevelRandSeed(startingSeed + i);
            Evaluator evaluator = new Evaluator(options);
            List<EvaluationInfo> results = evaluator.evaluate();    
            EvaluationInfo result = results.get(0);
            distanceTravelled += result.computeDistancePassed();
        }
        distanceTravelled = distanceTravelled / numberOfSeeds;
        return new double[]{distanceTravelled};
    }
View Full Code Here

Examples of ch.idsia.tools.EvaluationInfo.computeDistancePassed()

        for (int i = 0; i < numberOfSeeds; i++) {
            options.setLevelRandSeed(startingSeed + i);
            Evaluator evaluator = new Evaluator(options);
            List<EvaluationInfo> results = evaluator.evaluate();
            EvaluationInfo result = results.get(0);
            distanceTravelled += result.computeDistancePassed();
        }
        distanceTravelled = distanceTravelled / numberOfSeeds;
        return new double[]{distanceTravelled};
    }
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.