Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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)
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Spomenik Monument Database

Authors: Donald Niebyl, FUEL, Damon Murray, Stephen Sorrell

1st Edition

0995745536, 978-0995745537

More Books

Students also viewed these Databases questions