Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Below you can see the first 3 data points of the data set, all labeled as 'setosa'. Let's set the numerical value for 'setosa'

Below you can see the first 3 data points of the data set, all labeled as 'setosa'. Let's set the numerical

Below you can see the first 3 data points of the data set, all labeled as 'setosa'. Let's set the numerical value for 'setosa' to 1. (i.e. y = 1). [ ]X[0:3] array([[5.1, 1.4), [4.9, 1.4], [4.7, 1.3]]) Suppose the initial weights of the logistic neuron are w0 = 0.1,w1 = -0.2, w2 = 0.1. Q1-1. Write the weights after processing data points 0,1,2, with learning rate n = 0.1 and show your calculations. This is similar to the previous assignment, only done now for the logistic neuron. You can also use LogisticRegressionGD to check your calculations. Q1-2. Given our data X, let Xd-2 and Xd-3 be the quadratic and cubic features. Using code for polynomial regression from the Regression Code Notebook, generate X d-2 and Xd=3. Q1-3. Using LogisticRegressionGD, fit X, Xd-2 and Xd-3. Here you should set n 0.0001 and niter Z 10000. For each of these three cases, report the loss function value for the model computed by LogisticRegressionGD. (What happens if n is chosen too large or too small?) Here, for a fixed choice of n and niter, it is expected that the loss value decreases as d increases. [ ] # your calculations and code go here

Step by Step Solution

There are 3 Steps involved in it

Step: 1

Q11 Step 1 Define the initial weights w0 01 w1 02 w2 01 Step 2 For data point 0 X 51 14 y 1 Step 3 Calculate z z w0 1 w1 X1 w2 X2 w0 w1 51 w214 01 02 ... 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

Financial Reporting Financial Statement Analysis And Valuation A Strategic Perspective

Authors: James M. Wahlen, Stephen P. Baginski, Mark Bradshaw

9th Edition

1337614689, 1337614688, 9781337668262, 978-1337614689

More Books

Students also viewed these Programming questions