Commit Graph

2122 Commits

Author SHA1 Message Date
Davis King
ae4c1bef39 Improved the feature vector caching in the structural_svm_problem object.
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%404246
2011-05-04 02:19:23 +00:00
Davis King
50832ee5a1 Changed the oca_problem interface to the oca optimizer. Now the optimization_status()
function reports back the current risk and risk gap in addition to just the overall
objective value and objective gap.  Note that this change breaks backwards compatibility
with the previous interface (but only slightly).

--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%404245
2011-05-03 23:39:47 +00:00
Davis King
a56bab4662 Made assign_image() and assign_image_scaled() a little more general. Now
they can use source images which are matrices in addition to array2d objects.
This change also enables the image_window to display matrices.

--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%404244
2011-05-01 17:02:50 +00:00
Davis King
9f17b8cb83 fixed htmlhelp setup file to work with newer wine versions
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%404243
2011-05-01 12:30:11 +00:00
Davis King
ccd56ba118 Added missing #includes
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%404242
2011-04-29 20:43:27 +00:00
Davis King
cc0956cd15 Added a unit test for the pyramid_down object.
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%404241
2011-04-29 20:32:27 +00:00
Davis King
18ec043d78 Upgraded the pyramid_down function object so it can create color
pyramids.  Not just grayscale ones.

--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%404240
2011-04-29 19:05:07 +00:00
Davis King
a6e0ceea5b Added some functions which define the coordinate transforms
between different layers in an image pyramid.

--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%404239
2011-04-29 18:09:06 +00:00
Davis King
22dbf3d0d5 A minor change to avoid getting a compiler error about functions
being ambiguous when the rectangle is used with floating point
vectors.

--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%404238
2011-04-29 18:08:18 +00:00
Davis King
09729e950f Added a missing const keyword.
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%404237
2011-04-29 13:31:42 +00:00
Davis King
b7594d82e7 Added some comments to clarify what exactly is a valid loss function.
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%404236
2011-04-29 13:29:46 +00:00
Davis King
4bc0186443 The deserialize() for std::string was written under the assumption that std::string
doesn't store it's data in a contiguous block.  However, that isn't quite the case.
See this discussion:
http://stackoverflow.com/questions/1986966/does-s0-point-to-contiguous-characters-in-a-stdstring

Anyway, I changed deserialize() for std::string to be more efficient and read
directly into the string rather than into a contiguous buffer and then do a copy.

--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%404235
2011-04-29 13:25:20 +00:00
Davis King
6de8dca1af A minor usability improvement, I defaulted the feature_vector_type_
to matrix_type.

--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%404234
2011-04-29 13:05:50 +00:00
Davis King
1a28b58705 Cleaned up tests and added some additional ones.
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%404233
2011-04-23 13:49:33 +00:00
Davis King
1faf23e874 A minor optimization.
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%404232
2011-04-23 13:48:53 +00:00
Davis King
b4fbf7578b updated docs
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%404231
2011-04-22 22:38:11 +00:00
Davis King
7c31956436 Fixed grammar.
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%404230
2011-04-22 22:37:50 +00:00
Davis King
e1e17c258c Added the max_sum_submatrix() function.
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%404229
2011-04-22 22:31:11 +00:00
Davis King
11c7573973 updated docs
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%404228
2011-04-18 18:50:20 +00:00
Davis King
75d89e258b Updated example to not use ::kernel_1a syntax.
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%404227
2011-04-18 18:49:57 +00:00
Davis King
09701e5378 Changed the config_reader object so you don't have to say config_reader::kernel_1a
anymore to declare it.  Now you just say config_reader.

--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%404226
2011-04-18 18:48:20 +00:00
Davis King
694f73efa6 updated docs
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%404225
2011-04-18 18:24:12 +00:00
Davis King
d57e10098e updated example to not use ::kernel_1a syntax.
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%404224
2011-04-18 18:23:04 +00:00
Davis King
35f117702b Changed the base64 object so you don't have to say base64::kernel_1a anymore to
declare it.  Now you just say base64.

--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%404223
2011-04-18 18:22:33 +00:00
Davis King
89f51930c3 updated docs
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%404222
2011-04-18 15:03:24 +00:00
Davis King
3a8e81dda5 You can now declare byte_orderer by saying just byte_orderer rather than
byte_orderer::kernel_1a.

--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%404221
2011-04-18 15:02:29 +00:00
Davis King
a08996158d Added a unit test for the byte orderer component
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%404220
2011-04-18 14:58:27 +00:00
Davis King
55784ffee6 Simplified pipe examples by removing the ::kernel_1a stuff now that it is
no longer required.

--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%404219
2011-04-18 14:38:10 +00:00
Davis King
4d119367ef updated docs
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%404218
2011-04-18 13:59:46 +00:00
Davis King
cffce9b025 Changed the pipe so you don't have to say pipe<type>::kernel_1a anymore. Now you
just say pipe<type>.

--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%404217
2011-04-18 13:59:27 +00:00
Davis King
c57c860a2b updated the docs
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%404216
2011-04-18 13:50:17 +00:00
Davis King
6bbfc7e809 Changed the crc32 object so you don't have to say crc32::kernel_1a anymore to
declare it.  You just say crc32.  I also added some unit tests for it as well
as a few minor convenience functions.

--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%404215
2011-04-18 13:47:43 +00:00
Davis King
9301387000 Made it so you can reset a console_progress_indicator and use
it more than once.

--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%404214
2011-04-17 21:50:56 +00:00
Davis King
d4d090f1cf The last commit left something in checking (i.e. _c mode).
Just switching it back to non-checking mode.

--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%404213
2011-04-09 01:21:10 +00:00
Davis King
4af255e286 Added a missing requires clause to the get_sum_of_area() function
in the integral_image.  I also made the integral_image work
with signed pixel types.

--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%404212
2011-04-08 01:11:31 +00:00
Davis King
7745c5f978 Modified the probabilistic() trainer adapter (and the train_probabilistic_decision_function() routine)
so that they work with objects which have an interface compatible with std::vector rather than strictly
just std::vector objects.  For example, random_subset_selector objects can be used (as was the case in
some previous versions of dlib).

--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%404211
2011-04-07 00:37:55 +00:00
Davis King
eba0c564d5 Added a value_type to the random_subset_selector so that it is more compatible
with the std::vector interface.

--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%404210
2011-04-07 00:35:22 +00:00
Davis King
973e8b4d61 updated docs
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%404207
2011-03-24 23:56:02 +00:00
Davis King
ea5c57a2a0 made a release
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%404205
2011-03-24 23:48:47 +00:00
Davis King
2a16d0c811 Fixed a compile time error that happens on debian's gcc 4.1.2
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%404204
2011-03-24 23:42:41 +00:00
Davis King
6bc4066acf updated docs
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%404203
2011-03-24 23:23:01 +00:00
Davis King
7e9d7f0705 added to svn:ignore list
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%404202
2011-03-24 23:15:59 +00:00
Davis King
e89d424e5e fixed grammar
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%404201
2011-03-24 22:20:43 +00:00
Davis King
4162c18f69 minor change to avoid compiler warning in visual studio.
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%404200
2011-03-24 02:55:06 +00:00
Davis King
f6ddef170e updated docs
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%404199
2011-03-24 02:44:44 +00:00
Davis King
e11cf36f63 Added a unit test for the new svm_multiclass_linear_trainer.
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%404198
2011-03-24 02:34:54 +00:00
Davis King
2b4b5e547e Filled out spec and cleaned up code.
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%404197
2011-03-24 02:23:59 +00:00
Davis King
0cd9fbd92a Added some missing DLIB_ASSERT statements.
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%404196
2011-03-24 02:08:31 +00:00
Davis King
640acab208 Moved the new multiclass svm trainer into dlib. Still need to clean up the code
and setup the abstract file.

--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%404195
2011-03-24 01:52:44 +00:00
Davis King
7cf342f994 Fixed compile time error
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%404194
2011-03-24 01:51:56 +00:00