HolyFuckItsAlive #13

Merged
jastornig merged 105 commits from Delta-Error-Test into main 2023-09-23 22:27:54 +02:00
Showing only changes of commit 6557fbadfc - Show all commits

View file

@ -16,7 +16,7 @@ Neural_Network* new_network(int input_size, int hidden_size, int hidden_amount,
network->output_size = output_size;
network->learning_rate = learning_rate;
Matrix** weights = malloc(sizeof(Matrix)*(hidden_amount + 1));
Matrix** weights = malloc(sizeof(Matrix*)*(hidden_amount + 1));
network->weights = weights;
network->weights[0] = matrix_create(hidden_size, input_size+1);