13 #ifndef MLPACK_METHODS_ANN_LAYER_LOOKUP_HPP    14 #define MLPACK_METHODS_ANN_LAYER_LOOKUP_HPP    32     typename InputDataType = arma::mat,
    33     typename OutputDataType = arma::mat
    55   void Forward(
const arma::Mat<eT>&& input, arma::Mat<eT>&& output);
    67   void Backward(
const arma::Mat<eT>&& ,
    68                 const arma::Mat<eT>&& gy,
    79   void Gradient(
const arma::Mat<eT>&& input,
    80                 arma::Mat<eT>&& error,
   111   template<
typename Archive>
   112   void Serialize(Archive& ar, 
const unsigned int );
   142 #include "lookup_impl.hpp" OutputDataType const & Gradient() const 
Get the gradient. 
 
OutputDataType const & Delta() const 
Get the delta. 
 
InputDataType & InputParameter()
Modify the input parameter. 
 
Linear algebra utility functions, generally performed on matrices or vectors. 
 
Lookup(const size_t inSize, const size_t outSize)
Create the Lookup object using the specified number of input and output units. 
 
InputDataType const & InputParameter() const 
Get the input parameter. 
 
The core includes that mlpack expects; standard C++ includes and Armadillo. 
 
OutputDataType delta
Locally-stored delta object. 
 
OutputDataType outputParameter
Locally-stored output parameter object. 
 
OutputDataType weights
Locally-stored weight object. 
 
OutputDataType & Parameters()
Modify the parameters. 
 
OutputDataType & Gradient()
Modify the gradient. 
 
size_t inSize
Locally-stored number of input units. 
 
Implementation of the Lookup class. 
 
size_t outSize
Locally-stored number of output units. 
 
InputDataType inputParameter
Locally-stored input parameter object. 
 
void Backward(const arma::Mat< eT > &&, const arma::Mat< eT > &&gy, arma::Mat< eT > &&g)
Ordinary feed backward pass of a neural network, calculating the function f(x) by propagating x backw...
 
OutputDataType & OutputParameter()
Modify the output parameter. 
 
void Serialize(Archive &ar, const unsigned int)
Serialize the layer. 
 
OutputDataType const & OutputParameter() const 
Get the output parameter. 
 
OutputDataType const & Parameters() const 
Get the parameters. 
 
OutputDataType & Delta()
Modify the delta. 
 
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...
 
OutputDataType gradient
Locally-stored gradient object.