Drawing boundary line for PLA
Hello,
This is not exactly related to HW(which I have submitted). I want to visually observe how boundary line changes after each iteration i.e I want to know how to draw a boundary line after each iteration of PLA. Initial or actual boundary line (rep target function) is known to me since it is selected as two random points and I can draw the line. One iteration gives me a new weight vector , so how do I relate this to boundary line. Thanks and I apologize for any wrong use terminologies. 
Re: Drawing boundary line for PLA
Since we use the sign function, I presume the decision boundary is
g(x) = w'x = 0 (including the bias w_0) One strategy could be to generate values on the grid [1,1] x [1,1], and plot where g evaluates to 0. But that is costly for each iteration. Hopefully there is a better approach. 
Re: Drawing boundary line for PLA

Re: Drawing boundary line for PLA
Thanks JohnH and rainbow.

All times are GMT 7. The time now is 06:44 PM. 
Powered by vBulletin® Version 3.8.3
Copyright ©2000  2019, Jelsoft Enterprises Ltd.
The contents of this forum are to be used ONLY by readers of the Learning From Data book by Yaser S. AbuMostafa, Malik MagdonIsmail, and HsuanTien Lin, and participants in the Learning From Data MOOC by Yaser S. AbuMostafa. No part of these contents is to be communicated or made accessible to ANY other person or entity.