loss_graphs.py 文件源码

python
阅读 24 收藏 0 点赞 0 评论 0

项目:tensorrec 作者: jfkirk 项目源码 文件源码
def warp_loss(tf_prediction, tf_y, **kwargs):
    # TODO JK: implement WARP loss

    tf_positive_mask = tf.greater(tf_y, 0.0)
    tf_negative_mask = tf.less_equal(tf_y, 0.0)

    tf_positive_predictions = tf.boolean_mask(tf_prediction, tf_positive_mask) # noqa
    tf_negative_predictions = tf.boolean_mask(tf_prediction, tf_negative_mask) # noqa
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号