diff options
author | John Langford <jl@humpty.(none)> | 2010-11-26 22:15:12 +0300 |
---|---|---|
committer | John Langford <jl@humpty.(none)> | 2010-11-26 22:15:12 +0300 |
commit | 25e4733f33451ef88d67f35e19b850806e11f34c (patch) | |
tree | 2821009cfd7524d05e55a07edcb3c3d7b11a7241 /loss_functions.h | |
parent | f952bff8390857e0dca34b6e34ebc6e072bce925 (diff) |
initial working cg
Diffstat (limited to 'loss_functions.h')
-rw-r--r-- | loss_functions.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/loss_functions.h b/loss_functions.h index e3b29471..b6cecbfc 100644 --- a/loss_functions.h +++ b/loss_functions.h @@ -27,6 +27,8 @@ public : virtual float getUpdate(float prediction, float label, float eta_t, float norm) = 0; virtual float getRevertingWeight(float prediction, float eta_t) = 0; virtual float getSquareGrad(float prediction, float label) = 0; + virtual float first_derivative(float prediction, float label) = 0; + virtual float second_derivative(float prediction, float label) = 0; virtual ~loss_function() {}; }; |