Update train.c

This commit is contained in:
augustin64 2023-01-17 12:50:35 +01:00
parent 6917711271
commit 61468044a9

View File

@ -46,7 +46,7 @@ void* train_thread(void* parameters) {
write_image_in_network_32(images[index[i]], height, width, network->input[0][0]);
forward_propagation(network);
maxi = indice_max(network->input[network->size-1][0][0], 10);
backward_propagation(network, labels[i]);
backward_propagation(network, labels[index[i]]);
if (maxi == labels[index[i]]) {
accuracy += 1.;