nfmcclure / tensorflow_cookbook

Code for Tensorflow Machine Learning Cookbook

Home Page:https://www.packtpub.com/big-data-and-business-intelligence/tensorflow-machine-learning-cookbook-second-edition

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Formula error at Chapter 4 (Working with Linear SVM)

erichooi opened this issue · comments

screen shot 2018-07-16 at 3 50 36 pm

Is that suppose to be - instead of +? This is a formula that I found on Wikipedia.

screen shot 2018-07-16 at 3 54 20 pm

commented

Hi @erichooi ,
Thanks for asking. I believe just a substitution of a negative b for a positive b will make the formulas equivalent.

But it is important in the results to remember that the b is negative and not positive. I'll recheck the code for this. (I'll keep this issue open until I can check it).

But the formulas are equivalent under a negative-b substitution.

commented

Just went to go fix this. I see what you mean now. The code is correct, but the formula is wrong. It's fixed in the jupyter notebook finally. I'm going to close this. Feel free to reopen if I missed something.