random numbers are now somehow random

This commit is contained in:
Jakob Stornig 2023-09-21 10:19:22 +02:00
parent 2654733c27
commit 614cfef7f2
2 changed files with 10 additions and 4 deletions

View file

@ -159,11 +159,10 @@ Matrix* predict(Neural_Network* network, Matrix* image_data) {
//void batch_train_network(Neural_Network* network, Image** images, int size);
double relu(double input) {
if (input < 0){
if (input <= 0){
return 0.0;
}
return input;
//TODO: relu formel
}
Matrix* softmax(Matrix* matrix) {