Commit 6fdca902 authored by Martin Beseda's avatar Martin Beseda

FIX: Fixed missing initialization of 'n_activation_function_parameters' variable in constructors.

parent 7a0d93cc
......@@ -7,6 +7,7 @@
NeuronLogistic::NeuronLogistic(double a, double b) {
this->n_activation_function_parameters = 2;
this->activation_function_parameters = new double[2];
this->activation_function_parameters[0] = a;
......
......@@ -6,6 +6,7 @@
NeuronTanh::NeuronTanh(double a) {
this->n_activation_function_parameters = 1;
this->activation_function_parameters = new double[1];
this->activation_function_parameters[0] = a;
......
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