8 #ifndef MLPACK_METHODS_ANN_LAYER_REINFORCE_NORMAL_HPP 9 #define MLPACK_METHODS_ANN_LAYER_REINFORCE_NORMAL_HPP 26 typename InputDataType = arma::mat,
27 typename OutputDataType = arma::mat
47 void Forward(
const arma::Mat<eT>&& input, arma::Mat<eT>&& output);
58 template<
typename DataType>
59 void Backward(
const DataType&& input, DataType&& , DataType&& g);
89 template<
typename Archive>
90 void Serialize(Archive& ,
const unsigned int );
119 #include "reinforce_normal_impl.hpp" bool deterministic
If true use maximum a posteriori during the forward pass.
Linear algebra utility functions, generally performed on matrices or vectors.
OutputDataType & Delta() const
Get the delta.
bool Deterministic() const
Get the value of the deterministic parameter.
double reward
Locally-stored reward parameter.
Implementation of the reinforce normal layer.
The core includes that mlpack expects; standard C++ includes and Armadillo.
OutputDataType & OutputParameter()
Modify the output parameter.
OutputDataType delta
Locally-stored delta object.
OutputDataType outputParameter
Locally-stored output parameter object.
double Reward() const
Get the value of the reward parameter.
ReinforceNormal(const double stdev)
Create the ReinforceNormal object.
bool & Deterministic()
Modify the value of the deterministic parameter.
const double stdev
Standard deviation used during the forward and backward pass.
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...
double & Reward()
Modify the value of the deterministic parameter.
OutputDataType & OutputParameter() const
Get the output parameter.
std::vector< arma::mat > moduleInputParameter
Locally-stored output module parameter parameters.
InputDataType inputParameter
Locally-stored input parameter object.
OutputDataType & Delta()
Modify the delta.
void Backward(const DataType &&input, DataType &&, DataType &&g)
Ordinary feed backward pass of a neural network, calculating the function f(x) by propagating x backw...
void Serialize(Archive &, const unsigned int)
Serialize the layer.
InputDataType & InputParameter()
Modify the input parameter.
InputDataType & InputParameter() const
Get the input parameter.