結果 : cost function in machine learning python