[Coursera][Stanford] Machine Learning Week 3
来源:互联网 发布:ipad矢量图软件 编辑:程序博客网 时间:2024/06/05 03:20
时间:2014年8月12日 -- 16日
1. Logistic Regression 逻辑回归
介绍分类(classification) 的概念,S型函数,Decision Boundary,Cost Function,Optimization algorithm, Multiclassification:one-vs-all
2.Regularization 正则化
overfitting, cost function, Regularization, Normal equation, Non-invertibility
Programming Exercises 2
1 Logistic Regression
1.2 Implementation
1.2.1 Warmup exercise: sigmoid function
g = 1 ./ (1 + exp(-z));
1.2.2 Cost function and gradient
h = 1 ./ (1 + exp(- X * theta));J = - (1 / m) * ((y' * log(h)) + (1 - y)' * log(1 - h));grad = (1 / m) * X' * (h - y);
1.2.4 Evaluating logistic regression
s = sigmoid(X * theta);for i = 1:m if s(i) >= 0.5 p(i) = 1; else p(i) = 0; end end
2 Regularized logistic regression
2.3 Cost function and gradient
h = 1 ./ (1 + exp(- X * theta));J = - (1 / m) * ((y' * log(h)) + (1 - y)' * log(1 - h)) + (lambda / (2 * m)) * sum(theta(2:end) .^ 2);grad = (1 / m) * X' * (h - y) + (lambda / m) * [0;theta(2:end)];
0 0
- [Coursera][Stanford] Machine Learning Week 3
- [Coursera][Stanford] Machine Learning Week 1 2
- [Coursera][Stanford] Machine Learning Week 4
- [Coursera][Stanford] Machine Learning Week 5
- Machine Learning Stanford (week 3)
- Coursera Machine Learning Note - Week 3
- Machine Learning Stanford (week 1)
- Machine Learning Stanford (week 2)
- Machine Learning - Andrew Ng on Coursera (Week 3)
- Coursera Machine Learning Week 3 - Programming Exercise 2: Logistic Regression
- Machine Learning- Coursera - Stanford - Programming Exercises
- Stanford Machine Learning 学习笔记(Week 2)
- Coursera Machine Learning Week 1.1: Introduction
- Coursera Machine Learning Week 3.1: Logistic Regression
- Coursera Machine Learning Week 3.2: Regularization
- Coursera Machine Learning Week 8.1: Clustering
- coursera Machine Learning Week 1学习笔记
- Coursera Machine Learning Note - Week 1
- Java线程(一):线程安全与不安全
- TextView显示系统时间(秒针变化)
- ios与js交互,获取webview完整url,title,获取元素并赋值跳转
- 『IOS』ios nil、NULL和NSNull 的使用
- 指针函数与函数指针的区别
- [Coursera][Stanford] Machine Learning Week 3
- POJ 2186 Popular Cows(强连通分量)
- 仔细确认当前this对象是否是你所想指定的元素
- PHP中$_SERVER['HTTP_REFERER']的反盗链使用
- 二分图的简单介绍及相关题目
- ssh整合系列博客——(2)spring和hibernate整合的异常解决
- Could not execute JDBC batch update
- 常见图片格式简单分析总结--JPG、PNG、GIF、BMP
- SecureCRT常用命令