mlpack  3.4.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | List of all members
Concatenate< InputDataType, OutputDataType > Class Template Reference

Implementation of the Concatenate module class. More...

Public Member Functions

 Concatenate ()
 Create the Concatenate object using the specified number of output units. 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 & Concat () const
 Get the concat matrix. More...
 
OutputDataType & Concat ()
 Modify the delta. More...
 
OutputDataType const & Delta () const
 Get the delta. More...
 
OutputDataType & Delta ()
 Modify the delta. More...
 
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...
 
OutputDataType const & OutputParameter () const
 Get the output parameter. More...
 
OutputDataType & OutputParameter ()
 Modify the output parameter. More...
 
OutputDataType const & Parameters () const
 Get the parameters. More...
 
OutputDataType & Parameters ()
 Modify the parameters. More...
 
template<typename Archive >
void serialize (Archive &, const unsigned int)
 Serialize the layer. More...
 

Detailed Description

template<typename InputDataType = arma::mat, typename OutputDataType = arma::mat>
class mlpack::ann::Concatenate< InputDataType, OutputDataType >

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.

Template Parameters
InputDataTypeType of the input data (arma::colvec, arma::mat, arma::sp_mat or arma::cube).
OutputDataTypeType of the output data (arma::colvec, arma::mat, arma::sp_mat or arma::cube).

Definition at line 36 of file concatenate.hpp.

Constructor & Destructor Documentation

Create the Concatenate object using the specified number of output units.

Member Function Documentation

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.

Using the results from the feed forward pass.

Parameters
*(input) The propagated input activation.
gyThe backpropagated error.
gThe calculated gradient.
OutputDataType const& Concat ( ) const
inline

Get the concat matrix.

Definition at line 84 of file concatenate.hpp.

OutputDataType& Concat ( )
inline

Modify the delta.

Definition at line 86 of file concatenate.hpp.

OutputDataType const& Delta ( ) const
inline

Get the delta.

Definition at line 79 of file concatenate.hpp.

OutputDataType& Delta ( )
inline

Modify the delta.

Definition at line 81 of file concatenate.hpp.

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.

Parameters
inputInput data used for evaluating the specified function.
outputResulting output activation.
OutputDataType const& OutputParameter ( ) const
inline

Get the output parameter.

Definition at line 74 of file concatenate.hpp.

OutputDataType& OutputParameter ( )
inline

Modify the output parameter.

Definition at line 76 of file concatenate.hpp.

OutputDataType const& Parameters ( ) const
inline

Get the parameters.

Definition at line 69 of file concatenate.hpp.

OutputDataType& Parameters ( )
inline

Modify the parameters.

Definition at line 71 of file concatenate.hpp.

void serialize ( Archive &  ,
const unsigned  int 
)
inline

Serialize the layer.

Definition at line 92 of file concatenate.hpp.


The documentation for this class was generated from the following file: