Skip to content
Snippets Groups Projects
Commit 8474c439 authored by David Vojtek's avatar David Vojtek
Browse files

Fix of Particle_swarm unit test

parent 6c72b118
No related branches found
No related tags found
No related merge requests found
**Summary** Summary
(Summarize the bug encountered concisely) (Summarize the bug encountered concisely)
**Steps to reproduce** Steps to reproduce
(How one can reproduce the issue - this is very important) (How one can reproduce the issue - this is very important)
**What is the current bug behavior?** What is the current bug behavior?
(What actually happens) (What actually happens)
**What is the expected correct behavior?** What is the expected correct behavior?
(What you should see instead) (What you should see instead)
**Relevant logs and/or screenshots** Relevant logs and/or screenshots
(Paste any relevant logs - please use code blocks (```) to format console output, (Paste any relevant logs - please use code blocks (```) to format console output,
logs, and code as it's very hard to read otherwise.) logs, and code as it's very hard to read otherwise.)
**Possible fixes** Possible fixes
(If you can, link to the line of code that might be responsible for the problem) (If you can, link to the line of code that might be responsible for the problem)
......
**Summary** Summary
(Summarize the bug encountered concisely) (Summarize the bug encountered concisely)
**Associated classes** Associated classes
(Classes, which need to be modified, if any) (Classes, which need to be modified, if any)
......
...@@ -24,7 +24,8 @@ BOOST_AUTO_TEST_SUITE(ParticleSwarm_test) ...@@ -24,7 +24,8 @@ BOOST_AUTO_TEST_SUITE(ParticleSwarm_test)
BOOST_AUTO_TEST_CASE(ParticleSwarm_construction_test){ BOOST_AUTO_TEST_CASE(ParticleSwarm_construction_test){
double domain_bound = 5; std::vector<double> domain_bound;
domain_bound.push_back(5);
NeuralNetwork network; NeuralNetwork network;
std::vector<std::pair<std::vector<double>, std::vector<double>>> data_vec; std::vector<std::pair<std::vector<double>, std::vector<double>>> data_vec;
std::vector<double> inp, out; std::vector<double> inp, out;
...@@ -42,7 +43,8 @@ BOOST_AUTO_TEST_SUITE(ParticleSwarm_test) ...@@ -42,7 +43,8 @@ BOOST_AUTO_TEST_SUITE(ParticleSwarm_test)
} }
BOOST_AUTO_TEST_CASE(ParticleSwarm_optimalize_test){ BOOST_AUTO_TEST_CASE(ParticleSwarm_optimalize_test){
double domain_bound = 5; std::vector<double> domain_bound;
domain_bound.push_back(5);
NeuralNetwork network; NeuralNetwork network;
std::vector<std::pair<std::vector<double>, std::vector<double>>> data_vec; std::vector<std::pair<std::vector<double>, std::vector<double>>> data_vec;
std::vector<double> inp, out; std::vector<double> inp, out;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment