UFLDL Exercise:Softmax Regression
来源:互联网 发布:淘宝网家居拖鞋 编辑:程序博客网 时间:2024/05/20 20:02
1. result
Gradient checking: 7.4115e-010
Accuracy: 92.640%
2. code
softmaxCost
%hypothesisM = theta * data;M = exp(bsxfun(@minus, M, max(M)));M = bsxfun(@rdivide, M, sum(M));%costcost = -sum(sum(groundTruth .* log(M))) / size(data, 2);cost = cost + 0.5 * lambda * sum(sum(theta .* theta));%gradthetagrad = -(groundTruth - M) * data' / size(data, 2)';thetagrad = thetagrad + lambda * theta;
softmaxPredict
M = theta * data;[M, pred] = max(M);
0 0
- UFLDL Exercise:Softmax Regression
- UFLDL Exercise:Softmax Regression
- UFLDL Exercise:Softmax Regression
- UFLDL Exercise: Softmax Regression
- UFLDL教程:Exercise:Softmax Regression
- Ufldl Exercise:Softmax Regression Softmax回归练习
- Stanford UFLDL教程 Exercise:Softmax Regression
- UFLDL教程答案(4):Exercise:Softmax Regression
- UFLDL教程Exercise答案(4):Softmax Regression
- UFLDL——Exercise: Softmax Regression (softmax回归)
- 【UFLDL-exercise5-Softmax Regression】
- UFLDL 08 Softmax Regression
- UFLDL Softmax Regression 推导
- UFLDL Tutorial-Softmax Regression
- Exercise:Softmax Regression 代码示例
- UFLDL练习(PCA and Whitening && Softmax Regression)
- UFLDL学习笔记3(Softmax Regression)
- ufldl学习笔记与编程作业:Softmax Regression(vectorization加速)
- [LINUX]OPENSUSE登录界面密码
- sun.misc.BASE64Encoder找不到jar包的解决方法
- Android通过URL查看图片
- C++ 运算符重载的注意点
- .net开发
- UFLDL Exercise:Softmax Regression
- 用Jquery写的hover时的Tip提示
- iOS网络篇---使用NSSession 实现post和get发送和接收,并实现字典的发送
- 深入理解javascript之闭包
- 实时计算在点评(转载)
- Spring IO 平台介绍
- 第一次发博客,新手初试啊,题目如下:有两个10个元素的数组,分别为A和B,编程实现相同位置的元素, 如果 B 的元素小于 A 的元素进行数值交换:(使用回调函数实现)
- GD库函数学习【笔记】
- vs2010修改包含目录,库目录以及依赖库