From 9f2ed44b1a8a00c8a095cb20025eb31463349b14 Mon Sep 17 00:00:00 2001 From: Martin Beseda <martin.beseda@vsb.cz> Date: Wed, 21 Nov 2018 17:49:13 +0100 Subject: [PATCH] ENH: weights of both the original and loaded network are printed for comparison now --- src/examples/main.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/examples/main.cpp b/src/examples/main.cpp index b8d4580f..d743c8f0 100644 --- a/src/examples/main.cpp +++ b/src/examples/main.cpp @@ -53,7 +53,7 @@ int main(int argc, char** argv){ // 0.7, // 600, // 1000); - l4n::GradientDescent gs(1e-3, 1); + l4n::GradientDescent gs(10, 100); nn.randomize_weights(); @@ -67,10 +67,12 @@ int main(int argc, char** argv){ /* Check of the saved network */ std::cout << "The original network info:" << std::endl; nn.print_stats(); + nn.print_weights(); l4n::NeuralNetwork nn_loaded("test_net.4n"); std::cout << "The loaded network info:" << std::endl; nn_loaded.print_stats(); + nn_loaded.print_weights(); return 0; } -- GitLab