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
192b75a7
Commit
192b75a7
authored
Sep 06, 2016
by
Davis King
Browse files
Added a check for non-finite values to the trust region solver.
parent
4a408d5e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
dlib/optimization/optimization_trust_region.h
dlib/optimization/optimization_trust_region.h
+2
-0
No files found.
dlib/optimization/optimization_trust_region.h
View file @
192b75a7
...
...
@@ -294,6 +294,8 @@ namespace dlib
const
type
rho
=
measured_improvement
/
std
::
abs
(
predicted_improvement
);
if
(
!
is_finite
(
rho
))
break
;
if
(
rho
<
0.25
)
{
...
...
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