Examples of evaluate()


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

            task.setStartingSeed((int) (Math.random () * Integer.MAX_VALUE));
            es.nextGeneration();
            double bestResult = es.getBestFitnesses()[0];
            System.out.println("Generation " + gen + " best " + bestResult);
            Evolvable bestEvolvable = es.getBests()[0];
            double[] fitnesses = task.evaluate((Agent) bestEvolvable);
            System.out.printf("%.4f  %.4f  %.4f  %.4f  %.4f\n",
                    fitnesses[0], fitnesses[1], fitnesses[2], fitnesses[3], fitnesses[4]);
            Easy.save (es.getBests()[0], fileName);
        }
        Stats.main(new String[]{fileName, "0"});

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

                options.setVisualization(gen % 5 == 0 || bestResult > 4000);
                options.setMaxFPS(true);
                Agent a = (Agent) es.getBests()[0];
                a.setName(((Agent)initial).getName() + gen);
                RegisterableAgent.registerAgent(a);
                double result = task.evaluate(a)[0];
                options.setVisualization(false);
                options.setMaxFPS(true);
                Easy.save (es.getBests()[0], "evolved.xml");
                if (result > 4000) {
                    initial = es.getBests()[0];

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]);
        }
    }

}

Examples of ch.idsia.ai.tasks.Task.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]);
        }
    }

}

Examples of ch.idsia.tools.Evaluator.evaluate()

        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();
         System.out.println("score: " +score);
        return score;
    }

Examples of ch.qos.logback.classic.boolex.JaninoEventEvaluator.evaluate()

    JaninoEventEvaluator evaluator = (JaninoEventEvaluator) evalMap.get("msgEval");
    assertNotNull(evaluator);
   
    Logger logger = loggerContext.getLogger("xx");
    ILoggingEvent event0 = new LoggingEvent("foo", logger, Level.DEBUG, "Hello world", null, null);
    assertTrue(evaluator.evaluate(event0));
   
    ILoggingEvent event1 = new LoggingEvent("foo", logger, Level.DEBUG, "random blurb", null, null);
    assertFalse(evaluator.evaluate(event1));
  }
 

Examples of ch.qos.logback.core.boolex.EventEvaluator.evaluate()

    if (evaluatorList != null) {
      boolean printCallerData = false;
      for (int i = 0; i < evaluatorList.size(); i++) {
        EventEvaluator ee = (EventEvaluator) evaluatorList.get(i);
        try {
          if (ee.evaluate(event)) {
            printCallerData = true;
            break;
          }
        } catch (EvaluationException eex) {
          // just ignore evaluation exception

Examples of com.CompPad.model.GroovyEngine.evaluate()

        System.out.println("testFunctionDef");
        // Parser must refer to a GroovyEngine
        GroovyEngine gEngine = new GroovyEngine();
        Parser.setGroovyEngine(gEngine);
        // define a closure in the groovy shell
        gEngine.evaluate("f = {x,y-> x + y}");
        String ss[] ={
                "z := f(1,2)","z+1",
                "f",
                /* treat function as variable if it is followed by an end of line or a
                 closing parentheses or an operator.  That way it can be

Examples of com.adahas.tools.jmxeval.util.ExprEval.evaluate()

   
    final ExprEval exprEval = new ExprEval(replaceWithVars(context, expression));
    if (scale != null) {
      exprEval.setScale(Integer.parseInt(scale));
    }
    final Object result = exprEval.evaluate();
   
    // set result variable
    context.setVar(var, result);
   
    // process child elements

Examples of com.alibaba.citrus.expr.Expression.evaluate()

                 * @param context <code>ExpressionContext</code>上下文
                 * @return 表达式的计算结果
                 */
                public Object evaluate(ExpressionContext context) {
                    // 首先执行jexl表达式
                    Object value = jexlExpression.evaluate(context);

                    // 如果jexl表达式结果为null,则从context中直接取值
                    if (value == null) {
                        value = context.get(expr);
                    }
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.