当前位置: 首页 > news >正文

新增域名网站建设方案网站底部备案代码

新增域名网站建设方案,网站底部备案代码,万网网站加速,2018做网站还赚钱吗二维数据的白化处理 这篇博客实现起来比较简单#xff0c;首先先去下载pca_2d.zip#xff0c;然后打开pca_2d.m改代码#xff0c;具体代码见下面close all%%%% Step 0: Load data% We have provided the code to load data from pcaData.txt into x.% x is a 2 * 45 matri…二维数据的白化处理 这篇博客实现起来比较简单首先先去下载pca_2d.zip然后打开pca_2d.m改代码具体代码见下面close all %% %% Step 0: Load data %  We have provided the code to load data from pcaData.txt into x. %  x is a 2 * 45 matrix, where the kth column x(:,k) corresponds to %  the kth data point.Here we provide the code to load natural image data into x. %  You do not need to change the code below. %从txt文件里面加载数据并画出原始数据散点图 x load(pcaData.txt,-ascii); figure(1); scatter(x(1, :), x(2, :)); title(Raw data); %% %% Step 1a: Implement PCA to obtain U  %  Implement PCA to obtain the rotation matrix U, which is the eigenbasis %  sigma.  % -------------------- YOUR CODE HERE --------------------  %得到特征向量,u是特征向量,s是特征值,v是u u zeros(size(x, 1)); % You need to compute this [u,s,v]svd(x); % --------------------------------------------------------  hold on plot([0 u(1,1)], [0 u(2,1)]); plot([0 u(1,2)], [0 u(2,2)]); scatter(x(1, :), x(2, :)); hold off %% %% Step 1b: Compute xRot, the projection on to the eigenbasis %  Now, compute xRot by projecting the data on to the basis defined %  by U. Visualize the points by performing a scatter plot. % -------------------- YOUR CODE HERE --------------------  %计算出xRot xRot zeros(size(x)); % You need to compute this xRotu*x; % --------------------------------------------------------  % Visualise the covariance matrix. You should see a line across the % diagonal against a blue background. figure(2); scatter(xRot(1, :), xRot(2, :)); title(xRot); %% %% Step 2: Reduce the number of dimensions from 2 to 1.  %  Compute xRot again (this time projecting to 1 dimension). %  Then, compute xHat by projecting the xRot back onto the original axes  %  to see the effect of dimension reduction % -------------------- YOUR CODE HERE --------------------  %得到xHat去除第二维向量 k 1; % Use k 1 and project the data onto the first eigenbasis xHat zeros(size(x)); % You need to compute this xHat(1:k,:)xRot(1:k,:); xHatu*xHat; % --------------------------------------------------------  figure(3); scatter(xHat(1, :), xHat(2, :)); title(xHat); %% %% Step 3: PCA Whitening %  Complute xPCAWhite and plot the results. %PCA白化处理,使用epsilon是为了正则化 epsilon 1e-5; % -------------------- YOUR CODE HERE --------------------  xPCAWhite zeros(size(x)); % You need to compute this xPCAWhite diag(1./sqrt(diag(s)epsilon))*xRot; % --------------------------------------------------------  figure(4); scatter(xPCAWhite(1, :), xPCAWhite(2, :)); title(xPCAWhite); %% %% Step 3: ZCA Whitening %  Complute xZCAWhite and plot the results. %ZCA处理使得结果更接近原始数据 % -------------------- YOUR CODE HERE --------------------  xZCAWhite zeros(size(x)); % You need to compute this xZCAWhite u*xPCAWhite; % --------------------------------------------------------  figure(5); scatter(xZCAWhite(1, :), xZCAWhite(2, :)); title(xZCAWhite); %% Congratulations! When you have reached this point, you are done! %  You can now move onto the next PCA exercise. :) 最终你会看到6张图片
http://www.huolong8.cn/news/297635/

相关文章:

  • 潘家园做网站的公司wordpress技术文章
  • 网站开发海口泰州市高港区建设局网站
  • 爱做的小说网站seo优化网站建设公司
  • 晋城市建设局网站网站图片优化
  • 网站建设的公司做销售内蒙古网络自学网站建设
  • 无锡建网站企业优质的网站建设案例
  • 手机苗木网站源码临海大经建设集团网站
  • 网站设计对网站搜索引擎友好性的影响六安网约车
  • 申请网站免费一旦开战最危险的城市
  • 建设银行网站会员怎么注册wordpress设置视频图片不显示图片
  • 网站上传该怎么做网页版微信二维码几分钟失效
  • 网站备案名称几个字电商设计模板
  • 高端网站设计高端网站制作网站的整体规划怎么写
  • 为什么做街舞网站软件开发模型不包括
  • 自己建立网站后怎么做淘客正规品牌网站设计品牌
  • 浙江品牌网站建设百度域名解析
  • 扬州市住房和城乡建设网站可以做商品砍价的网站
  • 全球排名前十网站网络营销的八大职能
  • 电影网站vps服务器如何申请域名注册
  • 网站动画效果怎么做的哪家装修公司比较好的
  • 提供网站建设备案管理咨询公司项目运作流程
  • app网站建设软件饭店营销方案怎样快速引客
  • 做婚介网站可行性报告模板海北公司网站建设
  • 网站安全建设情况报告做外贸铝材哪个网站比较好
  • 网站建设制作开发 小程序开发定制 软件系统开发怎么用eclipse做网页
  • 网站卡密代理怎么做骗子会利用钓鱼网站做啥
  • 网站建设所需要的东西织梦做的网站有点慢
  • 门户网站开发教程wordpress 论坛插件
  • 凡科做网站需要备案吗肥城做网站
  • 在北京做网站制作一个月多少钱网站建设服务协议