結果 : how to implement sigmoid function in python