Vowpal Wabbit
Public Member Functions | List of all members
loss_function Class Referenceabstract

#include <loss_functions.h>

Public Member Functions

virtual std::string getType ()=0
 
virtual float getLoss (shared_data *, float prediction, float label)=0
 
virtual float getUpdate (float prediction, float label, float update_scale, float pred_per_update)=0
 
virtual float getUnsafeUpdate (float prediction, float label, float eta_t)=0
 
virtual float getRevertingWeight (shared_data *, float prediction, float eta_t)=0
 
virtual float getSquareGrad (float prediction, float label)=0
 
virtual float first_derivative (shared_data *, float prediction, float label)=0
 
virtual float second_derivative (shared_data *, float prediction, float label)=0
 
virtual ~loss_function ()=default
 

Constructor & Destructor Documentation

virtual loss_function::~loss_function ( )
virtualdefault

Member Function Documentation

virtual float loss_function::first_derivative ( shared_data ,
float  prediction,
float  label 
)
pure virtual
virtual float loss_function::getLoss ( shared_data ,
float  prediction,
float  label 
)
pure virtual
virtual float loss_function::getRevertingWeight ( shared_data ,
float  prediction,
float  eta_t 
)
pure virtual
virtual float loss_function::getSquareGrad ( float  prediction,
float  label 
)
pure virtual
virtual std::string loss_function::getType ( )
pure virtual
virtual float loss_function::getUnsafeUpdate ( float  prediction,
float  label,
float  eta_t 
)
pure virtual
virtual float loss_function::getUpdate ( float  prediction,
float  label,
float  update_scale,
float  pred_per_update 
)
pure virtual
virtual float loss_function::second_derivative ( shared_data ,
float  prediction,
float  label 
)
pure virtual

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