This class represents the sum squared peformance term functional. More...
#include <sum_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 sum squared peformance term functional.
This is used as the error term in data modeling problems, such as function regression, classification or time series prediction.
Definition at line 37 of file sum_squared_error.h.
|
explicit |
Default constructor. It creates a sum 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 18 of file sum_squared_error.cpp.
|
explicit |
Neural network and data set constructor. It creates a sum squared error 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 29 of file sum_squared_error.cpp.
|
virtual |
Destructor.
Definition at line 37 of file sum_squared_error.cpp.
|
virtual |
Implements LossIndex.
Definition at line 42 of file sum_squared_error.cpp.
|
virtual |
Reimplemented from LossIndex.
Definition at line 184 of file sum_squared_error.cpp.
|
virtual |
Reimplemented from LossIndex.
Definition at line 203 of file sum_squared_error.cpp.
|
virtual |
Reimplemented from LossIndex.
Definition at line 54 of file sum_squared_error.cpp.
|
virtual |
Implements LossIndex.
Definition at line 66 of file sum_squared_error.cpp.
|
virtual |
Reimplemented from LossIndex.
Definition at line 127 of file sum_squared_error.cpp.
void from_XML | ( | const tinyxml2::XMLDocument & | document | ) |
Loads a sum squared error object from a XML document.
document | TinyXML document containing the members of the object. |
Definition at line 254 of file sum_squared_error.cpp.
|
virtual |
Returns a string with the name of the sum squared error loss type, "SUM_SQUARED_ERROR".
Reimplemented from LossIndex.
Definition at line 224 of file sum_squared_error.cpp.
|
virtual |
Returns a string with the name of the sum squared error loss type in text format.
Reimplemented from LossIndex.
Definition at line 232 of file sum_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 241 of file sum_squared_error.cpp.