Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type QMap ¶
type QMap struct {
// contains filtered or unexported fields
}
QMap is a mapping of states to actions (and each action's q-value).
func (*QMap) GetActionsForState ¶
GetActionsForState returns the actions associated with a given state.
func (*QMap) GetStats ¶
func (qq *QMap) GetStats(state iface.Stater, action iface.Actioner) (stats iface.ActionStatter, found bool)
GetStats returns the stats for a given state and action. If a the specified action has not been recorded for the given state, the method will return nil, false.
func (*QMap) UpdateStats ¶
UpdateStats updates the stats of a given state and action.
Click to show internal directories.
Click to hide internal directories.