Ng机器学习 Week8 Unsupervised Learning
来源:互联网 发布:守护进程 windows 编辑:程序博客网 时间:2024/06/05 06:18
Clustering
Principal Component Analysis
Q2选2。。。手滑
Quiz
findClosestCentroids.m
temp = zeros(K,1); for i = 1:size(X,1) for j = 1:K temp(j) = sum((X(i,:) - centroids(j,:)).^2); end [value,idx(i)] = min(temp,[],1); end
computeCentroids.m
for i = 1:K centroids(i,:) = (X' * (idx == i)) / sum(idx == i); %X' * (idx == i) To add x in same center end
kMeansInitCentroids.m
% Randomly reorder the indices of examplesrandidx = randperm(size(X, 1));% Take the first K examples as centroidscentroids = X(randidx(1:K), :);
pca.m
sigma = X' * X / m; % compute the covariance matrix[U,S,V] = svd(sigma); % SVD
projectData.m
Z = X * U(:,1:K);
recoverData.m
X_rec = Z * U(:,1:K)';
0 0
- Ng机器学习 Week8 Unsupervised Learning
- Andrew Ng机器学习week8(Unsupervised Learning)编程习题
- NG week8 unsupervised learning
- Stanford 机器学习笔记 Week8 Unsupervised Learning
- 机器学习 6 unsupervised learning
- Ng 机器学习week8编程练习
- Andrew Ng机器学习课程笔记--week8
- 【Stanford机器学习笔记】11-Unsupervised Learning
- Andrew NG 机器学习 笔记-week8-聚类(Clustering)
- [机器学习02]supervised learning and unsupervised learning
- Andrew Ng 《Machine Learning》第一讲——Supervised Learning & Unsupervised Learning 学习笔记
- Coursera机器学习-第八周-Unsupervised Learning(K-Means)
- 李宏毅机器学习课程笔记5:Unsupervised Learning
- 李宏毅机器学习课程笔记6:Unsupervised Learning
- Andrew Ng机器学习笔记week8 无监督学习(聚类、PCA)
- 【机器学习】Machine Learning by Andrew Ng
- NG机器学习week5 Neural Networks: Learning
- 机器学习之无监督特征学习——Unsupervised feature learning and deep learning
- R语言-数据处理包 dplyr
- NDK工具使用,JNI开发
- C++中的虚函数详解
- IOS开发中WebView加载资源路径问题
- RxBus事件总线的实现
- Ng机器学习 Week8 Unsupervised Learning
- python opencv3 安装
- HBase 0.98 分布式集群安装详解
- 判断合法标识符
- ssh框架
- 鉴别图像中含有给定颜色的所有像素
- 3.6使用带头结点的循环链表链表表示队列
- leetcode 112 Path Sum
- 在windows上部署Redis系统服务