예제 #1
0
 public IOperator action(IState s)
 {
     if (rand.NextDouble() < epsilon)
     {
         int size = qLearning.Env.ApplicableOperators(s).Count();
         return(qLearning.Env.ApplicableOperators(s).ElementAt(rand.Next(size)));
     }
     else
     {
         return(qLearning.GetBestOp(s));
     }
 }
예제 #2
0
 public IOperator action(IState s)
 {
     return(qLearning.GetBestOp(s));
 }