Commit cd1bf347 authored by Martin Beseda's avatar Martin Beseda

FIX: Fixed missing initialization of 'n_activation_function_parameters'...

FIX: Fixed missing initialization of 'n_activation_function_parameters' variable in the constructor.
parent a0d606c9
......@@ -5,6 +5,8 @@
#include "NeuronBinary.h"
NeuronBinary::NeuronBinary(double threshold) {
this->n_activation_function_parameters = 2;
this->activation_function_parameters = new double[1];
this->activation_function_parameters[0] = threshold;
......@@ -24,8 +26,3 @@ void NeuronBinary::activate( ) {
this->state = 0.0;
}
}
template<class Archive>
void NeuronBinary::serialize(Archive & ar, const unsigned int version) {
ar & boost::serialization::base_object<Neuron>(*this);
}
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