예제 #1
0
 public static void Validate(QLearning q)
 {
     foreach (var state in q.States)
     {
         foreach (var action in state.Actions)
         {
             action.ValidateActionsResultProbability();
         }
     }
 }
예제 #2
0
 public QState(string stateName, QLearning q)
 {
     q.StateLookup.Add(stateName, this);
     StateName = stateName;
     Actions   = new List <QAction>();
 }