Advertisement
Guest User

Untitled

a guest
Dec 20th, 2014
181
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.36 KB | None | 0 0
  1.     # Does crazy shit. Before changing, really think through
  2.     # the Linear Algebra and make sure the matrix operations
  3.     # work correctly.
  4.     for n in range(num_iters):
  5.         diff = hypothesis(X, theta) - y
  6.         theta = theat - alpha / float(m_examples) * diff[np.newaxis,:].dot(X)     # Computes the derivative of the compute_cost function
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement