Skip to content

Instantly share code, notes, and snippets.

@Mizzlr
Created June 29, 2016 10:56
Show Gist options
  • Save Mizzlr/0dfd22ee2b89099150827ae1a38fb902 to your computer and use it in GitHub Desktop.
Save Mizzlr/0dfd22ee2b89099150827ae1a38fb902 to your computer and use it in GitHub Desktop.
function g = sigmoidGradient(z)
g1 = 1 ./ (1 + exp(-z));
g = g1 .* (1 - g1);
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment