Question: Problem 1 : Perceptron Learning ( 1 5 marks ) The dataset lab 0 2 _ dataset _ 1 . csv has a 3 -
Problem : Perceptron Learning marks
The dataset labdatasetcsv has a dimensional input space and a class label of
Positive and Negative. For this task, you are not allowed to use any functionalities of the
sklearn module.
Write a function myperceptron which applies perceptron algorithm on the
dataset to create a linear separator. myperceptron should return a dimensional
weight vector which can be used to create the linear separator. Use a classification
threshold of ie myperceptron will terminate once the misclassification
rate is less than marks
Create a D plot which showcases the dataset in a Dspace alongwith the linear
separator you obtained from myperceptron Use two different colors to represent
the data points belonging in the two classes for ease of viewing. marks
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
