Commit Graph

1816 Commits

Author SHA1 Message Date
Davis King d751e4e49c updated docs
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%404136
2011-02-07 23:52:34 +00:00
Davis King 72fbfdb5f8 Fixed a typo in the spec.
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%404135
2011-02-07 23:32:28 +00:00
Davis King 719dadc388 Added overloads of all the GUI event handlers so that now you can
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
2011-02-07 02:36:58 +00:00
Davis King a4441c4619 Switched the event handlers in the gui_widgets from member_function_pointers
to any_functions.

--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%404133
2011-02-07 00:58:02 +00:00
Davis King e2bc112a7c Fixed a typo in the spec for the is_empty() functions. I also added an
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
2011-02-06 21:31:53 +00:00
Davis King 5d6d7f4b39 Added a factory function to easily create temporary member function pointers.
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%404131
2011-02-06 21:16:17 +00:00
Davis King 3ad1facf9e Added an any_function which supports the same functionality as std::function from the
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
2011-02-06 21:04:20 +00:00
Davis King 8837d626e1 Added tests for the new features of the distance_function object.
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%404129
2011-02-06 15:03:07 +00:00
Davis King f5801c15d6 Fixed a runtime bug in the distance_function's + and - operators which triggered when
distance_functions with no basis vectors in them were added or subtracted.

--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%404128
2011-02-06 15:02:20 +00:00
Davis King e7ac187107 Made the interface to the approximate_distance_function() a little cleaner and
improved its specification a bit.

--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%404127
2011-02-05 20:29:44 +00:00
Davis King 9e5ce96854 updated docs
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%404126
2011-02-05 19:07:42 +00:00
Davis King 82fb3682fc Refactored the code in the reduced_decision_function_trainer2. Part of it has been turned into
a global function called approximate_distance_function() which performs the main optimization.  The
reduced_decision_function_trainer2 now depends on this global function.  This changes makes this
function optimizer available for other purposes besides use in the reduced_decision_function_trainer2
object.

--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%404125
2011-02-05 18:29:57 +00:00
Davis King 543e289f72 Improved the distance_function object by turning it into a properly encapsulated class
rather than just a simple struct.  I also added overloaded +, -, *, and / operators
for this object so you can do the kind of arithmetic you would expect on an object
which represents a point in a vector space.  This breaks backwards compatibility
with the previous interface though as the member variables are now private.

--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%404124
2011-02-05 18:26:47 +00:00
Davis King f25b536996 Fixed a few more compile time errors when dlib is compiled with clang.
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%404123
2011-02-04 14:27:24 +00:00
Davis King d39c6e16e8 I made some minor changes in a few places so that dlib compiles with the
clang compiler.

--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%404122
2011-02-04 14:21:48 +00:00
Davis King 7d53ed0c23 The any unit test was broken in a way which prevented it from actually running.
This has been fixed.

--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%404121
2011-02-04 13:59:57 +00:00
Davis King c547e7bcc5 Applied a patch from Nils Labugt which fixes a bug in the gui_core component (Bug ID: 3171720).
The bug details are below:
    dlib GUI applications don't work anymore after I upgraded to Ubuntu 10.10 (AMD64). They
    consistently crash in base_window::set_title. XwcTextListToTextProperty returns
    XLocaleNotSupported instead of initializing 'property', but dlib ignores the return value,
    resulting in a crash in XLib when XSetWMName is called with garbage input or when
    property.value is XFreed without having been allocated.

--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%404120
2011-02-03 22:45:24 +00:00
Davis King 8f118e3e12 Fixed a bug in an assert
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%404119
2011-02-03 00:23:04 +00:00
Davis King 61e7e93a62 Fixed errors in the spec
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%404118
2011-01-22 22:49:08 +00:00
Davis King d311952c3c Fixed some comments.
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%404117
2011-01-22 22:45:42 +00:00
Davis King 184652c211 Updated docs
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%404116
2011-01-22 21:33:45 +00:00
Davis King 24e0df6549 Fixed the typo in the last commit which prevented compilation when ENABLE_ASSERTS
was defined.

--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%404115
2011-01-22 21:19:27 +00:00
Davis King 67f3f463cf Refactored the krr_trainer into two objects. A rr_trainer which just does
linear ridge regression and the krr_trainer which uses the empirical_kernel_map
to do non-linear ridge regression.  No changes were made to the behavior of the
krr_trainer.  This update is just to allow the use of linear ridge regression
without a superfluous empirical_kernel_map running at the beginning of the training
process.

--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%404114
2011-01-22 21:18:03 +00:00
Davis King c729e2eaa3 Adding a copy of the krr_trainer that will be just for use with linear kernels.
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%404113
2011-01-22 20:16:03 +00:00
Davis King b2013e6829 Added an overloaded operator/ to allow you to say things like 3.0/my_matrix
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%404112
2011-01-22 18:40:16 +00:00
Davis King 81d2baa24b Removed the requirement that the lisf be non-empty when used to load an
EKM.  Instead, the load() function now will accept non-empty lisf objects
and throw a non-fatal exception.  This behavior should be slightly less
surprising to users, especially since certain degenerate datasets can give
rise to empty lisf objects when you might not expect it.

--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%404111
2011-01-22 18:17:09 +00:00
Davis King 1dbf1d6260 Minor fix to avoid a compile time error when using the kernel_matrix() function.
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%404110
2011-01-22 18:13:47 +00:00
Davis King 8ba8a2f0fb Updated the image_display widget so that you can zoom in and out using the mouse wheel.
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%404109
2011-01-18 01:51:18 +00:00
Davis King 33d87fe5ec Improved a print statement.
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%404108
2011-01-13 23:20:50 +00:00
Davis King 7fb3219659 I just split the program up into a bunch of files.
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%404107
2011-01-13 23:09:51 +00:00
Davis King f2ec45946e Added the first version of a command line tool for using the machine learning
algorithms in dlib.  This first version was created by Gregory Sharp.

--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%404106
2011-01-13 22:32:43 +00:00
Davis King 187af2a7f6 Updated README to reflect the new location of the htmlify tool.
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%404105
2011-01-13 22:25:31 +00:00
Davis King 8529d70f4a Moved the htmlify tool into the tools folder.
--HG--
rename : docs/htmlify/CMakeLists.txt => tools/htmlify/CMakeLists.txt
rename : docs/htmlify/htmlify.cpp => tools/htmlify/htmlify.cpp
rename : docs/htmlify/to_xml.cpp => tools/htmlify/to_xml.cpp
rename : docs/htmlify/to_xml.h => tools/htmlify/to_xml.h
rename : docs/htmlify/to_xml_example/bigminus.gif => tools/htmlify/to_xml_example/bigminus.gif
rename : docs/htmlify/to_xml_example/bigplus.gif => tools/htmlify/to_xml_example/bigplus.gif
rename : docs/htmlify/to_xml_example/example.xml => tools/htmlify/to_xml_example/example.xml
rename : docs/htmlify/to_xml_example/minus.gif => tools/htmlify/to_xml_example/minus.gif
rename : docs/htmlify/to_xml_example/output.xml => tools/htmlify/to_xml_example/output.xml
rename : docs/htmlify/to_xml_example/plus.gif => tools/htmlify/to_xml_example/plus.gif
rename : docs/htmlify/to_xml_example/stylesheet.xsl => tools/htmlify/to_xml_example/stylesheet.xsl
rename : docs/htmlify/to_xml_example/test.cpp => tools/htmlify/to_xml_example/test.cpp
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%404104
2011-01-13 22:22:57 +00:00
Davis King 33e7e94da2 Adding a tools folder for useful applications built on dlib
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%404103
2011-01-13 22:20:29 +00:00
Davis King 684a1764d8 Made test more robust
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%404102
2011-01-04 22:10:20 +00:00
Davis King 0050924401 moved console_progress_indicator to the non-ML part of the index
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%404099
2011-01-03 23:33:03 +00:00
Davis King f2cdece78f updated docs
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%404095
2011-01-03 21:40:32 +00:00
Davis King 190527f4e6 Made a release
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%404094
2011-01-03 21:37:46 +00:00
Davis King aa73c64c04 updated docs
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%404093
2011-01-03 20:46:26 +00:00
Davis King fd4877b3cf updated docs
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%404092
2011-01-02 21:11:26 +00:00
Davis King 5f262775ab Fixed spelling
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%404091
2011-01-02 21:06:21 +00:00
Davis King 7b00cf2914 Reorganized the menu on the right side of the page.
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%404090
2011-01-02 21:03:15 +00:00
Davis King 944d752c6f clarified a comment
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%404089
2011-01-02 21:02:58 +00:00
Davis King 96fb78f3c6 Improved organization of the right menu.
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%404088
2011-01-02 15:57:02 +00:00
Davis King afd1b68176 Added wrappers for the new overloads which take std::string.
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%404087
2011-01-02 15:43:27 +00:00
Davis King b233e3eece Simplified example a little
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%404086
2011-01-01 23:13:15 +00:00
Davis King be4fe105aa Added overloads to the config_reader's methods to allow it to load directly from
a file name given as a string in addition to taking istream objects.

--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%404085
2011-01-01 23:12:51 +00:00
Davis King 7166e69bca Accidentally removed a needed #include yesterday. Just putting it back.
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%404084
2011-01-01 23:05:33 +00:00
Davis King 84db62693e Removed the ASSERT that the B matrix be symmetric since compiler optimizations
can sometimes cause B to be very slightly non-symmetric.

--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%404083
2010-12-31 22:12:54 +00:00
Davis King 578ba83d21 updated docs
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%404082
2010-12-31 21:55:03 +00:00