pfcor

squaredErrorCost

May 28th, 2017
8,611
0
Never
2
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