Commit Graph

6961 Commits

Author SHA1 Message Date
Davis King 1aa6667481 Switched this example to use the svm C instead of nu trainer. 2017-11-25 08:26:16 -05:00
Davis King 0e7e433096 Minor changes to avoid compiler warnings. 2017-11-25 08:07:36 -05:00
Davis King f3ecb81f5e Changed default solver epsilon so that it will solve to full floating point
precision by default.  If the user is OK with less precision they can change
it.
2017-11-25 08:00:08 -05:00
Davis King 2ad9cd7843 Fixing code for visual studio 2017-11-25 07:42:48 -05:00
Davis King 04991b7da6 Made this example program use the new find_max_global() instead of grid search
and BOBYQA.  This greatly simplifies the example.
2017-11-24 22:04:25 -05:00
Davis King fc6cce9f89 Made find_max_global() automatically apply a log-scale transform to variables
that obviously need it.
2017-11-24 21:44:09 -05:00
Davis King 99621934ff Added more docs 2017-11-24 17:22:37 -05:00
Davis King 1fbd1828ab Cleaned up the code a bit. 2017-11-24 09:56:26 -05:00
Davis King 0d9043bc09 Renamed find_global_maximum() to find_max_global() 2017-11-23 11:43:32 -05:00
Davis King 31875cfd45 More cleanup and added more tests 2017-11-23 11:30:01 -05:00
Davis King a6fd69298a Fixed spec 2017-11-23 10:57:00 -05:00
Davis King ec7a4af1d5 A bit of cleanup and documentation 2017-11-23 10:03:11 -05:00
Davis King e7e5d23802 Fixed and clarified spec 2017-11-23 07:59:10 -05:00
Davis King 66a5a9c407 merged 2017-11-22 13:13:57 -05:00
Davis King 9a8f312127 Made the loss dumping between learning rate changes a little more relaxed. In
particular, rather than just dumping exactly 400 of the last loss values, it
now dumps 400 + 10% of the loss buffer.  This way, the amount of the dump is
proportional to the steps without progress threshold.  This is better because
when the user sets the steps without progress to something larger it probably
means you need to look at more loss values to determine that we should stop,
so dumping more in that case ought to be better.
2017-11-22 13:06:19 -05:00
hannometer 2f531f1175 imglab: select next/previous image with 's' and 'w' (#964)
* imglab: select next/previous image with 's' and 'w'

* imglab: make 'w' and 's' keys behave like UP and DOWN keys; add 'about' text
2017-11-22 05:42:15 -05:00
Davis King 2b8becae97 Added global_function_search unit test 2017-11-20 21:36:04 -05:00
Davis King c91a047327 more cleanup 2017-11-20 21:13:49 -05:00
Davis King 1eee5ccdc0 Cleanup 2017-11-20 19:55:07 -05:00
Davis King f924b44831 updated docs 2017-11-20 19:37:50 -05:00
Davis King af99cde18a Cleaned up the compile_time_integer_list and make_compile_time_integer_range
types and put them into their own file.
2017-11-20 19:31:20 -05:00
Davis King 4d5c77cacb merged 2017-11-20 18:48:45 -05:00
Davis King 29b5b286d7 Changed python build script to append rather than overwrite CMAKE_PREFIX_PATH. 2017-11-20 18:48:14 -05:00
Kino 3d62b85c50 generic image all the way - colormaps.h (#971)
Still hunting down pre-generic_image implementations
2017-11-20 07:52:24 -05:00
Davis E. King 9b51351bbf
Update ISSUE_TEMPLATE.md 2017-11-20 05:40:24 -05:00
Davis King a930fe8096 merged 2017-11-19 13:15:15 -05:00
Juha Reunanen c0b7bf9e6c Problem: log loss may become infinite, if g[idx] goes zero (#938)
* Problem: log loss may become infinite, if g[idx] goes zero
Solution: limit the input of the log function to 1e-6 (or more)

* Parameterize the safe_log epsilon limit, and make the default value 1e-10
2017-11-19 10:53:50 -05:00
Davis King 5d259cd7c1 merged 2017-11-18 21:42:12 -05:00
Davis King 532e2a3e61 Made the global_function_search object use the faster incremental
upper_bound_function::add().  Also fixed some issues in the solver.
2017-11-18 21:40:44 -05:00
Davis E. King 24c0628532
Update ISSUE_TEMPLATE.md 2017-11-18 20:29:29 -05:00
Davis E. King 02e989d8f7
Update ISSUE_TEMPLATE.md 2017-11-18 20:28:10 -05:00
Davis King f9f69185af Testing to see if github updates 2017-11-18 20:27:27 -05:00
Davis E. King a6f9bd620b
Update ISSUE_TEMPLATE.md 2017-11-18 20:25:08 -05:00
Davis E. King c8c138c11c
Update ISSUE_TEMPLATE.md 2017-11-18 20:22:38 -05:00
Davis E. King b93070826b
Update ISSUE_TEMPLATE.md 2017-11-18 20:22:02 -05:00
Davis E. King c4a172fb75
Create ISSUE_TEMPLATE.md 2017-11-18 20:21:18 -05:00
Davis King 5529ddfb82 Added a .add() to upper_bound_function so that the upper bound can be quickly
updated without needing to resolve the whole QP.
2017-11-17 21:42:29 -05:00
Davis King 7e39a52758 merged 2017-11-17 20:56:51 -05:00
Davis King f1fe908a9d Added loss_dot layer 2017-11-17 19:07:41 -05:00
Davis King a02208018b Upgraded the con_ layer so that you can set the nr or nc to 0 in the layer
specification and this means "make the filter cover the whole input image
dimension".  So it's just an easy way to make a filter sized exactly so that it
will have one output along that dimension.
2017-11-17 16:55:24 -05:00
Davis King 692ddb8c18 merged 2017-11-17 11:46:13 -05:00
Davis King e7d713cfee Added softmax_all layer. 2017-11-17 11:40:44 -05:00
Kino 364e97c159 generic_image all the way (#921)
* generic_image all the way

tried to hunt down and correct the functions that were using a
non-generic_image approach to dlib’s generic images.

* generic image fix fix

Had to change a couple of const_image_view to non-const versions so array access is possible in the rest of the code

* same

same

* back to sanity
2017-11-17 06:41:55 -05:00
Amin Cheloh 1798e8877c Update dnn_mmod_find_cars2_ex.cpp (#966) 2017-11-17 06:38:48 -05:00
Davis King 11145541ea Work around visual studio's lack of C++11 support. 2017-11-16 21:45:43 -05:00
Davis King f093d2cc5a Made normalization code more robust and a bit cleaner. 2017-11-15 17:20:36 -05:00
Davis King 9f6ad63b06 Removed unneeded assert 2017-11-15 09:24:50 -05:00
Davis King b84e2123d1 Changed network filename to something more descriptive. 2017-11-15 07:10:50 -05:00
Davis King 36392bb2c3 Minor tweaks to spec 2017-11-15 07:06:33 -05:00
Davis King 483e6ab4cc merged 2017-11-15 07:04:16 -05:00