Loading...
Searching...
No Matches
Public Member Functions | List of all members
loss< LOSSFUNCTION > Class Template Reference

LOSS implementation of a loss function. More...

#include <loss.h>

Inherits loss_base< get_config< LOSSFUNCTION > >, and LOSSFUNCTION.

Public Member Functions

 BBM_IMPORT_CONFIG (LOSSFUNCTION)
 
 loss (const LOSSFUNCTION &lossfunc)
 Construct directly from a LOSSFUNCTION.
 
virtual void update (void) override final
 Virtual passthrough of the update method.
 
virtual Value operator() (Mask mask=true) const override final
 Virtual passthrough of the loss computation.
 
- Public Member Functions inherited from loss_base< get_config< LOSSFUNCTION > >
 BBM_IMPORT_CONFIG (get_config< LOSSFUNCTION >)
 
virtual ~loss_base (void)
 empty virtual base destructor
 
virtual void update (void)=0
 update
 
virtual Value operator() (Mask mask=true) const=0
 operator(): compute the loss
 

Detailed Description

template<typename LOSSFUNCTION>
requires concepts::lossfunction<LOSSFUNCTION>
class bbm::loss< LOSSFUNCTION >

LOSS implementation of a loss function.

Template Parameters
LOSSFUNCTION= the loss function to transfer into a LOSS

Constructor & Destructor Documentation

◆ loss()

loss ( const LOSSFUNCTION &  lossfunc)
inline

Construct directly from a LOSSFUNCTION.

Member Function Documentation

◆ BBM_IMPORT_CONFIG()

BBM_IMPORT_CONFIG ( LOSSFUNCTION  )

◆ operator()()

virtual Value operator() ( Mask  mask = true) const
inlinefinaloverridevirtual

Virtual passthrough of the loss computation.

Implements loss_base< get_config< LOSSFUNCTION > >.

◆ update()

virtual void update ( void  )
inlinefinaloverridevirtual

Virtual passthrough of the update method.

Implements loss_base< get_config< LOSSFUNCTION > >.


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