{"id":2094,"date":"2014-03-02T13:55:57","date_gmt":"2014-03-02T13:55:57","guid":{"rendered":"http:\/\/www.garysieling.com\/blog\/?p=2094"},"modified":"2020-03-31T00:46:31","modified_gmt":"2020-03-31T00:46:31","slug":"sklearn-gini-vs-entropy-criteria","status":"publish","type":"post","link":"https:\/\/www.garysieling.com\/blog\/sklearn-gini-vs-entropy-criteria\/","title":{"rendered":"Decision Trees: &#8220;Gini&#8221; vs. &#8220;Entropy&#8221; criteria"},"content":{"rendered":"<p>The scikit-learn documentation<sup><a href=\"#footnote_1_2094\" id=\"identifier_1_2094\" class=\"footnote-link footnote-identifier-link\" title=\"http:\/\/scikit-learn.org\/stable\/modules\/generated\/sklearn.tree.DecisionTreeClassifier.html\">1<\/a><\/sup> has an argument to control how the decision tree algorithm splits nodes:<\/p>\n<pre>\ncriterion : string, optional (default=\u201dgini\u201d)\nThe function to measure the quality of a split. \nSupported criteria are \u201cgini\u201d for the Gini impurity \nand \u201centropy\u201d for the information gain.\n<\/pre>\n<p>It seems like something that could be important since this determines the formula used to partition your dataset at each point in the dataset. <\/p>\n<p>Unfortunately the documentation tells you nothing about what you should use, other than trying each to see what happens, so here&#8217;s what I found (spoiler: it doesn&#8217;t appear to matter):<\/p>\n<ul>\n<li>Gini is intended for continuous attributes, and Entropy for attributes that occur in classes (e.g. colors<sup><a href=\"#footnote_2_2094\" id=\"identifier_2_2094\" class=\"footnote-link footnote-identifier-link\" title=\"http:\/\/paginas.fe.up.pt\/~ec\/files_1011\/week%2008%20-%20Decision%20Trees.pdf\">2<\/a><\/sup><\/li>\n<li>&#8220;Gini&#8221; will tend to find the largest class, and &#8220;entropy&#8221; tends to find groups of classes that make up ~50% of the data((http:\/\/paginas.fe.up.pt\/~ec\/files_1011\/week%2008%20-%20Decision%20Trees.pdf))<\/li>\n<li>&#8220;Gini&#8221; to minimize misclassification<sup><a href=\"#footnote_3_2094\" id=\"identifier_3_2094\" class=\"footnote-link footnote-identifier-link\" title=\"http:\/\/www.quora.com\/Machine-Learning\/Are-gini-index-entropy-or-classification-error-measures-causing-any-difference-on-Decision-Tree-classification\">3<\/a><\/sup><\/li>\n<li>&#8220;Entropy&#8221; for exploratory analysis<sup><a href=\"#footnote_3_2094\" id=\"identifier_4_2094\" class=\"footnote-link footnote-identifier-link\" title=\"http:\/\/www.quora.com\/Machine-Learning\/Are-gini-index-entropy-or-classification-error-measures-causing-any-difference-on-Decision-Tree-classification\">3<\/a><\/sup><\/li>\n<li>Some studies show this doesn&#8217;t matter &#8211; these differ less than 2% of the time<sup><a href=\"#footnote_4_2094\" id=\"identifier_5_2094\" class=\"footnote-link footnote-identifier-link\" title=\"https:\/\/rapid-i.com\/rapidforum\/index.php?topic=3060.0\">4<\/a><\/sup><\/li>\n<\/li>\n<li>Entropy may be a little slower to compute<sup><a href=\"#footnote_5_2094\" id=\"identifier_6_2094\" class=\"footnote-link footnote-identifier-link\" title=\"http:\/\/stats.stackexchange.com\/questions\/19639\/which-is-a-better-cost-function-for-a-random-forest-tree-gini-index-or-entropy\">5<\/a><\/sup><\/li>\n<\/ul>\n<ol class=\"footnotes\"><li id=\"footnote_1_2094\" class=\"footnote\">http:\/\/scikit-learn.org\/stable\/modules\/generated\/sklearn.tree.DecisionTreeClassifier.html<span class=\"footnote-back-link-wrapper\"> [<a href=\"#identifier_1_2094\" class=\"footnote-link footnote-back-link\">&#8617;<\/a>]<\/span><\/li><li id=\"footnote_2_2094\" class=\"footnote\">http:\/\/paginas.fe.up.pt\/~ec\/files_1011\/week%2008%20-%20Decision%20Trees.pdf<span class=\"footnote-back-link-wrapper\"> [<a href=\"#identifier_2_2094\" class=\"footnote-link footnote-back-link\">&#8617;<\/a>]<\/span><\/li><li id=\"footnote_3_2094\" class=\"footnote\">http:\/\/www.quora.com\/Machine-Learning\/Are-gini-index-entropy-or-classification-error-measures-causing-any-difference-on-Decision-Tree-classification<span class=\"footnote-back-link-wrapper\"> [<a href=\"#identifier_3_2094\" class=\"footnote-link footnote-back-link\">&#8617;<\/a>]<\/span><span class=\"footnote-back-link-wrapper\"> [<a href=\"#identifier_4_2094\" class=\"footnote-link footnote-back-link\">&#8617;<\/a>]<\/span><\/li><li id=\"footnote_4_2094\" class=\"footnote\">https:\/\/rapid-i.com\/rapidforum\/index.php?topic=3060.0<span class=\"footnote-back-link-wrapper\"> [<a href=\"#identifier_5_2094\" class=\"footnote-link footnote-back-link\">&#8617;<\/a>]<\/span><\/li><li id=\"footnote_5_2094\" class=\"footnote\">http:\/\/stats.stackexchange.com\/questions\/19639\/which-is-a-better-cost-function-for-a-random-forest-tree-gini-index-or-entropy<span class=\"footnote-back-link-wrapper\"> [<a href=\"#identifier_6_2094\" class=\"footnote-link footnote-back-link\">&#8617;<\/a>]<\/span><\/li><\/ol>","protected":false},"excerpt":{"rendered":"<p>The scikit-learn documentation1 has an argument to control how the decision tree algorithm splits nodes: criterion : string, optional (default=\u201dgini\u201d) The function to measure the quality of a split. Supported criteria are \u201cgini\u201d for the Gini impurity and \u201centropy\u201d for the information gain. It seems like something that could be important since this determines the &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.garysieling.com\/blog\/sklearn-gini-vs-entropy-criteria\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Decision Trees: &#8220;Gini&#8221; vs. &#8220;Entropy&#8221; criteria&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[5,6],"tags":[140,152,352,447,550],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.9 - aioseo.com -->\n\t<meta name=\"description\" content=\"The scikit-learn documentation ((http:\/\/scikit-learn.org\/stable\/modules\/generated\/sklearn.tree.DecisionTreeClassifier.html)) has an argument to control how the decision tree algorithm splits nodes: criterion : string, optional (default=\u201dgini\u201d) The function to measure the quality of a split. Supported criteria are \u201cgini\u201d for the Gini impurity and \u201centropy\u201d for the information gain. It seems like something that could be important since this determines\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"gary\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/www.garysieling.com\/blog\/sklearn-gini-vs-entropy-criteria\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 4.9.9\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"Gary Sieling - Software Engineer\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"Decision Trees: \u201cGini\u201d vs. \u201cEntropy\u201d criteria - Gary Sieling\" \/>\n\t\t<meta property=\"og:description\" content=\"The scikit-learn documentation ((http:\/\/scikit-learn.org\/stable\/modules\/generated\/sklearn.tree.DecisionTreeClassifier.html)) has an argument to control how the decision tree algorithm splits nodes: criterion : string, optional (default=\u201dgini\u201d) The function to measure the quality of a split. Supported criteria are \u201cgini\u201d for the Gini impurity and \u201centropy\u201d for the information gain. It seems like something that could be important since this determines\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/www.garysieling.com\/blog\/sklearn-gini-vs-entropy-criteria\/\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2014-03-02T13:55:57+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2020-03-31T00:46:31+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Decision Trees: \u201cGini\u201d vs. \u201cEntropy\u201d criteria - Gary Sieling\" \/>\n\t\t<meta name=\"twitter:description\" content=\"The scikit-learn documentation ((http:\/\/scikit-learn.org\/stable\/modules\/generated\/sklearn.tree.DecisionTreeClassifier.html)) has an argument to control how the decision tree algorithm splits nodes: criterion : string, optional (default=\u201dgini\u201d) The function to measure the quality of a split. Supported criteria are \u201cgini\u201d for the Gini impurity and \u201centropy\u201d for the information gain. It seems like something that could be important since this determines\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"BlogPosting\",\"@id\":\"https:\\\/\\\/www.garysieling.com\\\/blog\\\/sklearn-gini-vs-entropy-criteria\\\/#blogposting\",\"name\":\"Decision Trees: \\u201cGini\\u201d vs. \\u201cEntropy\\u201d criteria - Gary Sieling\",\"headline\":\"Decision Trees: &#8220;Gini&#8221; vs. &#8220;Entropy&#8221; criteria\",\"author\":{\"@id\":\"https:\\\/\\\/www.garysieling.com\\\/blog\\\/author\\\/gary\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/www.garysieling.com\\\/blog\\\/#organization\"},\"datePublished\":\"2014-03-02T13:55:57+00:00\",\"dateModified\":\"2020-03-31T00:46:31+00:00\",\"inLanguage\":\"en-US\",\"commentCount\":5,\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.garysieling.com\\\/blog\\\/sklearn-gini-vs-entropy-criteria\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.garysieling.com\\\/blog\\\/sklearn-gini-vs-entropy-criteria\\\/#webpage\"},\"articleSection\":\"Data Mining, Data Science, data analysis, data science, machine learning, python, tree\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.garysieling.com\\\/blog\\\/sklearn-gini-vs-entropy-criteria\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.garysieling.com\\\/blog#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.garysieling.com\\\/blog\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.garysieling.com\\\/blog\\\/category\\\/data-mining\\\/#listItem\",\"name\":\"Data Mining\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.garysieling.com\\\/blog\\\/category\\\/data-mining\\\/#listItem\",\"position\":2,\"name\":\"Data Mining\",\"item\":\"https:\\\/\\\/www.garysieling.com\\\/blog\\\/category\\\/data-mining\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.garysieling.com\\\/blog\\\/sklearn-gini-vs-entropy-criteria\\\/#listItem\",\"name\":\"Decision Trees: &#8220;Gini&#8221; vs. &#8220;Entropy&#8221; criteria\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.garysieling.com\\\/blog#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.garysieling.com\\\/blog\\\/sklearn-gini-vs-entropy-criteria\\\/#listItem\",\"position\":3,\"name\":\"Decision Trees: &#8220;Gini&#8221; vs. &#8220;Entropy&#8221; criteria\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.garysieling.com\\\/blog\\\/category\\\/data-mining\\\/#listItem\",\"name\":\"Data Mining\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.garysieling.com\\\/blog\\\/#organization\",\"name\":\"Gary Sieling\",\"description\":\"Software Engineer\",\"url\":\"https:\\\/\\\/www.garysieling.com\\\/blog\\\/\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.garysieling.com\\\/blog\\\/author\\\/gary\\\/#author\",\"url\":\"https:\\\/\\\/www.garysieling.com\\\/blog\\\/author\\\/gary\\\/\",\"name\":\"gary\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/www.garysieling.com\\\/blog\\\/sklearn-gini-vs-entropy-criteria\\\/#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0be925276d848ffe98a6a9dc8cf33e67?s=96&d=identicon&r=g\",\"width\":96,\"height\":96,\"caption\":\"gary\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.garysieling.com\\\/blog\\\/sklearn-gini-vs-entropy-criteria\\\/#webpage\",\"url\":\"https:\\\/\\\/www.garysieling.com\\\/blog\\\/sklearn-gini-vs-entropy-criteria\\\/\",\"name\":\"Decision Trees: \\u201cGini\\u201d vs. \\u201cEntropy\\u201d criteria - Gary Sieling\",\"description\":\"The scikit-learn documentation ((http:\\\/\\\/scikit-learn.org\\\/stable\\\/modules\\\/generated\\\/sklearn.tree.DecisionTreeClassifier.html)) has an argument to control how the decision tree algorithm splits nodes: criterion : string, optional (default=\\u201dgini\\u201d) The function to measure the quality of a split. Supported criteria are \\u201cgini\\u201d for the Gini impurity and \\u201centropy\\u201d for the information gain. It seems like something that could be important since this determines\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.garysieling.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.garysieling.com\\\/blog\\\/sklearn-gini-vs-entropy-criteria\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/www.garysieling.com\\\/blog\\\/author\\\/gary\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/www.garysieling.com\\\/blog\\\/author\\\/gary\\\/#author\"},\"datePublished\":\"2014-03-02T13:55:57+00:00\",\"dateModified\":\"2020-03-31T00:46:31+00:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.garysieling.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.garysieling.com\\\/blog\\\/\",\"name\":\"Gary Sieling\",\"description\":\"Software Engineer\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.garysieling.com\\\/blog\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Decision Trees: \u201cGini\u201d vs. \u201cEntropy\u201d criteria - Gary Sieling","description":"The scikit-learn documentation ((http:\/\/scikit-learn.org\/stable\/modules\/generated\/sklearn.tree.DecisionTreeClassifier.html)) has an argument to control how the decision tree algorithm splits nodes: criterion : string, optional (default=\u201dgini\u201d) The function to measure the quality of a split. Supported criteria are \u201cgini\u201d for the Gini impurity and \u201centropy\u201d for the information gain. It seems like something that could be important since this determines","canonical_url":"https:\/\/www.garysieling.com\/blog\/sklearn-gini-vs-entropy-criteria\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"BlogPosting","@id":"https:\/\/www.garysieling.com\/blog\/sklearn-gini-vs-entropy-criteria\/#blogposting","name":"Decision Trees: \u201cGini\u201d vs. \u201cEntropy\u201d criteria - Gary Sieling","headline":"Decision Trees: &#8220;Gini&#8221; vs. &#8220;Entropy&#8221; criteria","author":{"@id":"https:\/\/www.garysieling.com\/blog\/author\/gary\/#author"},"publisher":{"@id":"https:\/\/www.garysieling.com\/blog\/#organization"},"datePublished":"2014-03-02T13:55:57+00:00","dateModified":"2020-03-31T00:46:31+00:00","inLanguage":"en-US","commentCount":5,"mainEntityOfPage":{"@id":"https:\/\/www.garysieling.com\/blog\/sklearn-gini-vs-entropy-criteria\/#webpage"},"isPartOf":{"@id":"https:\/\/www.garysieling.com\/blog\/sklearn-gini-vs-entropy-criteria\/#webpage"},"articleSection":"Data Mining, Data Science, data analysis, data science, machine learning, python, tree"},{"@type":"BreadcrumbList","@id":"https:\/\/www.garysieling.com\/blog\/sklearn-gini-vs-entropy-criteria\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/www.garysieling.com\/blog#listItem","position":1,"name":"Home","item":"https:\/\/www.garysieling.com\/blog","nextItem":{"@type":"ListItem","@id":"https:\/\/www.garysieling.com\/blog\/category\/data-mining\/#listItem","name":"Data Mining"}},{"@type":"ListItem","@id":"https:\/\/www.garysieling.com\/blog\/category\/data-mining\/#listItem","position":2,"name":"Data Mining","item":"https:\/\/www.garysieling.com\/blog\/category\/data-mining\/","nextItem":{"@type":"ListItem","@id":"https:\/\/www.garysieling.com\/blog\/sklearn-gini-vs-entropy-criteria\/#listItem","name":"Decision Trees: &#8220;Gini&#8221; vs. &#8220;Entropy&#8221; criteria"},"previousItem":{"@type":"ListItem","@id":"https:\/\/www.garysieling.com\/blog#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/www.garysieling.com\/blog\/sklearn-gini-vs-entropy-criteria\/#listItem","position":3,"name":"Decision Trees: &#8220;Gini&#8221; vs. &#8220;Entropy&#8221; criteria","previousItem":{"@type":"ListItem","@id":"https:\/\/www.garysieling.com\/blog\/category\/data-mining\/#listItem","name":"Data Mining"}}]},{"@type":"Organization","@id":"https:\/\/www.garysieling.com\/blog\/#organization","name":"Gary Sieling","description":"Software Engineer","url":"https:\/\/www.garysieling.com\/blog\/"},{"@type":"Person","@id":"https:\/\/www.garysieling.com\/blog\/author\/gary\/#author","url":"https:\/\/www.garysieling.com\/blog\/author\/gary\/","name":"gary","image":{"@type":"ImageObject","@id":"https:\/\/www.garysieling.com\/blog\/sklearn-gini-vs-entropy-criteria\/#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/0be925276d848ffe98a6a9dc8cf33e67?s=96&d=identicon&r=g","width":96,"height":96,"caption":"gary"}},{"@type":"WebPage","@id":"https:\/\/www.garysieling.com\/blog\/sklearn-gini-vs-entropy-criteria\/#webpage","url":"https:\/\/www.garysieling.com\/blog\/sklearn-gini-vs-entropy-criteria\/","name":"Decision Trees: \u201cGini\u201d vs. \u201cEntropy\u201d criteria - Gary Sieling","description":"The scikit-learn documentation ((http:\/\/scikit-learn.org\/stable\/modules\/generated\/sklearn.tree.DecisionTreeClassifier.html)) has an argument to control how the decision tree algorithm splits nodes: criterion : string, optional (default=\u201dgini\u201d) The function to measure the quality of a split. Supported criteria are \u201cgini\u201d for the Gini impurity and \u201centropy\u201d for the information gain. It seems like something that could be important since this determines","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/www.garysieling.com\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/www.garysieling.com\/blog\/sklearn-gini-vs-entropy-criteria\/#breadcrumblist"},"author":{"@id":"https:\/\/www.garysieling.com\/blog\/author\/gary\/#author"},"creator":{"@id":"https:\/\/www.garysieling.com\/blog\/author\/gary\/#author"},"datePublished":"2014-03-02T13:55:57+00:00","dateModified":"2020-03-31T00:46:31+00:00"},{"@type":"WebSite","@id":"https:\/\/www.garysieling.com\/blog\/#website","url":"https:\/\/www.garysieling.com\/blog\/","name":"Gary Sieling","description":"Software Engineer","inLanguage":"en-US","publisher":{"@id":"https:\/\/www.garysieling.com\/blog\/#organization"}}]},"og:locale":"en_US","og:site_name":"Gary Sieling - Software Engineer","og:type":"article","og:title":"Decision Trees: \u201cGini\u201d vs. \u201cEntropy\u201d criteria - Gary Sieling","og:description":"The scikit-learn documentation ((http:\/\/scikit-learn.org\/stable\/modules\/generated\/sklearn.tree.DecisionTreeClassifier.html)) has an argument to control how the decision tree algorithm splits nodes: criterion : string, optional (default=\u201dgini\u201d) The function to measure the quality of a split. Supported criteria are \u201cgini\u201d for the Gini impurity and \u201centropy\u201d for the information gain. It seems like something that could be important since this determines","og:url":"https:\/\/www.garysieling.com\/blog\/sklearn-gini-vs-entropy-criteria\/","article:published_time":"2014-03-02T13:55:57+00:00","article:modified_time":"2020-03-31T00:46:31+00:00","twitter:card":"summary_large_image","twitter:title":"Decision Trees: \u201cGini\u201d vs. \u201cEntropy\u201d criteria - Gary Sieling","twitter:description":"The scikit-learn documentation ((http:\/\/scikit-learn.org\/stable\/modules\/generated\/sklearn.tree.DecisionTreeClassifier.html)) has an argument to control how the decision tree algorithm splits nodes: criterion : string, optional (default=\u201dgini\u201d) The function to measure the quality of a split. Supported criteria are \u201cgini\u201d for the Gini impurity and \u201centropy\u201d for the information gain. It seems like something that could be important since this determines"},"aioseo_meta_data":{"post_id":"2094","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"schema_type":"default","schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"limit_modified_date":false,"created":"2023-02-04 16:24:29","updated":"2026-07-06 01:08:45","ai":null,"breadcrumb_settings":null,"seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.garysieling.com\/blog\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.garysieling.com\/blog\/category\/data-mining\/\" title=\"Data Mining\">Data Mining<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tDecision Trees: \u201cGini\u201d vs. \u201cEntropy\u201d criteria\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/www.garysieling.com\/blog"},{"label":"Data Mining","link":"https:\/\/www.garysieling.com\/blog\/category\/data-mining\/"},{"label":"Decision Trees: &#8220;Gini&#8221; vs. &#8220;Entropy&#8221; criteria","link":"https:\/\/www.garysieling.com\/blog\/sklearn-gini-vs-entropy-criteria\/"}],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/posts\/2094"}],"collection":[{"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/comments?post=2094"}],"version-history":[{"count":1,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/posts\/2094\/revisions"}],"predecessor-version":[{"id":6499,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/posts\/2094\/revisions\/6499"}],"wp:attachment":[{"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/media?parent=2094"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/categories?post=2094"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/tags?post=2094"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}