had to shift all to python 3. Tried to check out your code. Changed a few minor things but the process seems to work fine now. Check it out.
Currently working on folder Second. Use gendata.py and genmodel.py to create the model and the data. Both are created randomly Then run train.py to train the model on the given data Set After training, you can use predict.py to visualize the prediction made by the network, and well as to see the plot of the cost function