- 博客(4)
- 收藏
- 关注
转载 softmax交叉熵损失函数求导
softmax 函数softmax(柔性最大值)函数,一般在神经网络中, softmax可以作为分类任务的输出层。其实可以认为softmax输出的是几个类别选择的概率,比如我有一个分类任务,要分为三个类,softmax函数可以根据它们相对的大小,输出三个类别选取的概率,并且概率和为1。softmax函数的公式是这种形式:则对于损失函数计算成本的梯度 ...
2019-06-15 10:13:00
326
原创 奇异值分解
类似于特征分解,我们可以重新将 A 写作A = Vdiag(λ)奇异值分解是类似的,只不过这回我们将矩阵 A 分解成三个矩阵的乘积:A = UD假设 A 是一个 m×n 的矩阵,那么 U 是一个 m×m 的矩阵,D 是一个 m×n的矩阵,V 是一个 n × n 矩阵,矩阵 U 和 V 都定义为正交矩阵,而矩阵 D 定义为对角矩阵。注意,矩阵 D 不一定是方阵对角矩阵 D 对角...
2019-06-14 22:12:18
96
原创 PAT 1028. List Sorting (25)
Excel can sort records according to any column. Now you are supposed to imitate this function.InputEach input file contains one test case. For each case, the first line contains two integers N (<=1...
2018-03-20 13:11:22
85
原创 PAT 1017. Queueing at Bank (25)
Suppose a bank has K windows open for service. There is a yellow line in front of the windows which devides the waiting area into two parts. All the customers have to wait in line behind the yellow li...
2018-03-19 14:17:05
206
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人