Answered step by step
Verified Expert Solution
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
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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started