From 42c123f29882a4e7480bca028886dbdf21d3556a Mon Sep 17 00:00:00 2001 From: Davis King Date: Sun, 6 May 2012 11:59:18 -0400 Subject: [PATCH] Fixed minor bug in the set_loss_on_negative_class() function. --- dlib/svm/structural_svm_graph_labeling_problem.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlib/svm/structural_svm_graph_labeling_problem.h b/dlib/svm/structural_svm_graph_labeling_problem.h index 79b490e97..9c0cf4c8a 100644 --- a/dlib/svm/structural_svm_graph_labeling_problem.h +++ b/dlib/svm/structural_svm_graph_labeling_problem.h @@ -199,7 +199,7 @@ namespace dlib << "\n\t loss: " << loss << "\n\t this: " << this ); - loss_pos = loss; + loss_neg = loss; } double get_loss_on_negative_class (