Commit Graph
37 Commits
Author SHA1 Message Date
NanuSai b5f49a00a2 Fix callbacks 2021-06-10 10:08:38 +05:30
NanuSai efa5a2efbd Additional docs
remove callback tests
2021-06-08 21:29:16 +05:30
NanuSai 9c888154b0 fix bounds 2021-06-08 10:21:16 +05:30
NanuSai 8a52d9ab10 add callbacktest 2021-06-08 10:21:16 +05:30
NanuSai 526f1d449f init gensteptaken 2021-06-01 15:03:34 +05:30
NanuSai e7215436fe fix test for MOO 2021-06-01 14:43:56 +05:30
Ryan Curtin 6f07cab7f7 Merge pull request #213 from zoq/report-callback
Optimizer Summary Report
2020-11-01 15:55:53 -05:00
Marcus Edel 273abb2ad3 Test constraint optimizer. 2020-10-24 19:58:04 +02:00
Marcus Edel b96b967960 Merge branch 'master' into report-callback 2020-08-03 19:05:19 +02:00
Marcus Edel 0f5073e531 Add Report callback test. 2020-08-03 15:47:53 +02:00
Sayan Goswami ea5a54b77c Add overload for lowerBound, upperBound, add tests for the same. Fix CrowdingDistanceAssignment. 2020-07-30 14:57:11 +05:30
Sayan Goswami f45b6533a6 Use array initialization for bounds instead of string. 2020-07-29 14:05:55 +05:30
Sayan Goswami 021bff545c Use explicit types in callback test, fix typo. 2020-07-29 02:33:17 +05:30
Sayan Goswami 75ae7efbc4 Merge branch 'master' into nsga2 2020-07-14 20:23:46 +05:30
Omar Shrit f7aa5e6a85 Add a using in order to avoid a major version bump
Signed-off-by: Omar Shrit <omar@shrit.me>
2020-07-07 12:04:59 +02:00
shritandRyan Curtin 8fff9e8d75 Update class name according to typedef
Co-authored-by: Ryan Curtin <ryan@ratml.org>
2020-07-07 10:25:15 +02:00
Omar Shrit 8f45d8708e Replace climits with limits, and remove limits from callbacks_test
Signed-off-by: Omar Shrit <omar@shrit.me>
2020-07-04 23:08:43 +02:00
Omar Shrit 3c13753540 Examine the minValue when we are close to 10 or very far
Signed-off-by: Omar Shrit <omar@shrit.me>
2020-07-04 23:06:10 +02:00
Omar Shrit c1fd65f93f Add custom lambda function test
Signed-off-by: Omar Shrit <omar@shrit.me>
2020-07-04 23:06:10 +02:00
Omar Shrit 0dbc5006a4 Resolve name conflicts
Signed-off-by: Omar Shrit <omar@shrit.me>
2020-07-04 23:06:09 +02:00
Omar Shrit 2d18880679 Remove logisitic regression validation from tests
Signed-off-by: Omar Shrit <omar@shrit.me>
2020-07-04 23:06:09 +02:00
Omar Shrit 849cd34e16 Update test with the new callbacks
Signed-off-by: Omar Shrit <omar@shrit.me>
2020-07-04 23:06:09 +02:00
Omar Shrit a022be0202 Adding callback test function for early stop
Signed-off-by: Omar Shrit <shrit@lri.fr>
2020-07-04 23:06:09 +02:00
Sayan Goswami c3a5a56fc8 Resolve merge conflict with upstream/master 2020-04-19 18:06:28 +05:30
Gaurav SinghandRyan Curtin a005414da0 Fixing ProgressBar() (#181)
* Initial commit.

* Minor fixes.

* Style changes.

* Minor style changes.

* Minor Changes

* Changes in HISTORY.md and adding a test.

* minor changes.

* Update HISTORY.md

Co-Authored-By: Ryan Curtin <ryan@ratml.org>

* Update include/ensmallen_bits/callbacks/progress_bar.hpp

Co-Authored-By: Ryan Curtin <ryan@ratml.org>

* Incorporating the changes.

* Solving style issues

* Solving merge conflicts.

* Adding tests and correcting the epoch conditionals.

* Minor changes in tests.

* Minor style changes

* Minor changes.

* Style changes.

* Changes in callback tests.

* Style Changes.

* Update include/ensmallen_bits/callbacks/progress_bar.hpp

Co-Authored-By: Ryan Curtin <ryan@ratml.org>

* Update tests/callbacks_test.cpp

Co-Authored-By: Ryan Curtin <ryan@ratml.org>

* Update tests/callbacks_test.cpp

Co-Authored-By: Ryan Curtin <ryan@ratml.org>

* Changes in tests.

Co-authored-by: Ryan Curtin <ryan@ratml.org>
2020-04-16 20:06:46 +02:00
Sayan Goswami dd7fd0a3af Merge branch 'master' into nsga2 2020-02-13 00:14:52 -05:00
Sayan Goswami 603d9a18c1 Add NSGA2 Callback test 2020-02-13 10:41:12 +05:30
Marcus Edel 86e289691a Fix callback passing for SGD based optimizers. 2019-12-31 20:21:50 +01:00
Barak A. Pearlmutter 176fbef576 32-bit safety in big random number
This patch fixes a compile-time warning and test case failure on
32-bit architectures, including i386.

    cd /<<PKGBUILDDIR>>/obj-i686-linux-gnu/tests && /usr/bin/c++   -I/<<PKGBUILDDIR>>/include  -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fopenmp -Wall -Wpedantic -Wunused-parameter   -std=gnu++11 -o CMakeFiles/ensmallen_tests.dir/cmaes_test.cpp.o -c /<<PKGBUILDDIR>>/tests/cmaes_test.cpp
    /<<PKGBUILDDIR>>/tests/callbacks_test.cpp: In function ‘void ____C_A_T_C_H____T_E_S_T____46()’:
    /<<PKGBUILDDIR>>/tests/callbacks_test.cpp:397:28: warning: unsigned conversion from ‘long long int’ to ‘size_t’ {aka ‘unsigned int’} changes value from ‘10000000000’ to ‘1410065408’ [-Woverflow]
      397 |   StandardSGD s(0.0003, 1, 10000000000, -10);
	  |                            ^~~~~~~~~~~
    /<<PKGBUILDDIR>>/tests/callbacks_test.cpp: In function ‘void ____C_A_T_C_H____T_E_S_T____54()’:
    /<<PKGBUILDDIR>>/tests/callbacks_test.cpp:473:28: warning: unsigned conversion from ‘long long int’ to ‘size_t’ {aka ‘unsigned int’} changes value from ‘10000000000’ to ‘1410065408’ [-Woverflow]
      473 |   StandardSGD s(0.0003, 1, 10000000000, -100, true);
	  |                            ^~~~~~~~~~~

    ...

    Test project /<<PKGBUILDDIR>>/obj-i686-linux-gnu
	Start 1: ensmallen_tests
    1/1 Test #1: ensmallen_tests ..................***Failed  5163.40 sec

The SGD maxIterations parameter to the SGD routine is stored in a
size_t. Arguably inappropriate; it belongs in something guaranteed to
be at least 64 bits, perhaps long long int.

Be that as it may, a test routine was passing a number meant to be so
large it would not be exceeded, to test a mechanism that should
terminate the optimization early. The large number chosen was
10000000000, ten billion, which exceeds the maximum value of an
unsigned 32-bit integer of 4 billion plus change.

This patch changes the maxIterations parameter passed to two billion,
2000000000, which is both sufficiently large for the purposes here and
safely below the maximum value for a 32-bit signed integer.
2019-12-05 14:30:42 +00:00
Ryan Curtin e399775c92 Use operator() not operator[] for bounds checks.
Signed-off-by: Marcus Edel <marcus.edel@fu-berlin.de>
2019-08-31 19:29:44 +02:00
Marcus Edel 79b77c7db9 Adjust optimizer test settings to be more prone to errors. 2019-08-18 18:07:17 +02:00
Marcus Edel faf0926c92 Add epoch begin/end callback to optimizer. 2019-08-11 22:50:19 +02:00
Marcus Edel 591f341aa4 Templated PSO Optimize function. 2019-08-05 17:29:59 +02:00
Marcus Edel 29148a040d Add StepTaken callback function. 2019-08-03 21:36:16 +02:00
Marcus Edel 59c5fef643 Test optimizers against Callback functions. 2019-06-19 22:51:32 +02:00
Marcus Edel 066bafa2fb Rename timer 'time' -> 'duration' and fix minor style issues (unused parameter). 2019-06-19 22:51:32 +02:00
Marcus Edel 2266177ffe Add callbacks tests. 2019-06-19 22:51:32 +02:00