Question: Problem 1 : Perceptron Learning ( 1 5 marks ) The dataset lab 0 2 _ dataset _ 1 . csv has a 3 -

Problem 1: Perceptron Learning (15 marks)
The dataset lab02_dataset_1.csv has a 3-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 my_perceptron() which applies perceptron algorithm on the
dataset to create a linear separator. my_perceptron() should return a 3-dimensional
weight vector which can be used to create the linear separator. Use a classification
threshold of 99% i.e., my_perceptron() will terminate once the misclassification
rate is less than 1%.(10 marks)
Create a 3D plot which showcases the dataset in a 3D-space alongwith the linear
separator you obtained from my_perceptron(). Use two different colors to represent
the data points belonging in the two classes for ease of viewing. (5 marks)
 Problem 1: Perceptron Learning (15 marks) The dataset lab02_dataset_1.csv has a

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!