EmptyLoss< InputDataType, OutputDataType > Class Template Reference

The empty loss does nothing, letting the user calculate the loss outside the model. More...

Public Member Functions

 EmptyLoss ()
 Create the EmptyLoss object. More...

 
template
void Backward (const InputType &input, const TargetType &target, OutputType &output)
 Ordinary feed backward pass of a neural network. More...

 
template
double Forward (const InputType &input, const TargetType &target)
 Computes the Empty loss function. More...

 

Detailed Description


template
class mlpack::ann::EmptyLoss< InputDataType, OutputDataType >

The empty loss does nothing, letting the user calculate the loss outside the model.

Template Parameters
InputDataTypeType of the input data (arma::colvec, arma::mat, arma::sp_mat or arma::cube).
OutputDataTypeType of the output data (arma::colvec, arma::mat, arma::sp_mat or arma::cube).

Definition at line 35 of file empty_loss.hpp.

Constructor & Destructor Documentation

◆ EmptyLoss()

EmptyLoss ( )

Create the EmptyLoss object.

Member Function Documentation

◆ Backward()

void Backward ( const InputType &  input,
const TargetType &  target,
OutputType &  output 
)

Ordinary feed backward pass of a neural network.

Parameters
inputThe propagated input activation.
targetThe target vector.
outputThe calculated error.

◆ Forward()

double Forward ( const InputType &  input,
const TargetType &  target 
)

Computes the Empty loss function.

Parameters
inputInput data used for evaluating the specified function.
targetThe target vector.

The documentation for this class was generated from the following file:
  • /home/jenkins-mlpack/mlpack.org/_src/mlpack-3.4.2/src/mlpack/methods/ann/loss_functions/empty_loss.hpp