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

FIX: Removed 'normalized' and 'de-normalized' evaluation as there is just...

FIX: Removed 'normalized' and 'de-normalized' evaluation as there is just 'de-normalized' natively from now.
parent 8fdf1839
No related branches found
No related tags found
No related merge requests found
...@@ -19,7 +19,7 @@ int main(int argc, char** argv) { ...@@ -19,7 +19,7 @@ int main(int argc, char** argv) {
try { try {
/* PHASE 1 - TRAINING DATA LOADING, NETWORK ASSEMBLY AND PARTICLE SWARM OPTIMIZATION */ /* 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 reader1.read(); // Read from the file
/* PHASE 1 - NEURAL NETWORK SPECIFICATION */ /* PHASE 1 - NEURAL NETWORK SPECIFICATION */
...@@ -80,7 +80,7 @@ int main(int argc, char** argv) { ...@@ -80,7 +80,7 @@ int main(int argc, char** argv) {
l4n::NeuralNetwork nn2("test_net_Particle_Swarm.4n"); l4n::NeuralNetwork nn2("test_net_Particle_Swarm.4n");
/* Training data loading for the second phase */ /* 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 reader2.read(); // Read from the file
/* Create data set for both the first training of the neural network */ /* Create data set for both the first training of the neural network */
...@@ -124,7 +124,7 @@ int main(int argc, char** argv) { ...@@ -124,7 +124,7 @@ int main(int argc, char** argv) {
nn3.write_biases(&output_file); nn3.write_biases(&output_file);
/* Evaluate network on an arbitrary data-set and save results into the 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 reader3.read(); // Read from the file
/* Create data set for both the testing of the neural network */ /* Create data set for both the testing of the neural network */
...@@ -143,11 +143,6 @@ int main(int argc, char** argv) { ...@@ -143,11 +143,6 @@ int main(int argc, char** argv) {
/* Error function */ /* Error function */
l4n::MSE mse3(&nn3, &ds3); // First parameter - neural network, second parameter - data-set 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); mse3.eval_on_data_set(&ds3, &output_file);
/* Close the output file for writing */ /* Close the output file for writing */
......
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