Prior to this change, different function objects declared their return type in different ways,
now this has all been reconciled. Now they all declare it as a public typedef named result_type.
I also simplified the cross_validate_multiclass_trainer(), cross_validate_trainer(),
test_binary_decision_function(), and test_multiclass_decision_function(). They now always
return double matrices regardless of any other consideration.
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%404175
best point seen so far. This change will allow me to use the optimizer in conjunction
with methods for quickly approximating subgradients and risk values without needing
to worry about the optimizer permanently fixating on what it erroneously thinks
is the best point. Now the optimizer will just keep solving the cutting plane
subproblem and will use that solution as the current iterate and best known
solution.
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%404170
max_index_plus_one() so that it uses the same name as the essentially identical
function for working with sparse vectors.
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%404168
implementation and into the sparse_vector.h header. These are the add_to(), subtract_from(),
and max_index_plus_one() functions.
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%404167
sparse samples which were of type std::vector<std::pair<> >. Moreover, some of
the trainers have a dependency on kernel_matrix() so this fix makes those trainers
also work with this kind of sparse sample.
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%404164
of the labels output vector before adding the loaded label data.
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%404161
rather than resolving it from scratch during each iteration. This
improves the speed and stability of the algorithm.
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%404155
assignment problem (in the new max_cost_assignment() routine).
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%404149
use general functions as callbacks (via any_function). This way,
if you have a C++0x compiler, you can use lambda functions with the
event handlers.
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%404134
is_set() to the any_function so that it's interface is similar to the
member_function_pointer.
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%404132
upcoming C++0x standard. I added this so dlib can be modified to easily support lambda
functions while still being compilable on compilers which don't support the new
std::function.
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%404130
distance_functions with no basis vectors in them were added or subtracted.
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%404128