Summary of machine learning techniques (vi) Decision Tree hypothesis

Source: Internet
Author: User

Here we first reiterate the approach to hypothesis G, which uses aggregation for better performance: blending, which is the fusion after the g_set is obtained; What about learning? is to get g online and fuse. Here is a summary of the methods involved in the whole aggregation:


Where bagging, adaboost we have explored, respectively, are based on uniform (voting/average) and Non-uniform (linear) of the aggregation type, Then let's start with a conditional-based learning model:decision tree.


It is in fact the imitation of human decision-making process, in C language is very common if...else ... The statement can be thought of as a very simple decision tree. See how we use aggregation to evolve, for example, we want internal nodes (internal decision making process) to be very simple. The condition is separated from the entrance into different BRANCH,GC (x) as a separate sub-tree. is to put a big tree, in conjunction with the branch conditions, broken down into smaller trees, is actually a recursive structure of the definition. Tree = (root, sub-trees), root root tells us how to do branch.


In addition, there are some advantages and disadvantages to decision tree, here first, there is a general positioning, such as:


Then a basic decision tree algorithm should be as follows: (using recursive structure), all the data into making a large tree, Root,sub-tree, and then sub-tree decomposition, until sub-tree can not be divided, is the leaf (leaf) after the gradual return, the final synthesis of the big decision tree.


A typical decision tree: C&rt:classification and Regression trees. 1) Branch branches to 2-tree (binary trees), 2) leaf-level hypothesis is G = Ein-optimal constant (constant), 3) internal node: Directly with decision Stump 4) Use all possible decision stump to calculate its purity (purity), the largest purity as the final decision stump (branching by purifying)

So what is the measure of purity?


So when does the algorithm stop? To all the Purity=1, you can return a constant, or all the Xn are the same, it is said that there is no decision stump. This is called a forced stop, there is a feature: The leaf return is a constant.


Therefore, the basic C&RT algorithm is as follows, can be easily multi-class classification.


If we cover all the leaves, then Ein is likely to be 0, so we are likely to have overfitting, so what should we do? Right! regularization! : It is possible to control the complexity of the model by making the leaf nodes less. But we're looking for all the possible trees, which is likely to be very large and computationally significant, so if we use C&rt to get a fully-grown tree, like 10 leaves, we can remove a leaf in turn to get 10 cut off This can be useful for regularization. How do I choose lambda?

Let's talk about what the input features of the decision stump are, which will determine how we use the decision stump for cutting. If it is a digital feature, then it is easy to simply decision stump, so if the feature is categorical features, you can use decision subset for processing. So C&RT can handle it.

What if some of the features are missing? If we analogy people's approach: is the analogy, that is, for example, the height and weight of the person has a certain relationship, weight<50 = = Height < 150, so with the substitution of features; So C&RT can handle the lost features;



Finally, some examples are given to better understand the working mechanism of the decision tree model, similar to the one in Adaboost-decision stump, starting with a simple example:


It's just gradual. recursively to unfold the tree. And what difference does it have with AdaBoost?


It can be clearly seen that decision tree is a condition cut, and AdaBoost is a full-plane cut, so compared to the decision tree will have more delicate boundary line, but compared to AdaBoost VC Bound's theoretical upper bound limitations, decision tree does not have so many theoretical explanations, so it needs an explicit regularization, and AdaBoost does not.


Then look at the complex sample of the performance bar:



The characteristics of the C&rt method are summarized below. The difference between the different decision tree algorithms may be how to regularization the tree leaves (pruning), or the processing of certain points.



The next thing to do is to implement the C&RT algorithm based on the example above and compare it to adaboost-stump to deepen the theoretical understanding of decision tree.

Learn at any time and share ************************************************ ******


Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

Summary of machine learning techniques (vi) Decision Tree hypothesis

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.