逻辑回归by bgd and sgd