楼主: 东西方咨询
3635 21

Matlab Machine Learning User's Guide [推广有奖]

  • 0关注
  • 1粉丝

已卖:347份资源

博士生

73%

还不是VIP/贵宾

-

TA的文库  其他...

Research Paper Writing(写作)

OxMetrics NewOccidental

Eviews NewOccidental

威望
0
论坛币
2817 个
通用积分
6.1195
学术水平
48 点
热心指数
19 点
信用等级
46 点
经验
4060 点
帖子
115
精华
4
在线时间
7 小时
注册时间
2014-6-21
最后登录
2016-8-20

楼主
东西方咨询 发表于 2015-11-2 11:27:26 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

求职就业群
赵安豆老师微信:zhaoandou666

经管之家联合CDA

送您一个全额奖学金名额~ !

感谢您参与论坛问题回答

经管之家送您两个论坛币!

+2 论坛币

本帖隐藏的内容

Matlab Machine Learning User's Guide.pdf (52.61 MB)



二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

关键词:Learning machine earning MATLAB Guide

本帖被以下文库推荐

沙发
东西方咨询 发表于 2015-11-2 11:45:20
  1. #load fisheriris
  2. x = meas(:,3:4);
  3. gscatter(x(:,1),x(:,2),species)
  4. legend('Location','best')
  5. #Plot the new point.
  6. newpoint = [5 1.45];
  7. line(newpoint(1),newpoint(2),'marker','x','color','k',...
  8. 'markersize',10,'linewidth',2)
  9. #Prepare a K d-tree neighbor searcher model.
  10. Mdl = KDTreeSearcher(x)

  11. #Find the 10 sample points closest to the new point.
  12. [n,d] = knnsearch(Mdl,newpoint,'k',10);
  13. line(x(n,1),x(n,2),'color',[.5 .5 .5],'marker','o',...
  14. 'linestyle','none','markersize',10)
  15. #Make the axes equal so the calculated distances correspond to the apparent distances on
  16. the plot axis equal and zoom in to see the neighbors better.
  17. xlim([4.5 5.5]);
  18. ylim([1 2]);
  19. axis square

  20. #Find the species of the 10 neighbors.
  21. tabulate(species(n))

  22. #Using a rule based on the majority vote of the 10 nearest neighbors, you can classify this new point as a versicolor.Visually identify the neighbors by drawing a circle around the group of them. Define the
  23. #center and diameter of a circle, based on the location of the new point.
  24. ctr = newpoint - d(end);

  25. diameter = 2*d(end);
  26. % Draw a circle around the 10 nearest neighbors.
  27. h = rectangle('position',[ctr,diameter,diameter],...
  28. 'curvature',[1 1]);
  29. h.LineStyle = ':';

  30. #Using the same dataset, find the 10 nearest neighbors to three new points.
  31. figure
  32. newpoint2 = [5 1.45;6 2;2.75 .75];
  33. gscatter(x(:,1),x(:,2),species)
  34. legend('location','best')
  35. [n2,d2] = knnsearch(Mdl,newpoint2,'k',10);
  36. line(x(n2,1),x(n2,2),'color',[.5 .5 .5],'marker','o',...
  37. 'linestyle','none','markersize',10)
  38. line(newpoint2(:,1),newpoint2(:,2),'marker','x','color','k',...
  39. 'markersize',10,'linewidth',2,'linestyle','none')
复制代码

藤椅
Nicolle 学生认证  发表于 2015-11-2 11:48:16
提示: 作者被禁止或删除 内容自动屏蔽

板凳
风中华翼 发表于 2015-11-2 11:53:37

Regularize Poisson Regression

  1. Regularize Poisson Regression
  2. This example shows how to identify and remove redundant predictors from a generalized
  3. linear model.

  4. #Create data with 20 predictors, and Poisson responses using just three of the predictors,
  5. plus a constant.
  6. rng('default') % for reproducibility
  7. X = randn(100,20);
  8. mu = exp(X(:,[5 10 15])*[.4;.2;.3] + 1);
  9. y = poissrnd(mu);
  10. #Construct a cross-validated lasso regularization of a Poisson regression model of the data.
  11. [B FitInfo] = lassoglm(X,y,'poisson','CV',10);

  12. #Examine the cross-validation plot to see the effect of the Lambda regularization parameter.
  13. lassoPlot(B,FitInfo,'plottype','CV');

  14. #Find the nonzero model coefficients corresponding to the two identified points.
  15. minpts = find(B(:,FitInfo.IndexMinDeviance))

  16. #The constant term is in the FitInfo.Intercept vector.
  17. FitInfo.Intercept(FitInfo.Index1SE)
复制代码

已有 1 人评分论坛币 收起 理由
Nicolle + 20 鼓励积极发帖讨论

总评分: 论坛币 + 20   查看全部评分

报纸
w-long 发表于 2015-11-2 22:16:32
Matlab Machine Learning User's Guide
已有 1 人评分论坛币 收起 理由
Nicolle + 20 鼓励积极发帖讨论

总评分: 论坛币 + 20   查看全部评分

地板
shgby 发表于 2015-11-2 22:47:22
Matlab Machine Learning User's Guide
已有 1 人评分论坛币 收起 理由
Nicolle + 20 鼓励积极发帖讨论

总评分: 论坛币 + 20   查看全部评分

7
maya 发表于 2015-11-3 19:49:09
kankan

8
yedy99 发表于 2015-11-5 20:55:40
good 3x

9
lionli 发表于 2015-11-5 20:57:13
thanks

10
大鹏展翅2009 发表于 2015-11-6 09:07:19
don't know

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注jltj
拉您入交流群
GMT+8, 2026-2-6 11:53