Deep Learning3: Softmax Regression

it2022-05-09  29

Softmax就是依概率预测分类标签

训练集 标签 

此时,cost function为

若标签设定

 is the indicator function, so that 1{a true statement} = 1, and 1{a false statement} = 0

此时,cost function为

 

对于softmax来说,设定indicator function为

梯度如下

迭代如下

cost function上加入weight decay term得

此时梯度为

 

转载于:https://www.cnblogs.com/learnmuch/p/5957173.html

相关资源:数据结构—成绩单生成器

最新回复(0)