relu formel

This commit is contained in:
Tocuro 2023-09-21 09:22:57 +02:00
parent 3eaf2ae810
commit 85ad120d0a

View file

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