結果 : logistic regression cost function python code