tf.compat.v1.losses.hinge_loss

在训练过程中增加了hinge loss。

tf.compat.v1.losses.hinge_loss(
    labels, #真实值
    logits, #预测值
)

labels和 logits具有相同的shape。

猜你喜欢

转载自blog.csdn.net/Fwuyi/article/details/125751203