結果 : average cost from cost function