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

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

FIX: Fixed missing initialization of 'n_activation_function_parameters' variable in the constructor.
parent a0d606c9
No related branches found
No related tags found
No related merge requests found
......@@ -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);
}
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