diff --git a/src/examples/simulator.cpp b/src/examples/simulator.cpp index f8d6f338646b5bc544bdaa79f57c6d122e686927..8e972703bb7268805896f2a8e1a4b5df336d7500 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 */