relu formel
This commit is contained in:
parent
3eaf2ae810
commit
85ad120d0a
1 changed files with 4 additions and 1 deletions
|
|
@ -147,7 +147,10 @@ Matrix* predict(Neural_Network* network, Matrix* image_data) {
|
||||||
//void batch_train_network(Neural_Network* network, Image** images, int size);
|
//void batch_train_network(Neural_Network* network, Image** images, int size);
|
||||||
|
|
||||||
double relu(double input) {
|
double relu(double input) {
|
||||||
return 1.0;
|
if (input < 0){
|
||||||
|
return 0.0;
|
||||||
|
}
|
||||||
|
return input;
|
||||||
//TODO: relu formel
|
//TODO: relu formel
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Reference in a new issue