资源简介

matlab实现的ID3-分类决策树-算法 matlab实现决策树cart算法 决策树C4.5算法matlab源代码(完美运行)

资源截图

代码片段和文件信息

function [classifications] = ClassifyByTree(tree attributes instance)
% ClassifyByTree   Classifies data instance by given tree
% args:
%       tree            - tree data structure
%       attributes      - cell array of attribute strings (no CLASS)
%       instance        - data including correct classification (end col.)
% return:
%       classifications     - 2 numbers first given by tree 2nd given by
%                             instance‘s last column
% tree struct:
%       value               - will be the string for the splitting
%                             attribute or ‘true‘ or ‘false‘ for leaf
%       left                - left pointer to another tree node (left means
%                             the splitting attribute was false)
%       right               - right poin

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2018-11-24 10:27  Decision_tree\
     目录           0  2018-07-31 10:27  Decision_tree\ID3-Decision-Tree-master\
     文件        1804  2017-07-10 02:19  Decision_tree\ID3-Decision-Tree-master\ClassifyByTree.m
     文件        5966  2017-07-10 02:19  Decision_tree\ID3-Decision-Tree-master\ID3.m
     文件         605  2017-07-10 02:19  Decision_tree\ID3-Decision-Tree-master\PrintTree.m
     文件        1065  2017-07-10 02:19  Decision_tree\ID3-Decision-Tree-master\README.txt
     文件        7367  2017-07-10 02:19  Decision_tree\ID3-Decision-Tree-master\decisiontree.m
     目录           0  2018-07-31 10:27  Decision_tree\ID3-Decision-Tree-master\samples\
     文件        3220  2017-07-10 02:19  Decision_tree\ID3-Decision-Tree-master\samples\IvyLeague.txt
     文件        4093  2018-07-31 11:25  Decision_tree\matlab实现决策树cart算法.txt
     文件       15740  2018-07-31 11:37  Decision_tree\matlab实现的ID3-分类决策树-算法.docx
     文件        6820  2018-07-31 11:24  Decision_tree\决策树C4.5算法matlab源代码(完美运行).txt

评论

共有 条评论