求大神讲解这个matlab函数该如何输入参数(cart决策树)

functionD=CART(train_features,train_targets,params,region)%Classifyusingclassificatio... function D = CART(train_features, train_targets, params, region)

% Classify using classification and regression trees
% Inputs:
% features - Train features
% targets     - Train targets
% params - [Impurity type, Percentage of incorrectly assigned samples at a node]
%                   Impurity can be: Entropy, Variance (or Gini), or Missclassification
% region     - Decision region vector: [-x x -y y number_of_points]
%
% Outputs
% D - Decision sufrace

google翻译
%分类使用分类和回归树
%输入:
%功能 - 培训功能
%目标 - 培训目标
%params - [杂质类型,节点上错误分配样本的百分比]
杂质百分比可以是:熵,差异(或基尼)或错误分类
%region - 决策区域向量:[-x x -y y number_of_points]

%输出
%D - 决定sufrace
展开
 我来答
DoramiHe
2018-04-22 · 知道合伙人互联网行家
DoramiHe
知道合伙人互联网行家
采纳数:25336 获赞数:59547
2011年中山职业技术学院毕业,现担任毅衣公司京东小二

向TA提问 私信TA
展开全部
如果你会Latex就会很方便,matlab 图形中 title, xlabel,ylabel,zlabel,textbox,legend等的Interperter属性设定为latex,就可以输入latex公式比如:标注一个偏微分方程式textbox('Interpreter','latex','String','$\frac{\partial^{2}y}{\partial} x^{2}}=ay$','Position',[3,4],'FontSize',12);
追问

大神你好,我只是想问一下,如果是以下数据 该如何写主函数

z

怎样一一对应

推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式