mlpack
|
Forward declaration of OneStepQLearningWorker. More...
#include <async_learning.hpp>
Public Types | |
using | StateType = typename EnvironmentType::State |
using | ActionType = typename EnvironmentType::Action |
using | TransitionType = std::tuple< StateType, ActionType, double, StateType > |
Public Member Functions | |
OneStepQLearningWorker (const UpdaterType &updater, const EnvironmentType &environment, const TrainingConfig &config, bool deterministic) | |
Construct one step Q-Learning worker with the given parameters and environment. More... | |
OneStepQLearningWorker (const OneStepQLearningWorker &other) | |
Copy another OneStepQLearningWorker. More... | |
OneStepQLearningWorker (OneStepQLearningWorker &&other) | |
Take ownership of another OneStepQLearningWorker. More... | |
OneStepQLearningWorker & | operator= (const OneStepQLearningWorker &other) |
Copy another OneStepQLearningWorker. More... | |
OneStepQLearningWorker & | operator= (OneStepQLearningWorker &&other) |
Take ownership of another OneStepQLearningWorker. More... | |
~OneStepQLearningWorker () | |
Clean memory. | |
void | Initialize (NetworkType &learningNetwork) |
Initialize the worker. More... | |
bool | Step (NetworkType &learningNetwork, NetworkType &targetNetwork, size_t &totalSteps, PolicyType &policy, double &totalReward) |
The agent will execute one step. More... | |
Forward declaration of OneStepQLearningWorker.
One step Q-Learning worker.
EnvironmentType | The type of the reinforcement learning task. |
NetworkType | The type of the network model. |
UpdaterType | The type of the optimizer. |
PolicyType | The type of the behavior policy. |
EnvironmentType | The type of the reinforcement learning task. |
NetworkType | The type of the network model. |
UpdaterType | The type of the optimizer. |
PolicyType | The type of the behavior policy. * |
|
inline |
Construct one step Q-Learning worker with the given parameters and environment.
updater | The optimizer. |
environment | The reinforcement learning task. |
config | Hyper-parameters. |
deterministic | Whether it should be deterministic. |
|
inline |
Copy another OneStepQLearningWorker.
other | OneStepQLearningWorker to copy. |
|
inline |
Take ownership of another OneStepQLearningWorker.
other | OneStepQLearningWorker to take ownership of. |
|
inline |
Initialize the worker.
learningNetwork | The shared network. |
|
inline |
Copy another OneStepQLearningWorker.
other | OneStepQLearningWorker to copy. |
|
inline |
Take ownership of another OneStepQLearningWorker.
other | OneStepQLearningWorker to take ownership of. |
|
inline |
The agent will execute one step.
learningNetwork | The shared learning network. |
targetNetwork | The shared target network. |
totalSteps | The shared counter for total steps. |
policy | The shared behavior policy. |
totalReward | This will be the episode return if the episode ends after this step. Otherwise this is invalid. |