Question: Implement SVM and Perceptrons from Scratch (5 points) Use the simple dataset (using makeblobs function) that we used in the SVM demo (https://colab.research.google.com/drive/1z368aCHvKDy92E0dJXtQnTFgF301HOWo). Implement the

Implement SVM and Perceptrons from Scratch (5 points) Use the simple dataset (using makeblobs function) that we used in the SVM demo (https://colab.research.google.com/drive/1z368aCHvKDy92E0dJXtQnTFgF301HOWo). Implement the Perceptron Loss and Hinge Loss functions. Next, implement a simple subgradient descent algorithm and optimize the perceptron and hinge losses. Compare the solutions obtained by the two
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
