In [9]:
# the last values in w1_list, w1_list and b_list are optimal solutions
w1_final = w1_list[-1]
w2_final = w2_list[-1]
b_final = b_list[-1]
print('w1 from log.reg: %f' %(w1_final))
print('w2 from log.reg: %f' %(w2_final))
print('b from log.reg: %f' %(b_final))
w1 from log.reg: -2.882705
w2 from log.reg: -3.150111
b from log.reg: -12.158909