Exemplo n.º 1
0
 public QLearningAgent(MDP <STATE_TYPE, ACTION_TYPE> mdp) : base(mdp)
 {
     Q                = new Dictionary <Pair <STATE_TYPE, ACTION_TYPE>, Double>();
     qTable           = new QTable <STATE_TYPE, ACTION_TYPE>(mdp.getAllActions());
     stateActionCount = new FrequencyCounter <Pair <STATE_TYPE, ACTION_TYPE> >();
     actionCounter    = 0;
 }