|
| CategoricalDQN () |
| Default constructor. More...
|
|
| CategoricalDQN (const int inputDim, const int h1, const int h2, const int outputDim, TrainingConfig config, const bool isNoisy=false, InitType init=InitType(), OutputLayerType outputLayer=OutputLayerType()) |
| Construct an instance of CategoricalDQN class. More...
|
|
| CategoricalDQN (NetworkType &network, TrainingConfig config, const bool isNoisy=false) |
| Construct an instance of CategoricalDQN class from a pre-constructed network. More...
|
|
void | Backward (const arma::mat state, arma::mat &lossGradients, arma::mat &gradient) |
| Perform the backward pass of the state in real batch mode. More...
|
|
void | Forward (const arma::mat state, arma::mat &dist) |
| Perform the forward pass of the states in real batch mode. More...
|
|
const arma::mat & | Parameters () const |
| Return the Parameters. More...
|
|
arma::mat & | Parameters () |
| Modify the Parameters. More...
|
|
void | Predict (const arma::mat state, arma::mat &actionValue) |
| Predict the responses to a given set of predictors. More...
|
|
void | ResetNoise () |
| Resets noise of the network, if the network is of type noisy. More...
|
|
void | ResetParameters () |
| Resets the parameters of the network. More...
|
|
template<typename OutputLayerType = EmptyLoss<>, typename InitType = GaussianInitialization, typename NetworkType = FFN<OutputLayerType, InitType>>
class mlpack::rl::CategoricalDQN< OutputLayerType, InitType, NetworkType >
Implementation of the Categorical Deep Q-Learning network.
For more information, see the following.
@misc{bellemare2017distributional,
author = {Marc G. Bellemare, Will Dabney, RĂ©mi Munos},
title = {A Distributional Perspective on Reinforcement Learning},
year = {2017},
url = {http:
}
- Template Parameters
-
OutputLayerType | The output layer type of the network. |
InitType | The initialization type used for the network. |
NetworkType | The type of network used for simple dqn. |
Definition at line 50 of file categorical_dqn.hpp.
void Predict |
( |
const arma::mat |
state, |
|
|
arma::mat & |
actionValue |
|
) |
| |
|
inline |
Predict the responses to a given set of predictors.
The responses will reflect the output of the given output layer as returned by the output layer function.
If you want to pass in a parameter and discard the original parameter object, be sure to use std::move to avoid unnecessary copy.
- Parameters
-
state | Input state. |
actionValue | Matrix to put output action values of states input. |
Definition at line 133 of file categorical_dqn.hpp.