map_elites icon indicating copy to clipboard operation
map_elites copied to clipboard

default/modules/map_elite/test_map_elite Failed

Open ashiqimran opened this issue 10 years ago • 5 comments

Hi, I am a neophyte in deep learning. I am trying to use sferes2 with map_elites module. I successfully configure and build sphers2. I use check command. I got the following result.

*** No errors detected Test setup error: test tree is empty default/tests/tests_eval_parallel ..............OK default/tests/tests_eval_mpi ...................OK default/tests/tests_gen_sampled ................OK default/tests/tests_gen_bit_string .............OK default/tests/tests_gen_evo_float ..............OK default/tests/tests_gen_cmaes ..................OK default/tests/tests_modif_diversity ............OK default/tests/tests_ea_nsga2 ...................OK default/tests/tests_ea_rank_simple .............OK default/tests/tests_ea_dom_sort ................OK default/tests/tests_ea_eps_moea ................OK default/tests/tests_ea_cmaes ...............FAILED default/modules/nn2/test_nn ....................OK default/modules/nn2/test_dnn ...................OK default/modules/nn2/test_mlp ...................OK default/modules/nn2/test_hyper_nn ..............OK default/modules/nn2/test_dnn_ff ................OK default/modules/nn2/test_osc ...................OK default/modules/nn2/test_hyper_nn_anh ..........OK default/modules/map_elite/test_map_elite ...FAILED debug/tests/tests_eval_parallel ................OK debug/tests/tests_eval_mpi .....................OK debug/tests/tests_gen_sampled ..................OK debug/tests/tests_gen_bit_string ...............OK debug/tests/tests_gen_evo_float ................OK debug/tests/tests_gen_cmaes ....................OK debug/tests/tests_modif_diversity ..............OK debug/tests/tests_ea_nsga2 .....................OK debug/tests/tests_ea_rank_simple ...............OK debug/tests/tests_ea_dom_sort ..................OK debug/tests/tests_ea_eps_moea ..................OK debug/tests/tests_ea_cmaes .....................OK debug/modules/nn2/test_nn ......................OK debug/modules/nn2/test_dnn .....................OK debug/modules/nn2/test_mlp .....................OK debug/modules/nn2/test_hyper_nn ............FAILED debug/modules/nn2/test_dnn_ff ..................OK debug/modules/nn2/test_osc .....................OK debug/modules/nn2/test_hyper_nn_anh ............OK debug/modules/map_elite/test_map_elite .....FAILED

Successful tests: 36 (90.0%) Failed tests: 4 (10.0%) Erroneous tests: 0 (0.0%)

Total number of tests: 40

Unit tests finished 'check' finished successfully (33.009s)

ashiqimran avatar Nov 11 '15 17:11 ashiqimran

Hi

I just tried to run the test and all of them are OK except test_hyper_nn (which is normal). Can you run build/debug/modules/map_elites/test_map_elites and copy-paste the output?

jbmouret avatar Nov 11 '15 17:11 jbmouret

Also, this test does not check anything. So, it fails either because it segfaulted, or maybe because of a time-out.

jbmouret avatar Nov 11 '15 17:11 jbmouret

I ran again, but still getting same result. This is the output I got. ashiq@ubuntu:~/Desktop/innovation-engine/sferes/build/debug/modules/map_elite$ ./test_map_elite Test setup error: test tree is empty ashiq@ubuntu:~/Desktop/innovation-engine/sferes/build/debug/modules/map_elite$

ashiqimran avatar Nov 12 '15 01:11 ashiqimran

Hi

I think I found the issue (although it did not happen with my version of boost). Can you:

  • pull the last version of sferes2 (master)
  • pull the last version of map_elites
  • re-run the test_map_elites and copy-paste the result if it fails ? (running this test takes some time).

thank you.

jbmouret avatar Nov 12 '15 17:11 jbmouret

Hi.

I am sorry for being late. I followed your steps. Now, I tried ./waf build, but it ends up with failure. Here is the result. [ 33/106] cxx: examples/ex_eps_moea.cpp -> build/debug/examples/ex_eps_moea_4.o ../modules/map_elites/test_map_elites.cpp: In instantiation of ‘void Rastrigin<Params, Exact>::eval(Indiv&) [with Indiv = sferes::phen::Parameters<sferes::gen::EvoFloat<10, Params>, Rastrigin<Params>, Params>; Params = Params; Exact = stc::Itself]’: ../sferes/eval/parallel.hpp:63:11: required from ‘void sferes::eval::_parallel_evaluate<Phen>::operator()(const range_t&) const [with Phen = sferes::phen::Parameters<sferes::gen::EvoFloat<10, Params>, Rastrigin<Params>, Params>; sferes::parallel::range_t = tbb::blocked_range]’ /usr/include/tbb/parallel_for.h:110:37: required from ‘void tbb::interface6::internal::start_for<Range, Body, Partitioner>::run_body(Range&) [with Range = tbb::blocked_range; Body = sferes::eval::_parallel_evaluate<sferes::phen::Parameters<sferes::gen::EvoFloat<10, Params>, Rastrigin<Params>, Params> >; Partitioner = const tbb::auto_partitioner]’ /usr/include/tbb/partitioner.h:259:13: required from ‘void tbb::interface6::internal::partition_type_base<Partition>::execute(StartType&, Range&) [with StartType = tbb::interface6::internal::start_for<tbb::blocked_range, sferes::eval::_parallel_evaluate<sferes::phen::Parameters<sferes::gen::EvoFloat<10, Params>, Rastrigin<Params>, Params> >, const tbb::auto_partitioner>; Range = tbb::blocked_range; Partition = tbb::interface6::internal::auto_partition_type]’ /usr/include/tbb/parallel_for.h:116:9: required from ‘tbb::task* tbb::interface6::internal::start_for<Range, Body, Partitioner>::execute() [with Range = tbb::blocked_range; Body = sferes::eval::_parallel_evaluate<sferes::phen::Parameters<sferes::gen::EvoFloat<10, Params>, Rastrigin<Params>, Params> >; Partitioner = const tbb::auto_partitioner]’ ../modules/map_elites/test_map_elites.cpp:133:1: required from here ../modules/map_elites/test_map_elites.cpp:107:70: error: in C++98 ‘data’ must be initialized by constructor, not by ‘{...}’ std::vector data = { ind.gen().data(0), ind.gen().data(1) }; ^ In file included from ../examples/ex_ea_mpi.cpp:6:0: ../sferes/ea/rank_simple.hpp:47:2: warning: #warning "DEPRECATED: rank_simple will be removed in future versions" [-Wcpp] #warning "DEPRECATED: rank_simple will be removed in future versions" ^ In file included from ../examples/ex_eps_moea.cpp:4:0: ../sferes/ea/eps_moea.hpp:41:2: warning: #warning "DEPRECATED: eps_moea is likely to be removed in future versions (due to a lack of active users)" [-Wcpp] #warning "DEPRECATED: eps_moea is likely to be removed in future versions (due to a lack of active users)" ^ Waf: Leaving directory `/home/ashiq/Desktop/sferes2/build' Build failed: -> task failed (err #1): {task: cxx test_map_elites.cpp -> test_map_elites_1.o}

Thanks, I really appreciate your help.

ashiqimran avatar Nov 19 '15 17:11 ashiqimran