|
mlpack
|
Implementation of the Concatenate module class. More...
#include <concatenate.hpp>
Public Member Functions | |
| Concatenate () | |
| Create the Concatenate object using the specified number of output units. | |
| Concatenate (const Concatenate &layer) | |
| Copy constructor. | |
| Concatenate (Concatenate &&layer) | |
| Move constructor. | |
| Concatenate & | operator= (const Concatenate &layer) |
| Operator= copy constructor. | |
| Concatenate & | operator= (Concatenate &&layer) |
| Operator= move constructor. | |
| template<typename eT > | |
| 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 activity forward through f. More... | |
| template<typename eT > | |
| 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 backwards trough f. More... | |
| OutputDataType const & | Parameters () const |
| Get the parameters. | |
| OutputDataType & | Parameters () |
| Modify the parameters. | |
| OutputDataType const & | OutputParameter () const |
| Get the output parameter. | |
| OutputDataType & | OutputParameter () |
| Modify the output parameter. | |
| OutputDataType const & | Delta () const |
| Get the delta. | |
| OutputDataType & | Delta () |
| Modify the delta. | |
| OutputDataType const & | Concat () const |
| Get the concat matrix. | |
| OutputDataType & | Concat () |
| Modify the concat. | |
| template<typename Archive > | |
| void | serialize (Archive &, const uint32_t) |
| Serialize the layer. | |
Implementation of the Concatenate module class.
The Concatenate module concatenates a constant given matrix to the incoming data. Note: Users need to use the Concat() function to provide the concat matrix.
| InputDataType | Type of the input data (arma::colvec, arma::mat, arma::sp_mat or arma::cube). |
| OutputDataType | Type of the output data (arma::colvec, arma::mat, arma::sp_mat or arma::cube). |
| void mlpack::ann::Concatenate< InputDataType, OutputDataType >::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 backwards trough f.
Using the results from the feed forward pass.
| * | (input) The propagated input activation. |
| gy | The backpropagated error. |
| g | The calculated gradient. |
| void mlpack::ann::Concatenate< InputDataType, OutputDataType >::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 activity forward through f.
| input | Input data used for evaluating the specified function. |
| output | Resulting output activation. |
1.8.13