sign函数(符号函数) 在logistic回归中,利用sigmoid函数实现,当x>0,y=1;当x<0时,y=0; σ(x)=11+ex\sigma(x) = \frac{1}{1+e^x}σ(x)=