Skip to content

Instantly share code, notes, and snippets.

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