From the course: Python: Working with Predictive Analytics

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Decision tree regression

Decision tree regression - Python Tutorial

From the course: Python: Working with Predictive Analytics

Start my 1-month free trial

Decision tree regression

- [Instructor] On our roadmap, we are again in the modeling section and we have two models left to discuss here. In this video, I'll explain the decision tree algorithm. This is also called Classification and Regression Trees or CART for short. Decisions, decisions, decisions. It's in our lives everyday. Suppose we are in the middle of a decision to whether or not to purchase a car, how would we approach it? We would start with defining the most important factors or features for us to help our decision. Decision trees were first used in classification algorithms or predicting categorical variables. A decision tree is a tree where each node represents a feature or attribute, each link or branch represents the decision also called a role and each leaf represents an outcome. Here is a decision tree example about a car purchase. Looking at the price range, if the price of a car is less than $30,000 we continue to the automatic transmission question. The car has an automatic transmission…

Contents