Skip to content
Snippets Groups Projects
Commit 19c4adcd authored by Martin Beseda's avatar Martin Beseda
Browse files

Commit before merge

parents a0fd976e bc28b967
No related branches found
No related tags found
No related merge requests found
...@@ -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
......
...@@ -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.00447566759338, neuron.activation_function_eval_derivative(), 0.00001); BOOST_CHECK_CLOSE(0.0042850850699, 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.0036025788498, neuron.activation_function_eval_partial_derivative(0), 0.00001); BOOST_CHECK_CLOSE(-0.0068569236644, neuron.activation_function_eval_partial_derivative(0), 0.00001);
BOOST_CHECK_CLOSE(-0.0044756675933, neuron.activation_function_eval_partial_derivative(1), 0.00001); BOOST_CHECK_CLOSE(-0.0042850850699, 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
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