From 4a463a54cef5bac3a90c1cc624c6a4ce063baedf Mon Sep 17 00:00:00 2001 From: Martin Beseda <martinbeseda@seznam.cz> Date: Wed, 8 Aug 2018 22:45:20 +0200 Subject: [PATCH] ENH: Started to write serialization for NeuralNetwork class --- src/Network/NeuralNetwork.cpp | 5 +++++ src/Network/NeuralNetwork.h | 6 ++++++ 2 files changed, 11 insertions(+) diff --git a/src/Network/NeuralNetwork.cpp b/src/Network/NeuralNetwork.cpp index 66246c83..0f7490ef 100644 --- a/src/Network/NeuralNetwork.cpp +++ b/src/Network/NeuralNetwork.cpp @@ -614,4 +614,9 @@ void NeuralNetwork::print_weights() { void NeuralNetwork::print_stats(){ printf("Number of neurons: %d, number of weights: %d\n", this->neurons->size(), this->n_weights); +} + +void NeuralNetwork::store_text(std::string filepath) { + // TODO + return; } \ No newline at end of file diff --git a/src/Network/NeuralNetwork.h b/src/Network/NeuralNetwork.h index 68b558fd..7cd30784 100644 --- a/src/Network/NeuralNetwork.h +++ b/src/Network/NeuralNetwork.h @@ -240,6 +240,12 @@ public: * */ void print_stats(); + + /** + * + * @param filepath + */ + void store_text(std::string filepath); }; -- GitLab