python决策树 多分类_Python中的决策树分类:您需要了解的一切

python决策树 多分类

什么是决策树? (What is Decision Tree?)

A decision tree is a decision support tool that uses a tree-like graph or model of decisions and their possible consequences, including chance event outcomes, resource costs, and utility. It is one way to display an algorithm that only contains conditional control statements.

决策树是一种决策支持工具,它使用决策的树状图或模型及其可能的结果,包括偶然事件结果,资源成本和效用。 这是显示仅包含条件控制语句的算法的一种方法。

Decision Trees (DTs) are a non-parametric supervised learning method used for both classification and regression. Decision trees learn from data to approximate a sine curve with a set of if-then-else decision rules. The deeper the tree, the more complex the decision rules, and the fitter the model. The decision tree builds classification or regression models in the form of a tree structure, hence called CART (Classification and Regression Trees). It breaks down a data set into smaller and smaller subsets building along an associated decision tree at the same time. The final result is a tree with decision nodes and leaf nodes. A decision node has two or more branches. The leaf node represents a classification or decision. The topmost decision node in a tree which corresponds to the best predictor called the root node. Decision trees can handle both categorical and numerical data.

决策树(DT)是一种用于分类和回归的非参数监督学习方法。 决策树从数据中学习,以使用一组if-then-else决策规则来近似正弦曲线。 树越深,决策规则越复杂,模型越合适。 决策树以树结构的形式构建分类或回归模型,因此称为CART(分类和回归树)。 它同时将数据集分解为越来越小的子集,这些子集沿着关联的决策树构建。 最终结果是一棵具有决策节点和叶节点的树。 决策节点具有两个或更多分支。 叶节点表示分类或决策。 树中与最佳预测变量相对应的最高决策节点称为根节点。 决策树可以处理分类数据和数字数据。

何时使用决策树? (When is Decision Tree Used?)

  1. When the user has and objective and he is trying to achieve max profit, optimized cost, etc.

    当用户拥有目标时,他正试图实现最大利润,优化成本等。
  2. When there are several courses of action like the menu system in an ATM machine, Customer Support calling menu, etc.

    当有多种操作过程时,例如ATM机中的菜单系统,客户支持呼叫菜单等。
  3. Uncertainty concerning wh
  • 0
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值