Hi
instructor has written command for y prediction as y_=T1[i] * X + T0 but I think it should be y_=T1[i] * X + T0[i] .Because in each iteration we need to use theta1 and theta2’s single value. Please explain.
Thank You
Hi
instructor has written command for y prediction as y_=T1[i] * X + T0 but I think it should be y_=T1[i] * X + T0[i] .Because in each iteration we need to use theta1 and theta2’s single value. Please explain.
Thank You
hey @pasta ,
you are actually right it should be y_=T1[i] * X + T0[i] correctly. The actual one is also correct as they both are creating the same plots , the first one works correctly because the matplotlib module is taking the respective first value only for plotting , if you try to plot its shape it will be ( 3750,100 ) but matplotlib takes the first value and plots it. Hence you get the correct plot.
I hope this would have resolved your doubt.
Thank You and Happy Learning .
please check my messages in chat
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.