TensorFlow/Keras binary_crossentropy损失函数

In [22]: y_true = [[0], [1]] In [23]: y_pred = [[0.9], [0.9]] In [24]: tf.keras.losses.binary_crossentropy(y_true, y_pred) Out[24]: <tf.Tensor: shape=
posted @ 2020-11-21 17:26  2021年的顺遂平安君  阅读(1870)  评论(0编辑  收藏  举报