Skip to content
Snippets Groups Projects
Commit e6212358 authored by Michal Kravcenko's avatar Michal Kravcenko
Browse files

-minor corrections and TODO regarding wrong activation functions in the ode_1 example

parent 9965ff6b
No related branches found
No related tags found
No related merge requests found
...@@ -99,6 +99,7 @@ int main() { ...@@ -99,6 +99,7 @@ int main() {
conn_2_idx = y.add_connection_simple(idxinn, idxo); conn_2_idx = y.add_connection_simple(idxinn, idxo);
//TODO INCORRECT neurons, must be derivatives of Logistic function
/* Inner neurons and connections of dy(t), SHARING WEIGHTS */ /* Inner neurons and connections of dy(t), SHARING WEIGHTS */
NeuronLogistic *inn_i_dy = new NeuronLogistic(1.0, 0.0); //f(x) = 1.0 / (1.0 + e^(-x)) NeuronLogistic *inn_i_dy = new NeuronLogistic(1.0, 0.0); //f(x) = 1.0 / (1.0 + e^(-x))
idxinn = dy.add_neuron( inn_i_dy ); idxinn = dy.add_neuron( inn_i_dy );
...@@ -145,8 +146,8 @@ int main() { ...@@ -145,8 +146,8 @@ int main() {
/* DEFINITION OF NN SUM */ /* DEFINITION OF NN SUM */
NeuralNetworkSum g; NeuralNetworkSum g;
g.add_network(&y, 1.0); g.add_network(&y, 4.0);
g.add_network(&dy, 1.0); g.add_network(&dy, 4.0);
g.add_network(&ddy, 1.0); g.add_network(&ddy, 1.0);
/* DEFINITION OF THE PARTIAL ERROR FUNCTIONS */ /* DEFINITION OF THE PARTIAL ERROR FUNCTIONS */
......
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