Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

solve using python Expected output: w = [[ 0.57327302] [-0.8933432 ]] b = 0.05089921193049401 lask 4. Implement gradient descent. 2 points In GD function, call

solve using python

image text in transcribed

image text in transcribed

image text in transcribed

Expected output:

w = [[ 0.57327302] [-0.8933432 ]] b = 0.05089921193049401

lask 4. Implement gradient descent. 2 points In GD function, call function for times. Within each iterationl, parameters w and b are updated. The final parameters and a list of cost values are returned. Hint: parameters are updated by w=wdw and b=bdb \#\#\#\# DO NOT CHANGE THE CODE BELOW \#\#\#\# \# Evaluate Task 4 params, costs = GD (X,Y,W,b, num_iters=1000, alpha=0.01) print('w ={}. format (params[' ])) print('b ={} '.format (params['b']))

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

Essential SQLAlchemy Mapping Python To Databases

Authors: Myers, Jason Myers

2nd Edition

1491916567, 9781491916568

More Books

Students also viewed these Databases questions

Question

Which of the following is TRUE about tuples and lists?

Answered: 1 week ago