#include <loss_index.h>
Public Member Functions | |
| LossIndexBackPropagation () | |
| Default constructor. More... | |
| LossIndexBackPropagation (const Index &new_batch_samples_number, LossIndex *new_loss_index_pointer) | |
| virtual | ~LossIndexBackPropagation () |
| Destructor. More... | |
| void | set (const Index &new_batch_samples_number, LossIndex *new_loss_index_pointer) |
| void | print () const |
Public Attributes | |
| LossIndex * | loss_index_pointer = nullptr |
| Index | batch_samples_number = 0 |
| NeuralNetworkBackPropagation | neural_network |
| type | error = type(0) |
| type | loss = type(0) |
| Tensor< type, 2 > | errors |
| Tensor< type, 1 > | parameters |
| Tensor< type, 1 > | gradient |
| Tensor< type, 1 > | regularization_gradient |
Set of loss value and gradient vector of the loss index. A method returning this structure might be implemented more efficiently than the loss and gradient methods separately.
Definition at line 289 of file loss_index.h.
|
inlineexplicit |
Default constructor.
Definition at line 293 of file loss_index.h.
|
inlineexplicit |
Definition at line 295 of file loss_index.h.
|
virtual |
Destructor.
Definition at line 1011 of file loss_index.cpp.
|
inline |
Definition at line 336 of file loss_index.h.
|
inline |
Definition at line 304 of file loss_index.h.
| Index batch_samples_number = 0 |
Definition at line 357 of file loss_index.h.
| type error = type(0) |
Definition at line 361 of file loss_index.h.
| Tensor<type, 2> errors |
Definition at line 365 of file loss_index.h.
| Tensor<type, 1> gradient |
Definition at line 369 of file loss_index.h.
| type loss = type(0) |
Definition at line 363 of file loss_index.h.
| LossIndex* loss_index_pointer = nullptr |
Definition at line 355 of file loss_index.h.
| NeuralNetworkBackPropagation neural_network |
Definition at line 359 of file loss_index.h.
| Tensor<type, 1> parameters |
Definition at line 367 of file loss_index.h.
| Tensor<type, 1> regularization_gradient |
Definition at line 371 of file loss_index.h.