From ca242edaf3ab1e6fc51ca72785195c1710cb028c Mon Sep 17 00:00:00 2001 From: Raphael Walcher Date: Fri, 22 Sep 2023 09:54:02 +0200 Subject: [PATCH] / --- .idea/.gitignore | 8 ++++++++ neuronal_network.c | 20 ++++++++++---------- 2 files changed, 18 insertions(+), 10 deletions(-) create mode 100644 .idea/.gitignore diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..13566b8 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,8 @@ +# Default ignored files +/shelf/ +/workspace.xml +# Editor-based HTTP Client requests +/httpRequests/ +# Datasource local storage ignored files +/dataSources/ +/dataSources.local.xml diff --git a/neuronal_network.c b/neuronal_network.c index a970cec..dbf8224 100644 --- a/neuronal_network.c +++ b/neuronal_network.c @@ -372,13 +372,13 @@ double square(double input) { return input * input; } -double loss_function(Matrix* output_matrix, int image_label) { - Matrix* temp = matrix_copy(output_matrix); - - temp->numbers[1, image_label] -= 1; - apply(square, temp); - - matrix_free(temp); - - return matrix_sum(temp);; -} \ No newline at end of file +//double loss_function(Matrix* output_matrix, int image_label) { +// Matrix* temp = matrix_copy(output_matrix); +// +// temp->numbers[1][image_label] -= 1; +// apply(square, temp); +// +// matrix_free(temp); +// +// return matrix_sum(temp);; +//} \ No newline at end of file