Tag: Classification
D2L-13-Softmax_Regression
D2L-13-Softmax_Regression
Softmax 回归 2022-02-11 Tags: #SoftmaxRegression #MachineLearning #Classification #MulticlassClassification Softmax回归解决的是多分类问题, 它可以看作是二分类的Logistic_Regression.md)的推广. Softmax函数 Softmax回归 Softmax回归就是在线性回归的基础上套上一个Softmax函数, 取输出结果中概率最大的项作为预测结果. 交叉熵作为损失函数 D2L-14-Cross Entropy as Loss Softmax and Argmax 不像Softmax输出K个概率值, Argmax函数直接将输入向量里面最大的元素设置为1, 其他均置为0. Argmax常常用于输出预测结果, 但是Argmax有个很严重的缺点: 它的结果没法用于反向传播优化参数: (因为它要么不可导要么导数为0) 解释:...
Relation_between_Softmax_and_Logistic_Regression
Relation_between_Softmax_and_Logistic_Regression
Softmax 与 Logistic 回归的联系 2022-02-11 Tags: #SoftmaxRegression #LogisticRegression #Classification #MulticlassClassification Ref: Unsupervised Feature Learning and Deep Learning Tutorial 二分类的Softmax回归形式如下: $$h_{\theta}(x)=\frac{1}{\exp \left(\theta^{(1) \top}...