This class represents the mean squared error term. More...
#include <mean_squared_error.h>
Additional Inherited Members | |
![]() | |
enum class | RegularizationMethod { L1 , L2 , NoRegularization } |
Enumeration of available regularization methods. More... | |
![]() | |
NonBlockingThreadPool * | non_blocking_thread_pool = nullptr |
ThreadPoolDevice * | thread_pool_device = nullptr |
NeuralNetwork * | neural_network_pointer = nullptr |
Pointer to a neural network object. More... | |
DataSet * | data_set_pointer = nullptr |
Pointer to a data set object. More... | |
RegularizationMethod | regularization_method = RegularizationMethod::L2 |
Pointer to a regularization method object. More... | |
type | regularization_weight = static_cast<type>(0.01) |
Regularization weight value. More... | |
bool | display = true |
Display messages to screen. More... | |
const Eigen::array< IndexPair< Index >, 1 > | AT_B = {IndexPair<Index>(0, 0)} |
const Eigen::array< IndexPair< Index >, 1 > | A_B = {IndexPair<Index>(1, 0)} |
const Eigen::array< IndexPair< Index >, 2 > | SSE = {IndexPair<Index>(0, 0), IndexPair<Index>(1, 1)} |
const Eigen::array< int, 1 > | rows_sum = {Eigen::array<int, 1>({1})} |
This class represents the mean squared error term.
The mean squared error measures the difference between the outputs from a neural network and the targets in a data set. This functional is used in data modeling problems, such as function regression, classification and time series prediction.
Definition at line 37 of file mean_squared_error.h.
|
explicit |
Default constructor. It creates a mean squared error term not associated to any neural network and not measured on any data set. It also initializes all the rest of class members to their default values.
Definition at line 19 of file mean_squared_error.cpp.
|
explicit |
Neural network and data set constructor. It creates a mean squared error term object associated to a neural network and measured on a data set. It also initializes all the rest of class members to their default values.
new_neural_network_pointer | Pointer to a neural network object. |
new_data_set_pointer | Pointer to a data set object. |
Definition at line 31 of file mean_squared_error.cpp.
|
virtual |
Destructor.
Definition at line 39 of file mean_squared_error.cpp.
|
virtual |
MeanSquaredError::calculate_error.
batch | |
forward_propagation | |
back_propagation |
Implements LossIndex.
Definition at line 49 of file mean_squared_error.cpp.
|
virtual |
Reimplemented from LossIndex.
Definition at line 195 of file mean_squared_error.cpp.
|
virtual |
Reimplemented from LossIndex.
Definition at line 216 of file mean_squared_error.cpp.
|
virtual |
Reimplemented from LossIndex.
Definition at line 65 of file mean_squared_error.cpp.
|
virtual |
Implements LossIndex.
Definition at line 81 of file mean_squared_error.cpp.
|
virtual |
Reimplemented from LossIndex.
Definition at line 140 of file mean_squared_error.cpp.
|
virtual |
Returns a string with the name of the mean squared error loss type, "MEAN_SQUARED_ERROR".
Reimplemented from LossIndex.
Definition at line 237 of file mean_squared_error.cpp.
|
virtual |
Returns a string with the name of the mean squared error loss type in text format.
Reimplemented from LossIndex.
Definition at line 245 of file mean_squared_error.cpp.
|
virtual |
Serializes the cross entropy error object into a XML document of the TinyXML library without keep the DOM tree in memory. See the OpenNN manual for more information about the format of this document
Reimplemented from LossIndex.
Definition at line 254 of file mean_squared_error.cpp.