(try): stochastic gradient decent

This commit is contained in:
Jakob Stornig 2023-09-23 22:05:55 +02:00
parent 86ac3e855c
commit 34a23c6eab
7 changed files with 288 additions and 27 deletions

View file

@ -343,9 +343,9 @@ Matrix * backPropagation(double learning_rate, Matrix* weights, Matrix* biases,
//void batch_train_network(Neural_Network* network, Image** images, int size);
double sigmoid(double input) {
return 1.0 / (1 + exp(-1 * input));
}
//double sigmoid(double input) {
// return 1.0 / (1 + exp(-1 * input));
//}
double sigmoid_derivative(double x) {
return x * (1.0 - x);