-
Matlab 中实现的 CART 算法程序
资源介绍
function test_targets = CART(train_patterns, train_targets, test_patterns, params)
% Classify using classification and regression trees
% Inputs:
% training_patterns - Train patterns
% training_targets - Train targets
% test_patterns - Test patterns
% params - [Impurity type, Percentage of incorrectly assigned samples at a node]
% Impurity can be: Entropy, Variance (or Gini), or Misclassification
%
% Outputs
% test_targets - Predicted targets