LossIndexBackPropagation Struct Reference

#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

LossIndexloss_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
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ LossIndexBackPropagation() [1/2]

LossIndexBackPropagation ( )
inlineexplicit

Default constructor.

Definition at line 293 of file loss_index.h.

◆ LossIndexBackPropagation() [2/2]

LossIndexBackPropagation ( const Index &  new_batch_samples_number,
LossIndex new_loss_index_pointer 
)
inlineexplicit

Definition at line 295 of file loss_index.h.

◆ ~LossIndexBackPropagation()

Destructor.

Definition at line 1011 of file loss_index.cpp.

Member Function Documentation

◆ print()

void print ( ) const
inline

Definition at line 336 of file loss_index.h.

◆ set()

void set ( const Index &  new_batch_samples_number,
LossIndex new_loss_index_pointer 
)
inline

Definition at line 304 of file loss_index.h.

Member Data Documentation

◆ batch_samples_number

Index batch_samples_number = 0

Definition at line 357 of file loss_index.h.

◆ error

type error = type(0)

Definition at line 361 of file loss_index.h.

◆ errors

Tensor<type, 2> errors

Definition at line 365 of file loss_index.h.

◆ gradient

Tensor<type, 1> gradient

Definition at line 369 of file loss_index.h.

◆ loss

type loss = type(0)

Definition at line 363 of file loss_index.h.

◆ loss_index_pointer

LossIndex* loss_index_pointer = nullptr

Definition at line 355 of file loss_index.h.

◆ neural_network

Definition at line 359 of file loss_index.h.

◆ parameters

Tensor<type, 1> parameters

Definition at line 367 of file loss_index.h.

◆ regularization_gradient

Tensor<type, 1> regularization_gradient

Definition at line 371 of file loss_index.h.


The documentation for this struct was generated from the following files: