""" ----------------------------------------------------------------------- Some helper functions. ----------------------------------------------------------------------- """ import math def sigmoid(x): return 1 / (1 + math.exp(-x))