From 82188a3d7e47bd0e716e4a532326b71ab2e8834d Mon Sep 17 00:00:00 2001 From: Davis King Date: Sun, 1 Sep 2013 21:47:28 -0400 Subject: [PATCH] Tweaked the cutting plane cache threshold test slightly. This method reduces the separation oracle calls by about 10%. --- dlib/svm/structural_svm_problem.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlib/svm/structural_svm_problem.h b/dlib/svm/structural_svm_problem.h index 5d6d403cb..115c2fff1 100644 --- a/dlib/svm/structural_svm_problem.h +++ b/dlib/svm/structural_svm_problem.h @@ -103,7 +103,7 @@ namespace dlib // a proxy for the true separation oracle. If the risk value has dropped // by enough to get into the stopping condition then the best psi isn't // good enough. - if (best_risk + saved_current_risk_gap-prob->get_epsilon() > last_true_risk_computed) + if (best_risk + saved_current_risk_gap > last_true_risk_computed) { out_psi = psi[best_idx]; lru_count[best_idx] = max_lru_count + 1;