HolyFuckItsAlive #13

Merged
jastornig merged 105 commits from Delta-Error-Test into main 2023-09-23 22:27:54 +02:00
2 changed files with 18 additions and 10 deletions
Showing only changes of commit 06b87520b5 - Show all commits

8
.idea/.gitignore generated vendored Normal file
View file

@ -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

View file

@ -383,13 +383,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);;
}
//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);;
//}