12 #ifndef MLPACK_METHODS_ANN_LAYER_SELECT_HPP 13 #define MLPACK_METHODS_ANN_LAYER_SELECT_HPP 29 typename InputDataType = arma::mat,
30 typename OutputDataType = arma::mat
51 void Forward(
const arma::Mat<eT>&& input, arma::Mat<eT>&& output);
63 void Backward(
const arma::Mat<eT>&& ,
85 template<
typename Archive>
86 void Serialize(Archive& ar,
const unsigned int );
109 #include "select_impl.hpp" InputDataType & InputParameter()
Modify the input parameter.
Linear algebra utility functions, generally performed on matrices or vectors.
size_t index
Locally-stored column index.
OutputDataType & OutputParameter()
Modify the output parameter.
Select(const size_t index, const size_t elements=0)
Create the Select object.
The core includes that mlpack expects; standard C++ includes and Armadillo.
The select module selects the specified column from a given input matrix.
OutputDataType & OutputParameter() const
Get the output parameter.
OutputDataType & Delta()
Modify the delta.
void Serialize(Archive &ar, const unsigned int)
Serialize the layer.
OutputDataType outputParameter
Locally-stored output parameter object.
InputDataType inputParameter
Locally-stored input parameter object.
OutputDataType & Delta() const
Get the delta.
size_t elements
Locally-stored number of elements selected.
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...
void Backward(const arma::Mat< eT > &&, 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 delta
Locally-stored delta object.
InputDataType & InputParameter() const
Get the input parameter.