13 #ifndef MLPACK_METHODS_ANN_LAYER_REINFORCE_NORMAL_HPP 14 #define MLPACK_METHODS_ANN_LAYER_REINFORCE_NORMAL_HPP 31 typename InputDataType = arma::mat,
32 typename OutputDataType = arma::mat
52 void Forward(
const arma::Mat<eT>& input, arma::Mat<eT>& output);
63 template<
typename DataType>
64 void Backward(
const DataType& input,
const DataType& , DataType& g);
72 OutputDataType&
Delta()
const {
return delta; }
74 OutputDataType&
Delta() {
return delta; }
82 double Reward()
const {
return reward; }
92 template<
typename Archive>
93 void serialize(Archive& ar,
const uint32_t );
103 OutputDataType delta;
106 OutputDataType outputParameter;
109 std::vector<arma::mat> moduleInputParameter;
double Reward() const
Get the value of the reward parameter.
Definition: reinforce_normal.hpp:82
bool Deterministic() const
Get the value of the deterministic parameter.
Definition: reinforce_normal.hpp:77
Linear algebra utility functions, generally performed on matrices or vectors.
Definition: cv.hpp:1
void Forward(const arma::Mat< eT > &input, arma::Mat< eT > &output)
Ordinary feed forward pass of a neural network, evaluating the function f(x) by propagating the activ...
Definition: reinforce_normal_impl.hpp:31
OutputDataType & Delta() const
Get the delta.
Definition: reinforce_normal.hpp:72
void serialize(Archive &ar, const uint32_t)
Serialize the layer.
Definition: reinforce_normal_impl.hpp:64
Implementation of the reinforce normal layer.
Definition: reinforce_normal.hpp:34
The core includes that mlpack expects; standard C++ includes and Armadillo.
OutputDataType & OutputParameter()
Modify the output parameter.
Definition: reinforce_normal.hpp:69
void Backward(const DataType &input, const DataType &, DataType &g)
Ordinary feed backward pass of a neural network, calculating the function f(x) by propagating x backw...
Definition: reinforce_normal_impl.hpp:50
bool & Deterministic()
Modify the value of the deterministic parameter.
Definition: reinforce_normal.hpp:79
ReinforceNormal(const double stdev=1.0)
Create the ReinforceNormal object.
Definition: reinforce_normal_impl.hpp:23
double & Reward()
Modify the value of the deterministic parameter.
Definition: reinforce_normal.hpp:84
double StandardDeviation() const
Get the standard deviation used during forward and backward pass.
Definition: reinforce_normal.hpp:87
OutputDataType & Delta()
Modify the delta.
Definition: reinforce_normal.hpp:74
OutputDataType & OutputParameter() const
Get the output parameter.
Definition: reinforce_normal.hpp:67