Commit 457f85c9 authored by estellearrc's avatar estellearrc
Browse files

fix ANN Cpp confusion matrix

parent 05fefaeb
......@@ -33,10 +33,21 @@ int main(int argc, char **argv)
std::cout << "Accuracy: " << accuracy << "\n";
std::cout << "Confusion matrix: \n";
print_2D_array(matrix);
int matrix2[10][10] = {{0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0}};
std::cout << "Compute accuracy... \n";
accuracy = compute_accuracy("../../ANN/file_test.csv", (vFunctionCall)ANNModelWeights, matrix);
accuracy = compute_accuracy("../../ANN/file_test.csv", (vFunctionCall)ANNModelWeights, matrix2);
std::cout << "Accuracy: " << accuracy << "\n";
std::cout << "Confusion matrix: \n";
print_2D_array(matrix);
print_2D_array(matrix2);
return 0;
}
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment