首页 > 其他 > 详细

为什么逻辑回归是线性分类器?【转载】

时间:2019-01-19 13:41:18      阅读:574      评论:0      收藏:0      [点我收藏+]

转自:https://stats.stackexchange.com/questions/93569/why-is-logistic-regression-a-linear-classifier

1.提问

Since we are using the logistic function to transform a linear combination of the input into a non-linear output, how can logistic regression be considered a linear classifier?

Linear regression is just like a neural network without the hidden layer, so why are neural networks considered non-linear classifiers and logistic regression is linear?

2.回答

技术分享图片

因为逻辑回归的函数中,μ可以写为x的线性函数。而神经网络不能写为自变量x的线性函数。

并且关于决策边界:

技术分享图片

=0.5是一个决策边界,sigmoid函数值>0.5是被预测为正类(假设阈值设置为0.5),<0.5被预测为负类。

那么此时关于x的函数即是Θ*x=0.<-决策边界。

为什么逻辑回归是线性分类器?【转载】

原文:https://www.cnblogs.com/BlueBlueSea/p/10291443.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!