nfmcclure / tensorflow_cookbook

Code for Tensorflow Machine Learning Cookbook
https://www.packtpub.com/big-data-and-business-intelligence/tensorflow-machine-learning-cookbook-second-edition
MIT License
6.23k stars 2.41k forks source link

how to explain this line? Ch4,04_svm_kernels.py,line71:prediction = tf.sign(prediction_output - tf.reduce_mean(prediction_output)) #169

Open qwer10 opened 4 years ago

qwer10 commented 4 years ago

Ch4,04_svm_kernels.py,line71: prediction = tf.sign(prediction_output - tf.reduce_mean(prediction_output)) I can't find that line in any book/posts. Instead, my book said when you predict, you should calculate the bias first. Who can explain that line? Thank you very much!