楼主: adsfdsgf
6788 3

[统计软件] matlabC4.5决策树 [推广有奖]

  • 0关注
  • 0粉丝

初中生

76%

还不是VIP/贵宾

-

威望
0
论坛币
1 个
通用积分
0
学术水平
1 点
热心指数
1 点
信用等级
0 点
经验
171 点
帖子
14
精华
0
在线时间
5 小时
注册时间
2014-7-13
最后登录
2014-11-17

楼主
adsfdsgf 发表于 2014-7-25 18:40:09 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

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

经管之家联合CDA

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

感谢您参与论坛问题回答

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

+2 论坛币
matlab里用什么函数或者方法显示C4.5算法得到的决策树图啊,麻烦大家帮忙解答下,急!!!
二维码

扫码加我 拉你入群

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

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

关键词:MATLAB atlab matla ABC Atl matlab

已有 1 人评分经验 学术水平 热心指数 收起 理由
yangyuzhou + 60 + 1 + 1 鼓励积极发帖讨论

总评分: 经验 + 60  学术水平 + 1  热心指数 + 1   查看全部评分

沙发
URSIMON 发表于 2014-7-25 19:52:31
函数应该是没有的,MATLAB里的决策树用的似乎不是这个算法,至于如何实现,楼主可以自己写code或者找别人的code
已有 1 人评分论坛币 学术水平 热心指数 收起 理由
yangyuzhou + 12 + 1 + 1 鼓励积极发帖讨论

总评分: 论坛币 + 12  学术水平 + 1  热心指数 + 1   查看全部评分

藤椅
mike68097 发表于 2014-7-25 20:06:02

(1*) C4.5 Syntax(用户自定义函数, 并非matlab自带函数):
predicted_targets = C4_5(training_patterns,training_targets, test_patterns, input parameter);
C4.5的matlab函数源代码, 可以参考Chapter 8 (记录在: Computer Manual in MatLab to accompany Pattern Classification工具箱的说明手册, 与 https://bbs.pinggu.org/thread-1087526-1-1.html),

(2) 画树图的指令可以用: dendrogram 或者 treeplot (语法可参考:
dendrogram: http://www.mathworks.com/help/stats/dendrogram.html#btk2sv9)
treeplot        :  http://www.mathworks.com/help/matlab/ref/treeplot.html?searchHighlight=treeplot

* Remark:
Function name: C4_5
Description:
Construct a decision tree recursively so as tominimize the error on a training set. Discrete features are split using
a histogram and continuous features are splitusing an information criteria. The algorithm is implemented under
the assumption that a pattern vector with fewerthan 10 unique values is discrete, and will be treated as such.
Other vectors are treated as continuous. Note thatdue to MATLAB memory and processing restrictions, the
recursion depth may be reached during theprocessing of a large complicated data set, which will result in an
error.

已有 1 人评分论坛币 学术水平 热心指数 信用等级 收起 理由
yangyuzhou + 24 + 1 + 1 + 1 鼓励积极发帖讨论

总评分: 论坛币 + 24  学术水平 + 1  热心指数 + 1  信用等级 + 1   查看全部评分

板凳
adsfdsgf 发表于 2014-7-26 08:09:41
mike68097 发表于 2014-7-25 20:06
(1*) C4.5 Syntax(用户自定义函数, 并非matlab自带函数):
predicted_targets = C4_5(training_patterns,tr ...
你好,我从网上找了代码也成功建了决策树,建树的函数(make_tree)代码就是网上找的,可是要怎么把它提取出来,然后显示呢,麻烦解答下好吗

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

本版微信群
扫码
拉您进交流群
GMT+8, 2026-2-16 22:13