import your data set and define the sigmoid function in python code example Example: python sigmoid function def sigmoid(x): return 1 / (1 + numpy.exp(-x))