Commit 8474c439 authored by David Vojtek's avatar David Vojtek

Fix of Particle_swarm unit test

parent 6c72b118
**Summary**
Summary
(Summarize the bug encountered concisely)
**Steps to reproduce**
Steps to reproduce
(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 is the expected correct behavior?**
What is the expected correct behavior?
(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,
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)
......
**Summary**
Summary
(Summarize the bug encountered concisely)
**Associated classes**
Associated classes
(Classes, which need to be modified, if any)
......
......@@ -24,7 +24,8 @@ BOOST_AUTO_TEST_SUITE(ParticleSwarm_test)
BOOST_AUTO_TEST_CASE(ParticleSwarm_construction_test){
double domain_bound = 5;
std::vector<double> domain_bound;
domain_bound.push_back(5);
NeuralNetwork network;
std::vector<std::pair<std::vector<double>, std::vector<double>>> data_vec;
std::vector<double> inp, out;
......@@ -42,7 +43,8 @@ BOOST_AUTO_TEST_SUITE(ParticleSwarm_test)
}
BOOST_AUTO_TEST_CASE(ParticleSwarm_optimalize_test){
double domain_bound = 5;
std::vector<double> domain_bound;
domain_bound.push_back(5);
NeuralNetwork network;
std::vector<std::pair<std::vector<double>, std::vector<double>>> data_vec;
std::vector<double> inp, out;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment