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