Question: The obtained parameters when fitting the linear SVM to the 2D synthetic dataset found in toy-data.npz approximately correspond to w = 0.4528 0.5190 and =
The obtained parameters when fitting the linear SVM to the 2D synthetic dataset found in toy-data.npz approximately correspond to w = 0.4528 0.5190 and = 0.1471. (6) Using only matplotlib basic plotting functions, produce a plot of the data points, the decision boundary, the margins, defined as {x R 2 : w x + = 1}. Clearly indicate the points in your plot that are support vectors. Hint: You can use the functions in the code snippet below, which plot the data points and decision boundary but not the margins
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
