Davis King
e2fa9f3248
Added serialization support for std::pair objects.
...
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%404029
2010-12-24 23:51:44 +00:00
Davis King
b994798e30
Modified the type_safe_union so that you can call apply_to_contents() on const
...
type_safe_unions.
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%404028
2010-12-24 16:17:14 +00:00
Davis King
5222b16815
Added unit tests for the svr_trainer and svm_one_class_trainer.
...
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%404027
2010-12-23 23:43:36 +00:00
Davis King
525f3a8b31
updated docs
...
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%404026
2010-12-23 23:11:34 +00:00
Davis King
75f0d1acba
Added an epsilon-insensitive support vector regression class.
...
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%404025
2010-12-23 22:56:15 +00:00
Davis King
f710b18b46
Clarified spec
...
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%404024
2010-12-23 22:55:45 +00:00
Davis King
6ad915f5fc
updated docs
...
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%404023
2010-12-23 21:06:52 +00:00
Davis King
2ae7bd31f1
Simplified requires clause of train() function.
...
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%404022
2010-12-23 20:58:22 +00:00
Davis King
35fb8d4d03
Added the is_learning_problem() predicate and used it to make a few
...
requires clauses more straight forward.
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%404021
2010-12-23 20:57:49 +00:00
Davis King
cdd8218b8e
made spec clearer
...
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%404020
2010-12-23 04:27:15 +00:00
Davis King
3951ae445b
Added a missing #include
...
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%404019
2010-12-23 00:12:28 +00:00
Davis King
0561d607b6
updated docs
...
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%404018
2010-12-23 00:02:37 +00:00
Davis King
32142deaaa
fixed grammar
...
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%404017
2010-12-23 00:02:14 +00:00
Davis King
aaf653fa90
Added another citation
...
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%404016
2010-12-23 00:00:31 +00:00
Davis King
160293f902
moved calculate_rho_and_b back into the svm_nu_trainer
...
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%404015
2010-12-22 23:12:06 +00:00
Davis King
2932d6d3f4
Fixed a minor bug and did some cleanup
...
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%404014
2010-12-22 23:06:55 +00:00
Davis King
00325e7521
Added the svm_one_class_trainer object.
...
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%404013
2010-12-22 22:39:42 +00:00
Davis King
2d113cd000
Made alpha initialization a little more robust.
...
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%404012
2010-12-22 22:18:54 +00:00
Davis King
58ee5c6696
Changed this example so it recommends using stream.peek()!=EOF instead of stream.good()
...
to detect the end of the stream.
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%404011
2010-12-22 20:41:59 +00:00
Davis King
706b343d5a
Changed the example program to suggest a logarithmic grid search
...
rather than one that takes linear steps.
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%404010
2010-12-22 20:37:31 +00:00
Davis King
58862bb201
Removed a bit of code that didn't actually do anything.
...
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%404009
2010-12-22 20:31:38 +00:00
Davis King
8af047bf52
Fixed typo in comment
...
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%404008
2010-12-22 19:42:23 +00:00
Davis King
9464765121
updated docs
...
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%404007
2010-12-22 19:24:30 +00:00
Davis King
9711283f62
Added missing #include
...
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%404006
2010-12-22 18:54:16 +00:00
Davis King
8515da8ccf
Added some tests for the svm_c_trainer
...
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%404005
2010-12-22 18:45:52 +00:00
Davis King
9c02764ad1
Added the svm_c_trainer. It uses the solve_qp3_using_smo optimizer I just added.
...
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%404004
2010-12-22 18:29:34 +00:00
Davis King
2b9c85ee83
Moved calculate_rho_and_b() into it's own file since it will be used
...
by other tools. I also clarified the spec slightly.
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%404003
2010-12-22 18:25:50 +00:00
Davis King
b43813a252
Added another version of the quadratic solver. It's basically a copy
...
of solve_qp2_using_smo but this one solves the problem associated with
C-SVMs and a few other things.
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%404002
2010-12-22 18:24:41 +00:00
Davis King
d7e6108016
Made the solver return the number of iterations performed.
...
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%404001
2010-12-22 18:05:22 +00:00
Davis King
25720eaf6b
fixed minor bug in unit tests
...
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%404000
2010-12-22 00:26:50 +00:00
Davis King
18af6d4c8f
updated docs
...
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%403999
2010-12-22 00:25:53 +00:00
Davis King
10361a726c
Clarified spec
...
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%403998
2010-12-22 00:25:19 +00:00
Davis King
f96636a4b5
A minor change to avoid a compiler warning from gcc.
...
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%403997
2010-12-21 22:59:21 +00:00
Davis King
0cedd0737e
updated docs
...
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%403996
2010-12-21 22:39:40 +00:00
Davis King
7574804bf6
Clarified some comments
...
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%403995
2010-12-21 22:39:28 +00:00
Davis King
b7a02418cb
Refactored the svm_nu_trainer. Specifically, I pulled the quadratic
...
solver out and made it a separate class. The kernel_matrix_cache has also
been removed in favor of the new symmetric_matrix_cache. Finally, the
remaining bits of the svm_nu_trainer have been moved into svm_nu_trainer.h
Also note that invalid_svm_nu_error has been renamed to invalid_nu_error.
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%403994
2010-12-21 22:21:57 +00:00
Davis King
dbba600f30
updated spec
...
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%403993
2010-12-21 20:53:23 +00:00
Davis King
3aab58b218
Updated docs
...
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%403992
2010-12-21 19:11:25 +00:00
Davis King
33cc9887bb
updated docs
...
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%403991
2010-12-21 19:05:40 +00:00
Davis King
3d98ee53af
Updated the docs to stop saying I'm supporting some really old compilers. So no
...
more gcc 3.3 or visual studio 2003.
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%403990
2010-12-21 19:05:24 +00:00
Davis King
02be93404e
removed some cruft
...
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%403989
2010-12-21 18:26:56 +00:00
Davis King
f3184b9b88
More code cleanup and spec refinement. I also added a unit test for the symmetric_matrix_cache.
...
Finally, I put the new structs for determining the return types from colm/rowm/diag
into the proper places.
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%403988
2010-12-21 18:22:43 +00:00
Davis King
7105198565
code cleanup
...
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%403987
2010-12-21 17:55:53 +00:00
Davis King
73c7a654e2
Added rough version of the new symmetric_matrix_cache() function.
...
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%403986
2010-12-21 16:51:22 +00:00
Davis King
7b6575b0bd
Changed the kernel_matrix() function a little so it is easier for compilers to optimize.
...
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%403985
2010-12-21 00:54:36 +00:00
Davis King
bbc2486eab
Removed a pair of unused variables.
...
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%403984
2010-12-18 20:28:40 +00:00
Davis King
28633602fa
Changed the check for the radius being zero a little more robust against
...
floating point weirdness.
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%403983
2010-12-15 00:52:44 +00:00
Davis King
d89dbfa333
Minor change to avoid a compiler warning in gcc
...
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%403982
2010-12-15 00:51:53 +00:00
Davis King
c560f60479
made tests a little more robust
...
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%403981
2010-12-15 00:50:42 +00:00
Davis King
c210988305
Made the requirement that the two images be different objects
...
a little more clear.
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%403980
2010-12-14 01:38:04 +00:00