Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

3. Perceptron Updates Marcar esta pgina In this problem, we will try to understand the convergence of perceptron algorithm and its relation to the ordering

image text in transcribed

3. Perceptron Updates Marcar esta pgina In this problem, we will try to understand the convergence of perceptron algorithm and its relation to the ordering of the training samples for the following simple example. Consider a set of n = d labeled d-dimensional feature vectors, {(z(t), y(t)),t = 1,...,d} defined as follows: 2) = cos(at) if i=t (3.7) 20 = 0 otherwise, (3.8) Recall the no-offset perceptron algorithm, and assume that . = 0 is treated as a mistake, regardless of label. Assume that in all of the following problems, we initialize 0 = 0 and when we refer to the perceptron algorithm we only consider the no-offset variant of it. Working out Perceptron Algorithm 3 points possible (graded) Consider the d= 2 case. Let y(1) = 1, y(2) = 1. Assume that the feature vector (1) is presented to the perceptron algorithm before x(2) For this particular assignment of labels, work out the perceptron algorithm until convergence. Let O be the resulting value after convergence. Note that for d = 2, would be a two-dimensional vector. Let's denote the first and second components of 8 by 01 and 6 2 respectively. Please enter the total number of updates made to by perceptron algorithm: Please enter the numerical value of n 1: Please enter the numerical value of 3. Perceptron Updates Marcar esta pgina In this problem, we will try to understand the convergence of perceptron algorithm and its relation to the ordering of the training samples for the following simple example. Consider a set of n = d labeled d-dimensional feature vectors, {(z(t), y(t)),t = 1,...,d} defined as follows: 2) = cos(at) if i=t (3.7) 20 = 0 otherwise, (3.8) Recall the no-offset perceptron algorithm, and assume that . = 0 is treated as a mistake, regardless of label. Assume that in all of the following problems, we initialize 0 = 0 and when we refer to the perceptron algorithm we only consider the no-offset variant of it. Working out Perceptron Algorithm 3 points possible (graded) Consider the d= 2 case. Let y(1) = 1, y(2) = 1. Assume that the feature vector (1) is presented to the perceptron algorithm before x(2) For this particular assignment of labels, work out the perceptron algorithm until convergence. Let O be the resulting value after convergence. Note that for d = 2, would be a two-dimensional vector. Let's denote the first and second components of 8 by 01 and 6 2 respectively. Please enter the total number of updates made to by perceptron algorithm: Please enter the numerical value of n 1: Please enter the numerical value of

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

Database Design And Implementation

Authors: Shouhong Wang, Hai Wang

1st Edition

1612330150, 978-1612330150

More Books

Students also viewed these Databases questions