Commit 571aff20 authored by Davis King's avatar Davis King

Added some comments to the spec.

--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%403918
parent ab0b14ad
...@@ -169,6 +169,12 @@ namespace dlib ...@@ -169,6 +169,12 @@ namespace dlib
first calling f() and then calling der(). That is, these two functions first calling f() and then calling der(). That is, these two functions
are always called in pairs with f() being called first and then der() are always called in pairs with f() being called first and then der()
being called second. being called second.
- Note that this function solves the maximization problem by converting it
into a minimization problem. Therefore, the values of f and its derivative
reported to the stopping strategy will be negated. That is, stop_strategy
will see -f() and -der(). All this really means is that the status messages
from a stopping strategy in verbose mode will display a negated objective
value.
!*/ !*/
// ---------------------------------------------------------------------------------------- // ----------------------------------------------------------------------------------------
...@@ -241,6 +247,12 @@ namespace dlib ...@@ -241,6 +247,12 @@ namespace dlib
- returns f(#x). - returns f(#x).
- Uses the dlib::derivative(f,derivative_eps) function to compute gradient - Uses the dlib::derivative(f,derivative_eps) function to compute gradient
information. information.
- Note that this function solves the maximization problem by converting it
into a minimization problem. Therefore, the values of f and its derivative
reported to the stopping strategy will be negated. That is, stop_strategy
will see -f() and -der(). All this really means is that the status messages
from a stopping strategy in verbose mode will display a negated objective
value.
!*/ !*/
// ---------------------------------------------------------------------------------------- // ----------------------------------------------------------------------------------------
......
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