5:Logistic regression
- step1
- step2.goodness of function
可以最大化L的w和b最佳
转为求最小化-LnL(w,b)
属于class1的标1,class2的标0
cross entropy 算两个distribution有多接近
最终是要使cross entropy最小则function最佳(target与output越接近越好)
- 区别
- step3:find the best function
- 比较:一样,除了logistic里给的只可以0或1而linear是任意值
logistic 为什么不能加square error