寂寞鸭子

文章
4
资源
0
加入时间
3年1月15天

使用pytorch实现逻辑回归

逻辑回归原理公式y^=σ(wTx+b),where σ=11+e−x , w,x∈Rd\Large \hat{y}=\sigma(w^{T}x+b),where \, \sigma=\frac{1}{1+e^{-x}}\,,\,w,x \in R^{d}y^​=σ(wTx+b),whereσ=1+e−x1​,w,x∈RdP(target=1∣xi)=yi^\large P(target=1|x_i)=\hat{y_i}P(target=1∣xi​)=yi​^​P(target=0∣xi)=1