Skip to content

Instantly share code, notes, and snippets.

@mempirate
Created March 27, 2018 14:39
Show Gist options
  • Save mempirate/3496114264a2583e5f66d1e83fe5ff1d to your computer and use it in GitHub Desktop.
Save mempirate/3496114264a2583e5f66d1e83fe5ff1d to your computer and use it in GitHub Desktop.
import numpy as np
def sigmoid(x):
return 1 / (1 + np.exp(-x))
def sigmoid_derivative(x):
return x * (x - 1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment