結果 : how to implement batch gradient descent in python