def hinge_loss(y_pred, y_true):
    with tf.name_scope("HingeLoss"):
        return tf.reduce_mean(tf.maximum(1. - y_true * y_pred, 0.))
Proper position.
dataset/ETHPy150Open tflearn/tflearn/tflearn/objectives.py/hinge_loss--crossover with--dataset/ETHPy150Open typesupply/woffTools/Lib/woffTools/test/test_validate.py/tableStartTest1