Hi Rafal!



 Ra-V:

Then response variable was … then 0 else 2 (full excel function =IF(A4>1;IF(B4>=2;IF(C4>=3;IF(D4>=4;1;2);2);2);2) )


For binary_cross_entropy, your response variable (what is often
called the target) should be a probability in the range [0, 1].  (If we
use just the values 0 and 1, we can understand the target to be the
class label for classes “0” and “1”.)
You say your target is 0 or 2 (but your excel formula looks like 1 or
2).  Either way, it falls outside the required range of [0, 1], so the loss
function won’t work properly.  If your target really does take on the
value 2, this is likely your problem.
Best.
K. Frank