{"id":10165,"date":"2020-05-13T17:52:36","date_gmt":"2020-05-13T12:22:36","guid":{"rendered":"https:\/\/www.botreetechnologies.com\/blog\/?p=10165"},"modified":"2026-03-27T16:33:24","modified_gmt":"2026-03-27T11:03:24","slug":"decision-tree-algorithm-in-machine-learning","status":"publish","type":"post","link":"https:\/\/www.botreetechnologies.com\/blog\/decision-tree-algorithm-in-machine-learning\/","title":{"rendered":"Decision Tree Algorithm in Machine Learning"},"content":{"rendered":"\n<p>The application of decision tree algorithm is known by all Machine Learning developers. It is a useful supervised Machine Learning algorithm that focuses on probable outcomes and possibilities from decision nodes. <\/p>\n\n\n\n<p>It is the easiest and most popular algorithm for classification. As one of the best Machine Learning algorithms, decision trees can help solve both classification and regression problems.<\/p>\n\n\n\n<p>A decision tree is a flowchart-like tree structure where an internal node represents a feature(or attribute), the branch represents a decision rule, and each leaf node represents the outcome. The topmost decision node in a decision tree is known as the root node.<\/p>\n\n\n\n<p>Decision trees come under the supervised learning algorithms category. As we mentioned, it is primarily used for regression and classification in <a href=\"https:\/\/www.botreetechnologies.com\/machine-learning-solutions\" target=\"_blank\" rel=\"noreferrer noopener\">machine learning models<\/a>. It provides transparency by offering a single view of all traces and alternatives. Decision tree also assign specific values to problems and decisions, enabling better decision-making.<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p><strong><em>Read more :&nbsp;<\/em><\/strong><a href=\"https:\/\/www.botreetechnologies.com\/blog\/machine-learning-everything-you-need-to-know\/\"><em><strong>Machine Learning: Everything you Need to Know<\/strong><\/em><\/a><\/p><\/blockquote>\n\n\n\n<p>But do you know how a decision tree works? Most people use it because it\u2019s easy and provides a graphical representation of the problem. In this article, we will look at the decision tree algorithm in detail.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Types of Decision Tree Algorithms<\/h2>\n\n\n\n<p>There are two different types of decision tree algorithm for machine learning.<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li><strong>Classification trees:-<\/strong> In this type of decision tree, there is only one outcome from a set of two. The outcome could be either true for a particular dataset or false. The decision variable is categorical. In this decision tree classifier, categorical classifiers are essential.<\/li><li><strong>Regression trees:- <\/strong>In this type of decision tree for machine learning algorithms, the outcome is continuous and changes based on the value of variables in the dataset. It is one of the types of decision trees that have continuous target variables. It is also known as a continuous variable decision tree.<\/li><\/ol>\n\n\n\n<p>The root of the decision tree algorithm is at the top, and it flows upside down. In this Machine Learning algorithm for classification, the branches split downwards and the internal nodes are there to satisfy a particular condition.<\/p>\n\n\n\n<div class=\"wp-block-image wp-image-10189 size-full\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"360\" height=\"340\" src=\"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2020\/12\/types-decision-tree-algorithms.png\" alt=\"Types of Decision Tree Algorithms\" class=\"wp-image-14444\" srcset=\"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2020\/12\/types-decision-tree-algorithms.png 360w, https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2020\/12\/types-decision-tree-algorithms-300x283.png 300w\" sizes=\"auto, (max-width: 360px) 100vw, 360px\" \/><figcaption>source: wikipedia<\/figcaption><\/figure><\/div>\n\n\n\n<p>The text in black are the internal nodes, which allows the tree to split into branches based on specific conditions. The end of the branch is the decision or leaf, from which no more branch can pan out. The methodology is also popularized as learning decision tree from data.<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p><strong><em>Read more: Python AI:&nbsp;<\/em><\/strong><a href=\"https:\/\/www.business2community.com\/big-data\/python-ai-why-python-is-better-for-machine-learning-and-ai-02389380\"><em><strong>Why Python is Better for Machine Learning and AI<\/strong><\/em><\/a><\/p><\/blockquote>\n\n\n\n<h2 class=\"wp-block-heading\"><b>How Does Decision Tree Work ?<\/b><\/h2>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"470\" height=\"662\" src=\"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2020\/12\/how-does-decision-tree-work.png\" alt=\"How Does Decision Tree work in ML\" class=\"wp-image-14443\" srcset=\"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2020\/12\/how-does-decision-tree-work.png 470w, https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2020\/12\/how-does-decision-tree-work-213x300.png 213w\" sizes=\"auto, (max-width: 470px) 100vw, 470px\" \/><\/figure><\/div>\n\n\n\n<h3 class=\"wp-block-heading\"><a href=\"https:\/\/en.wikipedia.org\/wiki\/Gini_coefficient\">Gini Index:<\/a><\/h3>\n\n\n\n<p>Another decision tree algorithm CART (Classification and Regression Tree) uses the Gini method to create split points.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"331\" height=\"49\" src=\"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2020\/12\/gini-index.png\" alt=\"Gini Index\" class=\"wp-image-14442\" srcset=\"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2020\/12\/gini-index.png 331w, https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2020\/12\/gini-index-300x44.png 300w\" sizes=\"auto, (max-width: 331px) 100vw, 331px\" \/><\/figure><\/div>\n\n\n\n<p>Where pi is the probability that a tuple in D belongs to class Ci.<\/p>\n\n\n\n<p>The Gini Index considers a binary split for each attribute. You can compute a weighted sum of the impurity of each partition.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Entropy:<\/h3>\n\n\n\n<p>Entropy is a measure of disorder or uncertainty and the goal of machine learning models and Data Scientists, in general, is to reduce uncertainty.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2020\/12\/entropy.png\" alt=\"entropy\" class=\"wp-image-14440\" width=\"512\" height=\"34\" srcset=\"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2020\/12\/entropy.png 512w, https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2020\/12\/entropy-300x20.png 300w\" sizes=\"auto, (max-width: 512px) 100vw, 512px\" \/><\/figure><\/div>\n\n\n\n<p>We simply subtract the entropy of Y given X from the entropy of just Y to calculate the reduction of uncertainty about Y given an additional piece of information X about Y. This is called Information Gain. The greater the reduction in this uncertainty, the more information is gained about Y from X.<\/p>\n\n\n\n<p>Let\u2019s see an example to train model with diabetes data using the above algorithm<\/p>\n\n\n\n<p>Please note that, We are going to use Pandas and Sklearn for training data and using existing dataset of <a href=\"https:\/\/www.kaggle.com\/edubrq\/diabetes\" target=\"_blank\" rel=\"noreferrer noopener\">diabetes from Kaggle<\/a>.<\/p>\n\n\n<p><script src=\"https:\/\/gist.github.com\/pranavbtc\/56aba86c6fe989a1d63353e17cc98426.js\"><\/script><\/p>\n\n\n<h3 class=\"wp-block-heading\">Pros:<\/h3>\n\n\n\n<ul class=\"wp-block-list\"><li>Interpretation and visualization is made easy when Decision trees are used.<\/li><li>Capturing Nonlinear patterns is easier.<\/li><li>Normalization of columns is not needed as negligible data preprocessing is required from the user.<\/li><li>Variable selection can be more efficiently done.<\/li><li>Feature engineering such as predicting missing values can be done very efficiently using this algorithm.<\/li><li>There are no assumptions about distribution because decision tree has a non-parametric nature.(<a href=\"https:\/\/scikit-learn.org\/stable\/modules\/tree.html\" target=\"_blank\" rel=\"noreferrer noopener\">Source<\/a>)<\/li><\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Cons:<\/h3>\n\n\n\n<ul class=\"wp-block-list\"><li>Overfitting noisy data and sensitivity to noisy data is a con.<\/li><li>Nominal variation in data can result in different decision tree. To reduce this con bagging and boosting algorithms are used.<\/li><li>Before creating a decision tree it is suggested to balance out the dataset as decision trees are biased to imbalanced dataset.<\/li><\/ul>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p><strong><em>Read more:&nbsp;<a href=\"https:\/\/www.botreetechnologies.com\/blog\/python-in-cybersecurity\/\" target=\"_blank\" rel=\"noreferrer noopener\">How is Python Useful for Cybersecurity in 2021<\/a><\/em><\/strong><\/p><\/blockquote>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p>The above decision tree examples showcase how this algorithm for classification problems is useful for Machine Learning applications. We have covered what is a decision tree, the advantages of decisions trees, and how a decision tree algorithm works.<\/p>\n\n\n\n<p>Decision tree is very easy to understand and communicate. It provides an excellent visual illustration of the data and the dendrogram gives a good look at the relationship between objects.<\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p><strong><a href=\"https:\/\/www.botreetechnologies.com\/contact\" target=\"_blank\" rel=\"noopener noreferrer\">Consulting is free<\/a>&nbsp;\u2013 let us help you grow!<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>The application of decision tree algorithm is known by all&#8230;<\/p>\n","protected":false},"author":61,"featured_media":14439,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2,51],"tags":[],"class_list":["post-10165","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-automation","category-machine-learning"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.2 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Decision Tree Algorithm in Machine Learning<\/title>\n<meta name=\"description\" content=\"The decision tree algorithm is a Machine Learning algorithm for major classification problems. Learn everything you need to know about decision tree algorithms and how they work with Machine Learning models.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.botreetechnologies.com\/blog\/decision-tree-algorithm-in-machine-learning\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Decision Tree Algorithm in Machine Learning\" \/>\n<meta property=\"og:description\" content=\"The decision tree algorithm is a Machine Learning algorithm for major classification problems. Learn everything you need to know about decision tree algorithms and how they work with Machine Learning models.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.botreetechnologies.com\/blog\/decision-tree-algorithm-in-machine-learning\/\" \/>\n<meta property=\"og:site_name\" content=\"BoTree Technologies\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/BoTreeTechnologies\/\" \/>\n<meta property=\"article:published_time\" content=\"2020-05-13T12:22:36+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-03-27T11:03:24+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2020\/05\/machine-learning-algorithm.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"852\" \/>\n\t<meta property=\"og:image:height\" content=\"479\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Pranav Modh\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@BoTreeTech\" \/>\n<meta name=\"twitter:site\" content=\"@BoTreeTech\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Pranav Modh\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.botreetechnologies.com\/blog\/decision-tree-algorithm-in-machine-learning\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.botreetechnologies.com\/blog\/decision-tree-algorithm-in-machine-learning\/\"},\"author\":{\"name\":\"Pranav Modh\",\"@id\":\"https:\/\/www.botreetechnologies.com\/blog\/#\/schema\/person\/5302c63509dd2f73e7546d4998e7d412\"},\"headline\":\"Decision Tree Algorithm in Machine Learning\",\"datePublished\":\"2020-05-13T12:22:36+00:00\",\"dateModified\":\"2026-03-27T11:03:24+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.botreetechnologies.com\/blog\/decision-tree-algorithm-in-machine-learning\/\"},\"wordCount\":808,\"commentCount\":8,\"image\":{\"@id\":\"https:\/\/www.botreetechnologies.com\/blog\/decision-tree-algorithm-in-machine-learning\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2020\/05\/machine-learning-algorithm.jpg\",\"articleSection\":[\"Automation\",\"Machine Learning\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.botreetechnologies.com\/blog\/decision-tree-algorithm-in-machine-learning\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.botreetechnologies.com\/blog\/decision-tree-algorithm-in-machine-learning\/\",\"url\":\"https:\/\/www.botreetechnologies.com\/blog\/decision-tree-algorithm-in-machine-learning\/\",\"name\":\"Decision Tree Algorithm in Machine Learning\",\"isPartOf\":{\"@id\":\"https:\/\/www.botreetechnologies.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.botreetechnologies.com\/blog\/decision-tree-algorithm-in-machine-learning\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.botreetechnologies.com\/blog\/decision-tree-algorithm-in-machine-learning\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2020\/05\/machine-learning-algorithm.jpg\",\"datePublished\":\"2020-05-13T12:22:36+00:00\",\"dateModified\":\"2026-03-27T11:03:24+00:00\",\"author\":{\"@id\":\"https:\/\/www.botreetechnologies.com\/blog\/#\/schema\/person\/5302c63509dd2f73e7546d4998e7d412\"},\"description\":\"The decision tree algorithm is a Machine Learning algorithm for major classification problems. Learn everything you need to know about decision tree algorithms and how they work with Machine Learning models.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.botreetechnologies.com\/blog\/decision-tree-algorithm-in-machine-learning\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.botreetechnologies.com\/blog\/decision-tree-algorithm-in-machine-learning\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.botreetechnologies.com\/blog\/decision-tree-algorithm-in-machine-learning\/#primaryimage\",\"url\":\"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2020\/05\/machine-learning-algorithm.jpg\",\"contentUrl\":\"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2020\/05\/machine-learning-algorithm.jpg\",\"width\":852,\"height\":479,\"caption\":\"Decision Tree Algorithm in Machine Learning\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.botreetechnologies.com\/blog\/decision-tree-algorithm-in-machine-learning\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.botreetechnologies.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Decision Tree Algorithm in Machine Learning\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.botreetechnologies.com\/blog\/#website\",\"url\":\"https:\/\/www.botreetechnologies.com\/blog\/\",\"name\":\"BoTree Technologies\",\"description\":\"Committed to inspire generation.\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.botreetechnologies.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.botreetechnologies.com\/blog\/#\/schema\/person\/5302c63509dd2f73e7546d4998e7d412\",\"name\":\"Pranav Modh\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2020\/10\/pranav-modh-150x150.png\",\"url\":\"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2020\/10\/pranav-modh-150x150.png\",\"contentUrl\":\"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2020\/10\/pranav-modh-150x150.png\",\"caption\":\"Pranav Modh\"},\"description\":\"I am a passionate Python developer worked on several projects on web development using Django. I am enthusiastic about working on machine learning and data science projects. I love to explore new technologies and apart from it, I like to listen to music, play computer and mobile games.\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Decision Tree Algorithm in Machine Learning","description":"The decision tree algorithm is a Machine Learning algorithm for major classification problems. Learn everything you need to know about decision tree algorithms and how they work with Machine Learning models.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.botreetechnologies.com\/blog\/decision-tree-algorithm-in-machine-learning\/","og_locale":"en_US","og_type":"article","og_title":"Decision Tree Algorithm in Machine Learning","og_description":"The decision tree algorithm is a Machine Learning algorithm for major classification problems. Learn everything you need to know about decision tree algorithms and how they work with Machine Learning models.","og_url":"https:\/\/www.botreetechnologies.com\/blog\/decision-tree-algorithm-in-machine-learning\/","og_site_name":"BoTree Technologies","article_publisher":"https:\/\/www.facebook.com\/BoTreeTechnologies\/","article_published_time":"2020-05-13T12:22:36+00:00","article_modified_time":"2026-03-27T11:03:24+00:00","og_image":[{"width":852,"height":479,"url":"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2020\/05\/machine-learning-algorithm.jpg","type":"image\/jpeg"}],"author":"Pranav Modh","twitter_card":"summary_large_image","twitter_creator":"@BoTreeTech","twitter_site":"@BoTreeTech","twitter_misc":{"Written by":"Pranav Modh","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.botreetechnologies.com\/blog\/decision-tree-algorithm-in-machine-learning\/#article","isPartOf":{"@id":"https:\/\/www.botreetechnologies.com\/blog\/decision-tree-algorithm-in-machine-learning\/"},"author":{"name":"Pranav Modh","@id":"https:\/\/www.botreetechnologies.com\/blog\/#\/schema\/person\/5302c63509dd2f73e7546d4998e7d412"},"headline":"Decision Tree Algorithm in Machine Learning","datePublished":"2020-05-13T12:22:36+00:00","dateModified":"2026-03-27T11:03:24+00:00","mainEntityOfPage":{"@id":"https:\/\/www.botreetechnologies.com\/blog\/decision-tree-algorithm-in-machine-learning\/"},"wordCount":808,"commentCount":8,"image":{"@id":"https:\/\/www.botreetechnologies.com\/blog\/decision-tree-algorithm-in-machine-learning\/#primaryimage"},"thumbnailUrl":"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2020\/05\/machine-learning-algorithm.jpg","articleSection":["Automation","Machine Learning"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.botreetechnologies.com\/blog\/decision-tree-algorithm-in-machine-learning\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.botreetechnologies.com\/blog\/decision-tree-algorithm-in-machine-learning\/","url":"https:\/\/www.botreetechnologies.com\/blog\/decision-tree-algorithm-in-machine-learning\/","name":"Decision Tree Algorithm in Machine Learning","isPartOf":{"@id":"https:\/\/www.botreetechnologies.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.botreetechnologies.com\/blog\/decision-tree-algorithm-in-machine-learning\/#primaryimage"},"image":{"@id":"https:\/\/www.botreetechnologies.com\/blog\/decision-tree-algorithm-in-machine-learning\/#primaryimage"},"thumbnailUrl":"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2020\/05\/machine-learning-algorithm.jpg","datePublished":"2020-05-13T12:22:36+00:00","dateModified":"2026-03-27T11:03:24+00:00","author":{"@id":"https:\/\/www.botreetechnologies.com\/blog\/#\/schema\/person\/5302c63509dd2f73e7546d4998e7d412"},"description":"The decision tree algorithm is a Machine Learning algorithm for major classification problems. Learn everything you need to know about decision tree algorithms and how they work with Machine Learning models.","breadcrumb":{"@id":"https:\/\/www.botreetechnologies.com\/blog\/decision-tree-algorithm-in-machine-learning\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.botreetechnologies.com\/blog\/decision-tree-algorithm-in-machine-learning\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.botreetechnologies.com\/blog\/decision-tree-algorithm-in-machine-learning\/#primaryimage","url":"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2020\/05\/machine-learning-algorithm.jpg","contentUrl":"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2020\/05\/machine-learning-algorithm.jpg","width":852,"height":479,"caption":"Decision Tree Algorithm in Machine Learning"},{"@type":"BreadcrumbList","@id":"https:\/\/www.botreetechnologies.com\/blog\/decision-tree-algorithm-in-machine-learning\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.botreetechnologies.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Decision Tree Algorithm in Machine Learning"}]},{"@type":"WebSite","@id":"https:\/\/www.botreetechnologies.com\/blog\/#website","url":"https:\/\/www.botreetechnologies.com\/blog\/","name":"BoTree Technologies","description":"Committed to inspire generation.","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.botreetechnologies.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.botreetechnologies.com\/blog\/#\/schema\/person\/5302c63509dd2f73e7546d4998e7d412","name":"Pranav Modh","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2020\/10\/pranav-modh-150x150.png","url":"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2020\/10\/pranav-modh-150x150.png","contentUrl":"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2020\/10\/pranav-modh-150x150.png","caption":"Pranav Modh"},"description":"I am a passionate Python developer worked on several projects on web development using Django. I am enthusiastic about working on machine learning and data science projects. I love to explore new technologies and apart from it, I like to listen to music, play computer and mobile games."}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.botreetechnologies.com\/blog\/wp-json\/wp\/v2\/posts\/10165","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.botreetechnologies.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.botreetechnologies.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.botreetechnologies.com\/blog\/wp-json\/wp\/v2\/users\/61"}],"replies":[{"embeddable":true,"href":"https:\/\/www.botreetechnologies.com\/blog\/wp-json\/wp\/v2\/comments?post=10165"}],"version-history":[{"count":4,"href":"https:\/\/www.botreetechnologies.com\/blog\/wp-json\/wp\/v2\/posts\/10165\/revisions"}],"predecessor-version":[{"id":15967,"href":"https:\/\/www.botreetechnologies.com\/blog\/wp-json\/wp\/v2\/posts\/10165\/revisions\/15967"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.botreetechnologies.com\/blog\/wp-json\/wp\/v2\/media\/14439"}],"wp:attachment":[{"href":"https:\/\/www.botreetechnologies.com\/blog\/wp-json\/wp\/v2\/media?parent=10165"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.botreetechnologies.com\/blog\/wp-json\/wp\/v2\/categories?post=10165"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.botreetechnologies.com\/blog\/wp-json\/wp\/v2\/tags?post=10165"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}