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

ENH: weights of both the original and loaded network are printed for comparison now

parent be92c97b
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
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