Commit 82188a3d authored by Davis King's avatar Davis King

Tweaked the cutting plane cache threshold test slightly. This method

reduces the separation oracle calls by about 10%.
parent 377f3309
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment