文件名称:CART 算法程序 Matlab 实现
文件大小:4KB
文件格式:M
更新时间:2016-02-14 07:50:01
CART 算法程序 Matlab 实现
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