Question for the instructor
My "ML0101EN-Reg-Polynomial-Regression-Co2-py-v1" exercise equation is:
yy = clf3.intercept[0]+ clf3.coef[0][1]XX+ clf3.coef_[0][2]np.power(XX, 2)+ clf3.coef_[0][3]*np.power(XX, 3)
The instructor's is:
yy = clf3.intercept[0]+ clf3.coef[0][1]XX + clf3.coef_[0][2]np.power(XX, 2) + clf3.coef_[0][2]*np.power(XX, 3)
Note especially "clf3.coef_[0][2]*np.power(XX, 3)" is this correct?
1
vote

-
Tom, the correct one is "clf3.coef_[0][2]*np.power(XX, 3)". I just fixed it