Python 3.X Libraries Required: numpy,matplotlib.pyplot The dataset Before training: After training: Sigmoid function: