Commit Graph

3316 Commits

Author SHA1 Message Date
Davis King
a5d3021816 Added the mat() function. It rolls the array_to_matrix(), vector_to_matrix(),
pointer_to_column_vector(), and pointer_to_matrix() methods all into one
convenient interface.  Also made stddev() slightly more general.

This change also deprecates the previous matrix conversion functions.
2012-12-23 09:25:10 -05:00
Davis King
30097efba1 Made toMat() work with matrix object in addition to array2d style images. 2012-12-22 18:24:59 -05:00
Davis King
ea55f97ef4 Previously, if you accidentally tried to copy between any_function instances
with incompatible function signatures you got a really confusing error message
from the compiler.  This change makes it so you get a much more informative
error message.
2012-12-21 22:27:40 -05:00
Davis King
cfc6e83d01 updated docs 2012-12-21 16:51:24 -05:00
Davis King
88a4f743f5 merged 2012-12-21 16:14:24 -05:00
Davis King
1ef4260e32 Updated cmake file so it can find the new version of the Intel MKL on linux. 2012-12-21 16:13:29 -05:00
Davis King
19c02d3862 Added unit tests for svm_rank_trainer::force_last_weight_to_1() 2012-12-19 23:00:53 -05:00
Davis King
824eb4558d Fixed a bug introduced in the last commit. 2012-12-19 22:33:28 -05:00
Davis King
b427904582 Added the option to force the last weight element to be 1 to the
svm_rank_trainer.
2012-12-19 22:21:50 -05:00
Davis King
0bf8683c51 Added a pragma to avoid an inappropriate warning from visual studio 2012 2012-12-19 20:01:10 -05:00
Davis King
bd87998526 Relaxed the tests slightly to avoid false alarms in visual studio 2010 2012-12-19 19:40:42 -05:00
Davis King
ceb71d96e6 fixed grammar in a comment 2012-12-18 19:53:49 -05:00
Davis King
380a041624 set date on last release 2012-12-18 17:47:58 -05:00
Davis King
e82a93eee7 clarified spec 2012-12-17 22:42:52 -05:00
Davis King
1c1c770888 updated docs 2012-12-17 22:41:42 -05:00
Davis King
ce55c4f17e Filled out some assert error messages and the spec file. 2012-12-17 22:27:18 -05:00
Davis King
fb5ae48660 fixed some variables not being initialized. 2012-12-17 21:41:14 -05:00
Davis King
b5e46c701f Added unit tests for the new svm_c_linear_dcd_trainer object. 2012-12-17 21:37:59 -05:00
Davis King
f9805be856 Fixed a bug which triggered when the last weight was forced to 1. 2012-12-17 20:33:34 -05:00
Davis King
034eb0acc0 updated svm.h 2012-12-17 19:15:47 -05:00
Davis King
e3cd91ceee Fixed bugs in new object. 2012-12-16 23:10:00 -05:00
Davis King
a121906fd4 Made the optimizer_state serializable. 2012-12-16 23:00:56 -05:00
Davis King
52e35c31fb Made this object properly warm-startable 2012-12-16 22:56:30 -05:00
Davis King
34a9e4f671 added a method to enable or disable shrinking 2012-12-16 19:24:39 -05:00
Davis King
50fe106d28 Added initial implementation of the svm_c_linear_dcd_trainer. 2012-12-16 18:51:36 -05:00
Davis King
afdb28f073 updated comment 2012-12-16 09:06:56 -05:00
Davis King
5c9e84f896 Updated the normalized_function so that it also works with routines
expecting something that looks like a multiclass decision function.
2012-12-16 08:30:47 -05:00
Davis King
962ba9ae94 Added a discussion of the parser's set_group_name() method. 2012-12-12 21:01:05 -05:00
Davis King
251266dce8 Added a group name feature to the command line parser. Now it is possible to
make print_options() print related options so that they are grouped together.
2012-12-12 20:53:50 -05:00
Davis King
34f28d4ad6 Minor cleanup 2012-12-12 19:58:18 -05:00
Davis King
b5c189aa15 Made cmd_line_parser::print_options() print out some new lines at the
end so that the user doesn't have to print them.
2012-12-12 19:57:59 -05:00
Davis King
79656869e3 Simplified CLI code 2012-12-12 19:50:31 -05:00
Davis King
25bf3c5114 Simplified code a bit 2012-12-12 19:33:32 -05:00
Davis King
7c4cde7f0c Simplified code a little and fixed a compiler error. 2012-12-12 19:16:39 -05:00
Davis King
fb2992f7f3 Added on_view_changed() callback to zoomable_region and scrollable_region gui
widgets.
2012-12-11 23:16:17 -05:00
Davis King
d2e933e31c updated docs 2012-12-11 21:42:35 -05:00
Davis King
ae14247ea5 updated docs 2012-12-11 21:39:48 -05:00
Davis King
8a3ecdc7e4 Added the find_affine_transform() routine. 2012-12-11 21:34:13 -05:00
Davis King
9cc8e56862 fixed typo in spec 2012-12-11 21:21:54 -05:00
Davis King
0f9f0e7733 Moved the point/vector rotation/transformation code into its own file. 2012-12-11 21:18:57 -05:00
Davis King
a30fa632fa Made the functions for scaling, rotating, and generally transforming images
more general.  Previously they required the user to use the same type of image
for both input and output.  This has been relaxed so now different typed images
can be used.
2012-12-11 20:16:27 -05:00
Davis King
cbc784a72a fixed typo in a comment 2012-12-11 19:33:44 -05:00
Davis King
95d1383ddb A minor change that makes the svm_multiclass_linear_trainer a little bit
faster.
2012-12-10 23:25:17 -05:00
Davis King
0da136b0df Added an overload of draw_image() that's useful for drawing images
and doing interpolation at the same time.
2012-12-10 22:32:08 -05:00
Davis King
6643cbb8d2 fixed grammar in a comment 2012-12-09 15:22:37 -05:00
Davis King
da9fba5f3c updated a comment 2012-12-09 15:21:18 -05:00
Davis King
e2ddbde241 updated docs 2012-12-09 15:20:19 -05:00
Davis King
333db05cef Added draw_solid_convex_polygon() 2012-12-09 15:16:55 -05:00
Davis King
49ffb86036 A minor change to avoid unnecessary work when not using a cutting plane cache. 2012-12-09 14:01:17 -05:00
Davis King
81d82faca9 fixed typo 2012-12-08 16:36:39 -05:00