Algorithm: Logistic Regression and Gradient Descent

本文深入探讨了机器学习中的基础模型——逻辑回归。从二分类问题出发,介绍了逻辑回归作为基准模型的重要性。通过sigmoid函数将线性回归映射到(0,1)区间,并解释了决策边界、损失函数以及最大似然估计。文章详细阐述了梯度下降法在优化模型参数中的应用,包括学习率的影响以及如何判断收敛。最后,对比了梯度下降、随机梯度下降和小批量梯度下降的优缺点,并简要提及了多元逻辑回归和Softmax回归。" 114267975,8407292,一元随机变量分布详解:伯努利、二项分布与泊松分布,"['概率论', '统计学', '随机过程', '数据分析', '数学模型']
摘要由CSDN通过智能技术生成

The most classic model in machine learning : Logistic Regression.

Some problems for two class classify

Logistic Regression is a base line for classify problem

When we design a model for machine learning system,at first we create a simple model which is used for the base line and then we optimize the model which will compare with the base line.

A classify problem:

for condition probabiliy: define P(y|x) we need to calculate p(y = 1 |x) and p(y = 0 |x).

For a sample data if p(y = 1 |x) > p(y = 0 |x), we can classify the sample to category '1' ,otherwise '0'.

Mapping the linear regression model W.Tx + b into the domain(0,1), sigmoid function:

 

An example:

the condition probability is :

Summary:

Proof for the logistic regression model is an linear model.

decision boundary

 

The loss function for logistic regression:

Maximum Likelihood : for the logistic regression model, there are two parameter as w and b(intercept)

We investigate the input sample data and estimate the maximum of the conditon probability related to the parameters , and maxize this probability to derive the best parameters for the model.

Maximum likelihood estimation:

  • 1
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值