Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
lib4neuro
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
MolDyn
lib4neuro
Commits
8474c439
Commit
8474c439
authored
6 years ago
by
David Vojtek
Browse files
Options
Downloads
Patches
Plain Diff
Fix of Particle_swarm unit test
parent
6c72b118
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitlab/issue_templates/Bug.md
+6
-6
6 additions, 6 deletions
.gitlab/issue_templates/Bug.md
.gitlab/issue_templates/Task.md
+2
-2
2 additions, 2 deletions
.gitlab/issue_templates/Task.md
src/tests/ParticleSwarm_test.cpp
+4
-2
4 additions, 2 deletions
src/tests/ParticleSwarm_test.cpp
with
12 additions
and
10 deletions
.gitlab/issue_templates/Bug.md
+
6
−
6
View file @
8474c439
**
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)
...
...
This diff is collapsed.
Click to expand it.
.gitlab/issue_templates/Task.md
+
2
−
2
View file @
8474c439
**
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)
...
...
This diff is collapsed.
Click to expand it.
src/tests/ParticleSwarm_test.cpp
+
4
−
2
View file @
8474c439
...
@@ -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
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment