12 #ifndef MLPACK_METHODS_ANN_LAYER_MEAN_SQUARED_ERROR_HPP 13 #define MLPACK_METHODS_ANN_LAYER_MEAN_SQUARED_ERROR_HPP 31 typename InputDataType = arma::mat,
32 typename OutputDataType = arma::mat
48 template<
typename InputType,
typename TargetType>
49 double Forward(
const InputType&& input,
const TargetType&& target);
57 template<
typename InputType,
typename TargetType,
typename OutputType>
58 void Backward(
const InputType&& input,
59 const TargetType&& target,
73 OutputDataType&
Delta()
const {
return delta; }
75 OutputDataType&
Delta() {
return delta; }
80 template<
typename Archive>
81 void serialize(Archive& ar,
const unsigned int );
88 InputDataType inputParameter;
91 OutputDataType outputParameter;
98 #include "mean_squared_error_impl.hpp" OutputDataType & Delta() const
Get the delta.
double Forward(const InputType &&input, const TargetType &&target)
The core includes that mlpack expects; standard C++ includes and Armadillo.
OutputDataType & OutputParameter() const
Get the output parameter.
InputDataType & InputParameter()
Modify the input parameter.
InputDataType & InputParameter() const
Get the input parameter.
MeanSquaredError()
Create the MeanSquaredError object.
void Backward(const InputType &&input, const TargetType &&target, OutputType &&output)
Ordinary feed backward pass of a neural network.
The mean squared error performance function measures the network's performance according to the mean ...
void serialize(Archive &ar, const unsigned int)
Serialize the layer.
OutputDataType & Delta()
Modify the delta.
OutputDataType & OutputParameter()
Modify the output parameter.