13 #ifndef MLPACK_METHODS_ANN_LAYER_LINEAR_NO_BIAS_HPP 14 #define MLPACK_METHODS_ANN_LAYER_LINEAR_NO_BIAS_HPP 33 typename InputDataType = arma::mat,
34 typename OutputDataType = arma::mat
62 void Forward(
const arma::Mat<eT>&& input, arma::Mat<eT>&& output);
74 void Backward(
const arma::Mat<eT>&& ,
86 void Gradient(
const arma::Mat<eT>&& input,
87 arma::Mat<eT>&& error,
88 arma::Mat<eT>&& gradient);
91 OutputDataType
const&
Parameters()
const {
return weights; }
106 OutputDataType
const&
Delta()
const {
return delta; }
108 OutputDataType&
Delta() {
return delta; }
111 OutputDataType
const&
Gradient()
const {
return gradient; }
118 template<
typename Archive>
119 void serialize(Archive& ar,
const unsigned int );
129 OutputDataType weights;
132 OutputDataType weight;
135 OutputDataType delta;
138 OutputDataType gradient;
141 InputDataType inputParameter;
144 OutputDataType outputParameter;
151 #include "linear_no_bias_impl.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 activ...
void serialize(Archive &ar, const unsigned int)
Serialize the layer.
OutputDataType & Gradient()
Modify the gradient.
OutputDataType & OutputParameter()
Modify the output parameter.
InputDataType const & InputParameter() const
Get the input parameter.
OutputDataType const & OutputParameter() const
Get the output parameter.
InputDataType & InputParameter()
Modify the input parameter.
The core includes that mlpack expects; standard C++ includes and Armadillo.
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 const & Gradient() const
Get the gradient.
OutputDataType const & Parameters() const
Get the parameters.
OutputDataType & Delta()
Modify the delta.
OutputDataType & Parameters()
Modify the parameters.
LinearNoBias()
Create the LinearNoBias object.
OutputDataType const & Delta() const
Get the delta.