24小时热门版块排行榜    

查看: 460  |  回复: 3
当前主题已经存档。

kitty4

[交流] 【求助】请问这里的region指什么?(matlab C4.5 code)

下面是程序的前几行
region的前四个单元究竟存的是什么啊?



function D = C4_5(train_features, train_targets, inc_node, region)

% Classify using Quinlan's C4.5 algorithm
% Inputs:
%  features - Train features
% targets     - Train targets
% inc_node    - Percentage of incorrectly assigned samples at a node
% region     - Decision region vector: [-x x -y y number_of_points]
%
% Outputs
% D   - Decision sufrace

%NOTE: In this implementation it is assumed that a feature vector with fewer than 10 unique values (the parameter Nu)
%is discrete, and will be treated as such. Other vectors will be treated as continuous

[Ni, M]  = size(train_features);
inc_node    = inc_node*M/100;
Nu          = 10;

%For the decision region
N           = region(5);
mx          = ones(N,1) * linspace (region(1),region(2),N);
my          = linspace (region(3),region(4),N)' * ones(1,N);
flatxy      = [mx(: ), my(: )]';

[ Last edited by kitty4 on 2009-10-24 at 16:53 ]
回复此楼

» 猜你喜欢

已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

haixing2008

荣誉版主 (文坛精英)

友情顶贴,祝好运!
平平淡淡才是真!
2楼2009-12-04 16:04:07
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

sparke

铁杆木虫 (正式写手)


小木虫(金币+0.5):给个红包,谢谢回帖交流
我也遇到这样的问题了,这几个参数如何定义的,都什么形式?
3楼2009-12-19 09:16:52
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

tslnet

银虫 (小有名气)

不太清楚所指内容!
4楼2009-12-21 22:27:32
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
相关版块跳转 我要订阅楼主 kitty4 的主题更新
普通表情 高级回复 (可上传附件)
信息提示
请填处理意见