Пример #1
0
 public ModelledWalkerAI(WalkerAgent agent, float nearDistance, float farDistance)
 {
     sarsa = new ExpectedSarsa(new WalkerDiscreteEnvironment(nearDistance, farDistance),
                               new EpsGreedyPolicy(0.7), 0.7, 0.8);
     ai         = new PrioritizeSweeping(sarsa, 30);
     this.agent = agent;
 }
Пример #2
0
 public SarsaWalkerAI(WalkerAgent agent, float nearDistance, float farDistance)
 {
     ai = new ExpectedSarsa(new WalkerDiscreteEnvironment(nearDistance, farDistance),
                            new EpsGreedyPolicy(0.8), 0.5, 0.8);
     this.agent = agent;
 }