Question: 4 . ( 2 0 pts ) Let s use an artificial data set to understand the PLA. A . Generate a linearly separable 2
pts Lets use an artificial data set to understand the PLA.
A Generate a linearly separable D data set of size Plot the examples points bluered based on their
classification and the target function f Be sure to add labels to the axes of the plot.
B Run the PLA on the dataset in A Report the number of updates before the algorithm converges. Plot
the final hypothesis g and f in the same figure. Describe what you see and if the result g is close to f
C Repeat AB with another randomly generated data set of size Compare your results with B
D Run PLA on a nonlinearly separable dataset with points. Again, do steps similar to AB Decide on
an error to use. Plot the error at each iteration. Run for iterations. What error metric did you use and
why? Given the plot how would you modify the algorithm to work for nonlinearly separable datasets?
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
