NN_learning is ok

costFunction include the algorithm Fp and Bp , and learned to use
scipy.optimize(fmin_bfgs can't be used for NN because it will get a
memory error,之前不会用optimize这个系列的函数，今天学会了) here I use fmin_cg.