Skip to content

Instantly share code, notes, and snippets.

@Rem4rkable
Last active September 30, 2020 14:28
Show Gist options
  • Save Rem4rkable/6246ca565dc312008c3c401689f889a8 to your computer and use it in GitHub Desktop.
Save Rem4rkable/6246ca565dc312008c3c401689f889a8 to your computer and use it in GitHub Desktop.
function [jVal, gradient] = costFunction(theta)
jVal = [...code to compute J(theta)...];
gradient = [...code to compute derivative of J(theta)...];
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment