知识卡片
逻辑回归的概率与阈值
二分类逻辑回归先算线性分数 z,再用 σ(z)=1/(1+exp(−z)) 得到正类概率 p。p=0.5 对应 z=0,改变阈值会移动原空间的线性判别边界。系数描述特征每增加一个单位时对数几率 log[p/(1−p)] 的增量,其他特征固定时该特征的几率乘以 exp(系数)。L1 可压零部分系数,L2 主要抑制系数过大。阈值应结合[[排序曲线与阈值取舍]]选择。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- Supervised Learning: Classification · 查看原书依据
The logistic function has an S-shaped curve and ensures that predicted probabilities are always between 0 and 1. Logistic regression models use this function to predict the probability that a given input belongs to one of two classes (0 or 1). The threshold for
参考来源
- 位置:《Simplified Machine Learning: The Essential Building Blocks for Machine Learning Expertise》第 04 章《Supervised Learning: Classification》(`extracted/Simplified Machine Learningː The Essential Building Blocks for Machine Learning Expertise/_epub-src/OPS/ch04.xhtml`,book-source 项目,正文索引第 63 段)
- 结论依据:原文把 sigmoid 的 S 形映射、0.5 判定与概率输出连在一起,邻文解释对数几率、系数和正则化。
- 原始内容:The logistic function has an S-shaped curve and ensures that predicted probabilities are always between 0 and 1. Logistic regression models use this function to predict the probability that a given input belongs to one of two classes (0 or 1). The threshold for