mirror of
https://github.com/davisking/dlib.git
synced 2024-11-01 10:14:53 +08:00
Tweaked the cutting plane cache threshold test slightly. This method
reduces the separation oracle calls by about 10%.
This commit is contained in:
parent
377f330907
commit
82188a3d7e
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user