Documentation ¶
Index ¶
- func NewDqn(logger logger.Debug) (rlglue.Agent, error)
- type Dqn
- func (agent *Dqn) End(state rlglue.State, reward float64)
- func (agent *Dqn) Feed(lastS rlglue.State, lastA int, state rlglue.State, reward float64, ...)
- func (agent *Dqn) Initialize(run uint, expAttr, envAttr rlglue.Attributes) error
- func (agent *Dqn) Policy(state rlglue.State) int
- func (agent *Dqn) Start(state rlglue.State) rlglue.Action
- func (agent *Dqn) StateNormalization(state rlglue.State) rlglue.State
- func (agent *Dqn) Step(state rlglue.State, reward float64) rlglue.Action
- func (agent *Dqn) Update()
- type Model
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Dqn ¶
type Dqn struct { logger.Debug EnableDebug bool NumberOfActions int `json:"numberOfActions"` StateContainsReplay bool `json:"state-contains-replay"` Gamma float64 `json:"gamma"` Epsilon float64 `json:"epsilon"` Hidden int `json:"dqn-hidden"` Layer int `json:"dqn-ly"` Alpha float64 `json:"alpha"` Sync int `json:"dqn-sync"` Bsize int `json:"buffer-size"` Btype string `json:"buffer-type"` StateDim int `json:"state-len"` BatchSize int `json:"dqn-batch"` StateRange []float64 // contains filtered or unexported fields }
func (*Dqn) End ¶
End informs the agent that a terminal state has been reached, providing the final reward.
func (*Dqn) Initialize ¶
func (agent *Dqn) Initialize(run uint, expAttr, envAttr rlglue.Attributes) error
func (*Dqn) Start ¶
Start provides an initial observation to the agent and returns the agent's action.
func (*Dqn) StateNormalization ¶
Click to show internal directories.
Click to hide internal directories.