From b76a60e1ed9e802430878c88526714fa0a90818a Mon Sep 17 00:00:00 2001 From: Martin Beseda <martin.beseda@vsb.cz> Date: Tue, 22 Jan 2019 15:07:00 +0100 Subject: [PATCH] FIX: Removed 'normalized' and 'de-normalized' evaluation as there is just 'de-normalized' natively from now. --- src/examples/simulator.cpp | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/src/examples/simulator.cpp b/src/examples/simulator.cpp index f8d6f338..8e972703 100644 --- a/src/examples/simulator.cpp +++ b/src/examples/simulator.cpp @@ -19,7 +19,7 @@ int main(int argc, char** argv) { try { /* PHASE 1 - TRAINING DATA LOADING, NETWORK ASSEMBLY AND PARTICLE SWARM OPTIMIZATION */ - l4n::CSVReader reader1("/tmp/lib4neuro_pokus/simulator_input.txt", "\t", true); // File, separator, skip 1st line + l4n::CSVReader reader1("/home/martin/Desktop/lib4neuro_test2/simulator_input.txt", "\t", true); // File, separator, skip 1st line reader1.read(); // Read from the file /* PHASE 1 - NEURAL NETWORK SPECIFICATION */ @@ -80,7 +80,7 @@ int main(int argc, char** argv) { l4n::NeuralNetwork nn2("test_net_Particle_Swarm.4n"); /* Training data loading for the second phase */ - l4n::CSVReader reader2("/tmp/lib4neuro_pokus/simulator_input.txt", "\t", true); // File, separator, skip 1st line + l4n::CSVReader reader2("/home/martin/Desktop/lib4neuro_test2/simulator_input.txt", "\t", true); // File, separator, skip 1st line reader2.read(); // Read from the file /* Create data set for both the first training of the neural network */ @@ -124,7 +124,7 @@ int main(int argc, char** argv) { nn3.write_biases(&output_file); /* Evaluate network on an arbitrary data-set and save results into the file */ - l4n::CSVReader reader3("/tmp/lib4neuro_pokus/simulator_input.txt", "\t", true); // File, separator, skip 1st line + l4n::CSVReader reader3("/home/martin/Desktop/lib4neuro_test2/simulator_input.txt", "\t", true); // File, separator, skip 1st line reader3.read(); // Read from the file /* Create data set for both the testing of the neural network */ @@ -143,11 +143,6 @@ int main(int argc, char** argv) { /* Error function */ l4n::MSE mse3(&nn3, &ds3); // First parameter - neural network, second parameter - data-set - std::cout << "Eval on normalized data:" << std::endl; - mse3.eval_on_data_set(&ds3, &output_file); - - std::cout << "Eval on de-normalized data:" << std::endl; - ds3.de_normalize(); mse3.eval_on_data_set(&ds3, &output_file); /* Close the output file for writing */ -- GitLab