登录 注册
当前位置:主页 > 资源下载 > 50 > Matlab 中实现的 CART 算法程序

Matlab 中实现的 CART 算法程序

  • 更新:2024-07-02 14:55:38
  • 大小:4KB
  • 推荐:★★★★★
  • 来源:网友上传分享
  • 类别:其它 - 开发技术
  • 格式:M

资源介绍

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