As you said I removed the activation function relu of the last layer and the loss and parameters started to change. thank you very much. One thing I don’t understand is why remove relu and than use 0.0 as cutoff? Since it is a binary classification problem, it is necessary to return a class of 0 or 1 using cutoff 0.5 or another value, but wouldn’t it only be a class of 1 if 0.0 is used? thank you so much for solving my problem!