"...api/git@developer.sourcefind.cn:renzhc/diffusers_dcu.git" did not exist on "7684518377180879a6e45611820e92c9dec7d4b6"
Commit 82188a3d authored by Davis King's avatar Davis King
Browse files

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 ...@@ -103,7 +103,7 @@ namespace dlib
// a proxy for the true separation oracle. If the risk value has dropped // 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 // by enough to get into the stopping condition then the best psi isn't
// good enough. // 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]; out_psi = psi[best_idx];
lru_count[best_idx] = max_lru_count + 1; 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