Package net.javlov

Examples of net.javlov.SarsaAgent


    sim.setAgent(agent);
  }
 
  protected SarsaAgent makeAgent(List<? extends Option> optionPool) {
    qf = TabularQFunction.getInstance(optionPool.size());
    SarsaAgent a = new QLearningAgent(qf, 1, optionPool);
    //a.setLearnRate(new DecayingLearningRate(1, optionPool.size(), 0.8));
    a.setLearnRate( new FixedLearningRate(0.2) );
    Policy pi = new EGreedyPolicy(qf, 0.05, optionPool);
    a.setPolicy(pi);
    a.setSMDPMode(true);
    a.setLearnStateValueFunction(false);
    a.setInterruptOptions(false);
    return a;
  }
View Full Code Here

TOP

Related Classes of net.javlov.SarsaAgent

Copyright © 2018 www.massapicom. 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.