結果 : implement logistic regression in python code