linear_svm.py 文件源码

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

项目:TensorFlow-World 作者: astorfi 项目源码 文件源码
def inference_fn(W,b,x_data,y_target):
    prediction = tf.sign(tf.subtract(tf.matmul(x_data, W), b))
    accuracy = tf.reduce_mean(tf.cast(tf.equal(prediction, y_target), tf.float32))
    return accuracy
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号