Skip to content

Instantly share code, notes, and snippets.

@victor-iyi
Created November 12, 2017 20:28
Show Gist options
  • Select an option

  • Save victor-iyi/458db43503a2404187950e19f5717a72 to your computer and use it in GitHub Desktop.

Select an option

Save victor-iyi/458db43503a2404187950e19f5717a72 to your computer and use it in GitHub Desktop.
Neural Network Basics: Part One (Sigmoid function)
def sigmoid(Z, prime=False):
if prime:
return Z * (1 - Z)
return 1 / (1 + np.exp(-Z))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment