random numbers are now somehow random
This commit is contained in:
parent
2654733c27
commit
614cfef7f2
2 changed files with 10 additions and 4 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Reference in a new issue