numpy code in lesson 7

Post Reply
Sebastian
Posts: 1
Joined: Sat Jun 01, 2019 5:14 pm

numpy code in lesson 7

Post by Sebastian » Sat Jun 01, 2019 5:19 pm

Am I correct that the Python code in https://deeplearningcourses.com/lectures/9475 for the updated version https://deeplearningcourses.com/lectures/9473 should be:
denominator = X.dot(X).mean() - np.square(X.mean())
a = (np.mean(X.dot(Y)) - X.mean()*Y.mean())/denominator
b = (X.dot(X).mean() - X.mean()*X.dot(Y).mean())/denominator
:)

lazyprogrammer
Site Admin
Posts: 12
Joined: Sat Jul 28, 2018 3:46 am

Re: numpy code in lesson 7

Post by lazyprogrammer » Tue Jun 04, 2019 6:41 pm

Check out the subsequent quiz

Post Reply

Return to “Deep Learning Prerequisites: Linear Regression in Python”