Frequently Used Methods
Frequently Used Methods
Frequently Used Methods
Frequently Used Methods
public AIAction ChooseAction(State state, ActionValueFunction actionValueFunction) { if (Random() > greedy) { return(ChooseRandomAction(actionValueFunction.GetActionValues(state))); } return(ChooseRandomAction(ListUtils.GetAllHighest(GetActionProbabilities(state, actionValueFunction), (x, y) => (x.Value - y.Value)))); }