Skip to content

Instantly share code, notes, and snippets.

@cssd1983
cssd1983 / sigmoidGraph.py
Created May 11, 2018 14:16 — forked from Will-777/sigmoidGraph.py
simple sigmoid function with Python
#import section
from matplotlib import pylab
import pylab as plt
import numpy as np
#sigmoid = lambda x: 1 / (1 + np.exp(-x))
def sigmoid(x):
return (1 / (1 + np.exp(-x)))
mySamples = []