I am not geeting the correct values of w and b. There is an "error" in the error function as it states lnvalid values encountered in double scalar. I am not able to debug it,pls help
Hey,
I have made some changes in your code and commented where ever i found mistake.
Try this code : https://ide.codingblocks.com/s/144448
Thanks