All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
LossItf Class Referenceabstract

#include <nnet-loss.h>

Inheritance diagram for LossItf:

Public Member Functions

 LossItf ()
 
virtual ~LossItf ()
 
virtual void Eval (const VectorBase< BaseFloat > &frame_weights, const CuMatrixBase< BaseFloat > &net_out, const CuMatrixBase< BaseFloat > &target, CuMatrix< BaseFloat > *diff)=0
 Evaluate cross entropy using target-matrix (supports soft labels),. More...
 
virtual void Eval (const VectorBase< BaseFloat > &frame_weights, const CuMatrixBase< BaseFloat > &net_out, const Posterior &target, CuMatrix< BaseFloat > *diff)=0
 Evaluate cross entropy using target-posteriors (supports soft labels),. More...
 
virtual std::string Report ()=0
 Generate string with error report,. More...
 
virtual BaseFloat AvgLoss ()=0
 Get loss value (frame average),. More...
 

Detailed Description

Definition at line 37 of file nnet-loss.h.

Constructor & Destructor Documentation

LossItf ( )
inline

Definition at line 39 of file nnet-loss.h.

39 { }
virtual ~LossItf ( )
inlinevirtual

Definition at line 40 of file nnet-loss.h.

40 { }

Member Function Documentation

virtual BaseFloat AvgLoss ( )
pure virtual

Get loss value (frame average),.

Implemented in MultiTaskLoss, Mse, and Xent.

virtual void Eval ( const VectorBase< BaseFloat > &  frame_weights,
const CuMatrixBase< BaseFloat > &  net_out,
const CuMatrixBase< BaseFloat > &  target,
CuMatrix< BaseFloat > *  diff 
)
pure virtual

Evaluate cross entropy using target-matrix (supports soft labels),.

Implemented in MultiTaskLoss, Mse, and Xent.

virtual void Eval ( const VectorBase< BaseFloat > &  frame_weights,
const CuMatrixBase< BaseFloat > &  net_out,
const Posterior target,
CuMatrix< BaseFloat > *  diff 
)
pure virtual

Evaluate cross entropy using target-posteriors (supports soft labels),.

Implemented in MultiTaskLoss, Mse, and Xent.

virtual std::string Report ( )
pure virtual

Generate string with error report,.

Implemented in MultiTaskLoss, Mse, and Xent.


The documentation for this class was generated from the following file: