Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dlib
Commits
49ffb860
Commit
49ffb860
authored
Dec 09, 2012
by
Davis King
Browse files
A minor change to avoid unnecessary work when not using a cutting plane cache.
parent
81d82fac
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
dlib/svm/structural_svm_problem.h
dlib/svm/structural_svm_problem.h
+1
-1
No files found.
dlib/svm/structural_svm_problem.h
View file @
49ffb860
...
...
@@ -295,7 +295,7 @@ namespace dlib
if
(
current_risk_gap
<
eps
)
should_stop
=
true
;
if
(
should_stop
&&
!
skip_cache
)
if
(
should_stop
&&
!
skip_cache
&&
max_cache_size
!=
0
)
{
// Instead of stopping we shouldn't use the cache on the next iteration. This way
// we can be sure to have the best solution rather than assuming the cache is up-to-date
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment