When I train or evaluate with binary_crossentropy I'm getting huge values, but when I put the results through manually it looks normal. What am I doing wrong? I think binary_crossentropy can't exceed about 15.5 in any case.
test_in, test_out1 = makeTestData()
test_out2 = np.zeros((1000,1))
model.compile(..., loss=['mean_squared_error', 'binary_crossentropy'], loss_weights=[1.0, 0.001])
model.evaluate(test_in,[test_out1, test_out2])
# Result: [0.3238, 0.106, 217.815]
pred = model.predict(test_in)
# np.max(pred[1]) = 1.0, np.min(pred[1]) = 0.0019
K.mean(tf.losses.binary_crossentropy(test_out2, pred[1]))
# Result: 13.31
217.8 loss in evaluation (and training, not shown), but only 13.3 when run manually through.