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
19c4adcd
Commit
19c4adcd
authored
6 years ago
by
Martin Beseda
Browse files
Options
Downloads
Plain Diff
Commit before merge
parents
a0fd976e
bc28b967
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/Solvers/DESolver.h
+1
-0
1 addition, 0 deletions
src/Solvers/DESolver.h
src/tests/NeuronLogistic_test.cpp
+4
-4
4 additions, 4 deletions
src/tests/NeuronLogistic_test.cpp
with
5 additions
and
4 deletions
src/Solvers/DESolver.h
+
1
−
0
View file @
19c4adcd
...
@@ -6,6 +6,7 @@
...
@@ -6,6 +6,7 @@
*/
*/
//TODO incorporate uncertainities as coefficients in NeuralNetworkSum or ErrorSum
//TODO incorporate uncertainities as coefficients in NeuralNetworkSum or ErrorSum
//TODO add support for multiple unknown functions to be found
#ifndef INC_4NEURO_PDESOLVER_H
#ifndef INC_4NEURO_PDESOLVER_H
#define INC_4NEURO_PDESOLVER_H
#define INC_4NEURO_PDESOLVER_H
...
...
This diff is collapsed.
Click to expand it.
src/tests/NeuronLogistic_test.cpp
+
4
−
4
View file @
19c4adcd
...
@@ -44,11 +44,11 @@ BOOST_AUTO_TEST_SUITE(neuronLogistic_test)
...
@@ -44,11 +44,11 @@ BOOST_AUTO_TEST_SUITE(neuronLogistic_test)
NeuronLogistic
neuron
(
3.0
,
2.0
);
NeuronLogistic
neuron
(
3.0
,
2.0
);
//Test of correct output of activation_function_get_derivative method
//Test of correct output of activation_function_get_derivative method
BOOST_CHECK_CLOSE
(
0.004
47566759338
,
neuron
.
activation_function_eval_derivative
(),
0.00001
);
BOOST_CHECK_CLOSE
(
0.004
2850850699
,
neuron
.
activation_function_eval_derivative
(),
0.00001
);
//Tests of correct outputs of activation_function_get_partial_derivative method
//Tests of correct outputs of activation_function_get_partial_derivative method
BOOST_CHECK_CLOSE
(
-
0.00
36025788498
,
neuron
.
activation_function_eval_partial_derivative
(
0
),
0.00001
);
BOOST_CHECK_CLOSE
(
-
0.00
68569236644
,
neuron
.
activation_function_eval_partial_derivative
(
0
),
0.00001
);
BOOST_CHECK_CLOSE
(
-
0.004
4756675933
,
neuron
.
activation_function_eval_partial_derivative
(
1
),
0.00001
);
BOOST_CHECK_CLOSE
(
-
0.004
2850850699
,
neuron
.
activation_function_eval_partial_derivative
(
1
),
0.00001
);
BOOST_CHECK_EQUAL
(
0.0
,
neuron
.
activation_function_eval_partial_derivative
(
10000
));
BOOST_CHECK_EQUAL
(
0.0
,
neuron
.
activation_function_eval_partial_derivative
(
10000
));
}
}
BOOST_AUTO_TEST_SUITE_END
()
BOOST_AUTO_TEST_SUITE_END
()
\ No newline at end of file
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