当前位置:网站首页>李宏毅2020机器学习--P11 Logistic Regression
李宏毅2020机器学习--P11 Logistic Regression
2022-07-20 05:32:00 【snowflier】
Review of classification
Step 1 function set
Step 2:Goodeness of function
假定从一组后验概率中产生training data,某一组w和b产生一组N个training data的概率
则最有可能的w和b,就是最大的L,即
将确定最大转换为求最小,即
取Ln可以简化计算,在数学求极值中经常见到,此时会将乘法变为加法
y hat表示正确分类的结论,1对应class 1 0对应class 2
代入上式
交叉熵代表两个分布有多接近
比较两种regression,如下
Find the best function
用loss function对w和对b的偏微分
同理处理第二项
对w的偏微分为
在更新该参数的时候:
和三个参数有关,xi是样本,绿色下划线表示目标和现在的model的output的差距,学习率
larger difference, large update
Limitation of Logistic Regression
诸如这样的样本,通过logistic得到的boundary是一条直线,所以很难分出两个类别。
解决问题的方法:Feature Transformation,借助于机器去进行变换的方法是 cascading logistic regression models
将原来的特征平面映射到另一个特征平面,这里的调整w和b,方便用一个boundary区分不同类
边栏推荐
猜你喜欢
Flink 分流之 Filter/Split/SideOutPut 比较
Tips for using Visual Studio shortcut keys
(六)PyTorch深度学习:Logistic回归(多层多维特征输入)
Centos8(linux)安装mysql8.0.28
使用 poi 导入导出
虚拟DOM,和实际的DOM有何不同?
阿里矢量图库 当前页全选
数仓基本概述
Knapsack problem (01 knapsack / full knapsack explanation)
JS event flow (capture phase, target phase, bubble phase) cancels the default bubble behavior of the browser
随机推荐
[dish of learning notes dog learning C] chain access, function declaration and definition, goto statement
05—— mvvm 模型
Introduction to microservice theory
达梦dem部署
Flink 水位线(Watermark)
Los Angeles: t226229 arithmetic series
数据生成器 -支持多种类型
Spark SQL 案例(一)
[dish of learning notes dog learning C] initial level of structure
mysql_主从同步_show slave status详解
dm_svc.conf配置
nvm安装使用
阿里矢量图库 当前页全选
(the 13th Blue Bridge Cup) test question a: Nine decimal to decimal
Flink DataStream API (一)执行环境
A. Log Chopping
Select all on the current page of Ali vector Gallery
[dish of learning notes dog learning C] initial level of pointer
mysql_不区分大小写
Redis事务