#include <loss_functions.h>
|
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 () |
|
Definition at line 13 of file loss_functions.h.
◆ ~loss_function()
virtual loss_function::~loss_function |
( |
| ) |
|
|
inlinevirtual |
◆ first_derivative()
virtual float loss_function::first_derivative |
( |
shared_data * |
, |
|
|
float |
prediction, |
|
|
float |
label |
|
) |
| |
|
pure virtual |
Implemented in poisson_loss, quantileloss, logloss, hingeloss, classic_squaredloss, and squaredloss.
Referenced by GD::compute_update(), SVRG::gradient_scalar(), learn(), predict_and_gradient(), predict_or_learn_multi(), update_after_prediction_cb(), update_after_prediction_pistol(), and update_after_prediction_proximal().
◆ getLoss()
virtual float loss_function::getLoss |
( |
shared_data * |
, |
|
|
float |
prediction, |
|
|
float |
label |
|
) |
| |
|
pure virtual |
Implemented in poisson_loss, quantileloss, logloss, hingeloss, classic_squaredloss, and squaredloss.
Referenced by bs_predict_mean(), MARGINAL::compute_expert_loss(), GD::compute_update(), get_best_constant(), MARGINAL::make_marginal(), mf_predict(), predict_or_learn(), process_example(), receive_result(), and MARGINAL::update_marginal().
◆ getRevertingWeight()
virtual float loss_function::getRevertingWeight |
( |
shared_data * |
, |
|
|
float |
prediction, |
|
|
float |
eta_t |
|
) |
| |
|
pure virtual |
◆ getSquareGrad()
virtual float loss_function::getSquareGrad |
( |
float |
prediction, |
|
|
float |
label |
|
) |
| |
|
pure virtual |
◆ getType()
virtual std::string loss_function::getType |
( |
| ) |
|
|
pure virtual |
◆ getUnsafeUpdate()
virtual float loss_function::getUnsafeUpdate |
( |
float |
prediction, |
|
|
float |
label, |
|
|
float |
eta_t |
|
) |
| |
|
pure virtual |
◆ getUpdate()
virtual float loss_function::getUpdate |
( |
float |
prediction, |
|
|
float |
label, |
|
|
float |
update_scale, |
|
|
float |
pred_per_update |
|
) |
| |
|
pure virtual |
◆ second_derivative()
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: