Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/moses-smt/vowpal_wabbit.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Langford <jl@humpty.(none)>2010-11-26 22:15:12 +0300
committerJohn Langford <jl@humpty.(none)>2010-11-26 22:15:12 +0300
commit25e4733f33451ef88d67f35e19b850806e11f34c (patch)
tree2821009cfd7524d05e55a07edcb3c3d7b11a7241 /loss_functions.h
parentf952bff8390857e0dca34b6e34ebc6e072bce925 (diff)
initial working cg
Diffstat (limited to 'loss_functions.h')
-rw-r--r--loss_functions.h2
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() {};
};