Vowpal Wabbit
Loading...
Searching...
No Matches
Public Member Functions | List of all members
VW::loss_function Class Referenceabstract

#include <loss_functions.h>

Public Member Functions

virtual std::string get_type () const =0
 
virtual float get_parameter () const
 
virtual float get_loss (const shared_data *, float prediction, float label) const =0
 
virtual float get_update (float prediction, float label, float update_scale, float pred_per_update) const =0
 
virtual float get_unsafe_update (float prediction, float label, float update_scale) const =0
 
virtual float get_square_grad (float prediction, float label) const =0
 
virtual float first_derivative (const shared_data *, float prediction, float label) const =0
 
virtual float second_derivative (const shared_data *, float prediction, float label) const =0
 
virtual ~loss_function ()=default
 

Constructor & Destructor Documentation

◆ ~loss_function()

virtual VW::loss_function::~loss_function ( )
virtualdefault

Member Function Documentation

◆ first_derivative()

virtual float VW::loss_function::first_derivative ( const shared_data ,
float  prediction,
float  label 
) const
pure virtual

◆ get_loss()

virtual float VW::loss_function::get_loss ( const shared_data ,
float  prediction,
float  label 
) const
pure virtual

◆ get_parameter()

virtual float VW::loss_function::get_parameter ( ) const
inlinevirtual

◆ get_square_grad()

virtual float VW::loss_function::get_square_grad ( float  prediction,
float  label 
) const
pure virtual

◆ get_type()

virtual std::string VW::loss_function::get_type ( ) const
pure virtual

◆ get_unsafe_update()

virtual float VW::loss_function::get_unsafe_update ( float  prediction,
float  label,
float  update_scale 
) const
pure virtual

◆ get_update()

virtual float VW::loss_function::get_update ( float  prediction,
float  label,
float  update_scale,
float  pred_per_update 
) const
pure virtual

◆ second_derivative()

virtual float VW::loss_function::second_derivative ( const shared_data ,
float  prediction,
float  label 
) const
pure virtual

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