Question: 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
![solve using python Expected output: w = [[ 0.57327302] [-0.8933432 ]] b](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66fa3be7f24c0_36766fa3be78c217.jpg)


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
To implement gradient descent in Python well follow these steps to complete the missing parts of the ... View full answer
Get step-by-step solutions from verified subject matter experts
