Examples of LargeSRNAgent


Examples of ch.idsia.ai.agents.ai.LargeSRNAgent

    public double evaluateLargeSRN (double[][] inputs, double[][] recurrent, double[][] output, int level, int seed) {
        // System.out.println(inputs.length+" "+inputs[0].length);
        // System.out.println(recurrent.length+" "+recurrent[0].length);
        // System.out.println(output.length+" "+output[0].length);
        SRN srn = new SRN (inputs, recurrent, output, recurrent.length, output[0].length);
        Agent agent = new LargeSRNAgent(srn);
        EvaluationOptions options = new CmdLineOptions(new String[0]);
        final int startingSeed = 0;
        options.setLevelRandSeed(seed);
        options.setMaxAttempts(1);
        options.setVisualization(false);
        options.setMaxFPS(true);
        options.setLevelDifficulty(level);
        options.setPauseWorld(false);
        agent.reset();
        options.setAgent(agent);
        Evaluator evaluator = new Evaluator (options);
        EvaluationInfo result = evaluator.evaluate().get(0);
       // System.out.print(".");
        double score = result.computeDistancePassed();
View Full Code Here

Examples of ch.idsia.ai.agents.ai.LargeSRNAgent

    public void evaluateLargeSRN (double[][] inputs, double[][] recurrent, double[][] output, int level) {
        // 98 * 6
        // 6*6
        // 6*6
        SRN srn = new SRN (inputs, recurrent, output, recurrent.length, output[0].length);
        Agent agent = new LargeSRNAgent(srn);
        Stats.doStats(agent, 0);
    }
View Full Code Here

Examples of ch.idsia.ai.agents.ai.LargeSRNAgent

    public double evaluateLargeSRN (double[][] inputs, double[][] recurrent, double[][] output, int level,int seed) {
        // System.out.println(inputs.length+" "+inputs[0].length);
        // System.out.println(recurrent.length+" "+recurrent[0].length);
        // System.out.println(output.length+" "+output[0].length);
        SRN srn = new SRN (inputs, recurrent, output, recurrent.length, output[0].length);
        Agent agent = new LargeSRNAgent(srn);
        EvaluationOptions options = new CmdLineOptions(new String[0]);
        options.setLevelRandSeed(seed);
        options.setMaxAttempts(1);
        options.setVisualization(true);
        options.setMaxFPS(false);
        options.setLevelDifficulty(level);
        options.setPauseWorld(false);
        agent.reset();
        options.setAgent(agent);
        Evaluator evaluator = new Evaluator (options);
        EvaluationInfo result = evaluator.evaluate().get(0);
       // System.out.print(".");
        double score = result.computeDistancePassed();
View Full Code Here

Examples of ch.idsia.ai.agents.ai.LargeSRNAgent


    public static void main(String[] args) {
        EvaluationOptions options = new CmdLineOptions(new String[0]);
        options.setMaxAttempts(1);
        Evolvable initial = new LargeSRNAgent();
        if (args.length > 0) {
            initial = (Evolvable) RegisterableAgent.load (args[0]);
        }
        RegisterableAgent.registerAgent ((Agent) initial);
        options.setMaxFPS(true);
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.