From a8d623a70a82db9fa14050b403f25161a7981d8e Mon Sep 17 00:00:00 2001 From: Martin Beseda <martin.beseda@vsb.cz> Date: Wed, 20 Mar 2019 00:47:20 +0100 Subject: [PATCH] ENH: Added serialization method to NeuronDifferentiable class --- src/Neuron/Neuron.cpp | 2 ++ src/Neuron/Neuron.h | 7 +++++++ 2 files changed, 9 insertions(+) diff --git a/src/Neuron/Neuron.cpp b/src/Neuron/Neuron.cpp index 3f8b77f4..0dd48b73 100644 --- a/src/Neuron/Neuron.cpp +++ b/src/Neuron/Neuron.cpp @@ -1,6 +1,8 @@ #include "NeuronSerialization.h" BOOST_CLASS_EXPORT_IMPLEMENT(lib4neuro::Neuron); +//BOOST_CLASS_EXPORT_IMPLEMENT(lib4neuro::NeuronDifferentiable); + namespace lib4neuro { diff --git a/src/Neuron/Neuron.h b/src/Neuron/Neuron.h index 88747a63..cebea701 100644 --- a/src/Neuron/Neuron.h +++ b/src/Neuron/Neuron.h @@ -72,6 +72,13 @@ namespace lib4neuro { */ class NeuronDifferentiable : public Neuron { public: + + /** + * Struct used to access private properties from + * the serialization function + */ + struct access; + /** * Calculates the derivative with respect to the argument, ie the 'potential' * @return f'(x), where 'f(x)' is the activation function and 'x' = 'potential' -- GitLab