Advertisement
pfcor

squaredErrorCost

May 28th, 2017
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Octave 0.08 KB | None | 0 0
  1. function cost = squaredErrorCost(A, b, x)
  2.     cost = (norm(A*x - b))^2;
  3. end;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement