Decision Tree from Scratch. In this article, let’s understand the working of a Decision Tree and then we will implement it in python.
For most of complex and non-linear data , tree based algorithms like Decision Tree, Random Forest, XGBoost, etc works better than most of the algorithms. But have you ever thought how these algorithms work?
In this article, let’s understand the working of a Decision Tree and then we will implement it in python.
Decision tree is a type of supervised learning algorithm. It consists of decision nodes and leaf nodes. A decision node has two or more branches whereas a leaf node. Leaf node represents a classification or decision (for regression). The topmost decision node in a tree which corresponds to the best predictor (most important feature) is called a root node.
This algorithm is also known as Hunt’s algorithm, which is both greedy, and recursive. Greedy meaning that at step it makes the most optimal decision and recursive meaning it splits the larger question into smaller questions and resolves them the same way.
To implement decision tree, we have many built-in algorithms like CART, ID3, C4.5 etc. In this blog, we are interested in CART. So, let’s talk about CART.
Enroll now at CETPA, the best Institute in India for Artificial Intelligence Online Training Course and Certification for students & working professionals & avail 50% instant discount.
What is Artificial Intelligence (AI)? AI is the ability of a machine to think like human, learn and perform tasks like a human. Know the future of AI, Examples of AI and who provides the course of Artificial Intelligence?
You got intrigued by the machine learning world and wanted to get started as soon as possible, read all the articles, watched all the videos, but still isn’t sure about where to start, welcome to the club.
Machine learning is quite an exciting field to study and rightly so. It is all around us in this modern world. From Facebook’s feed to Google Maps for navigation, machine learning finds its application in almost every aspect of our lives. It is quite frightening and interesting to think of how our lives would have been without the use of machine learning. That is why it becomes quite important to understand what is machine learning, its applications and importance.
Simple explanations of Artificial Intelligence, Machine Learning, and Deep Learning and how they’re all different