Last active
February 22, 2018 06:13
-
-
Save sinhrks/cc9a88f74074fc296e12 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"cells": [ | |
{ | |
"cell_type": "code", | |
"execution_count": 1, | |
"metadata": { | |
"collapsed": false | |
}, | |
"outputs": [ | |
{ | |
"data": { | |
"text/plain": [ | |
"'0.4'" | |
] | |
}, | |
"execution_count": 1, | |
"metadata": {}, | |
"output_type": "execute_result" | |
} | |
], | |
"source": [ | |
"%matplotlib inline\n", | |
"import numpy as np\n", | |
"import xgboost as xgb\n", | |
"from sklearn import datasets\n", | |
"\n", | |
"import matplotlib.pyplot as plt\n", | |
"plt.style.use('ggplot')\n", | |
"\n", | |
"xgb.__version__" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 2, | |
"metadata": { | |
"collapsed": false | |
}, | |
"outputs": [], | |
"source": [ | |
"iris = datasets.load_iris()\n", | |
"dm = xgb.DMatrix(iris.data, label=iris.target)" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 3, | |
"metadata": { | |
"collapsed": false | |
}, | |
"outputs": [], | |
"source": [ | |
"np.random.seed(1) \n", | |
"\n", | |
"params={'objective': 'multi:softprob',\n", | |
" 'eval_metric': 'mlogloss',\n", | |
" 'eta': 0.3,\n", | |
" 'num_class': 3}\n", | |
"\n", | |
"bst = xgb.train(params, dm, num_boost_round=18)" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 4, | |
"metadata": { | |
"collapsed": false, | |
"scrolled": true | |
}, | |
"outputs": [ | |
{ | |
"data": { | |
"text/plain": [ | |
"<matplotlib.axes._subplots.AxesSubplot at 0x10300d490>" | |
] | |
}, | |
"execution_count": 4, | |
"metadata": {}, | |
"output_type": "execute_result" | |
}, | |
{ | |
"data": { | |
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAYAAAAEhCAYAAA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SJpuWePHkSS5YsAXDn4R4bN25EREQEGjRogI0bN2Lp\n0qX4xz/+YYWuiczxJDBJ6cMPP0RoaChCQ0Px0Ucf3XceR0dH5ObmIisrCxqNBv7+/gDuPKUuNzcX\nI0eOhFarhZOTE1q1agUA+Omnn9C/f38YDAY4OzsjODgYycnJMBqNpuW+8sor0Gq10Gq1SEhIwMCB\nA9GwYUNoNBoMHDgQ58+fR3Z2tvU3AkmPewAkpb/+9a9/eA7gpZdeQmxsLObPnw8A6NmzJwYOHGi6\nO+Pdk8i/l5ubi3r16pmGfXx8YDQazZ5e9fvDO1evXsWXX36J1atXmy3n2rVrPAxEVscAIKqAs7Mz\nQkJCEBISgosXL2LevHnw8/ODj48PsrOzYTQay4WAXq/H1atXTcPZ2dnQaDSoW7fufT/V+/j4YMiQ\nIejSpYvV+yG6Fw8BEVXg559/xpUrVyCEgIuLCzQaDTQaDfz8/ODp6YmvvvoKxcXFKCkpwenTpwEA\nnTt3xtatW5GVlYWioiKsXbsWnTt3vu/eAgA899xziIuLw6+//grgzgPh9+7da7MeSW7cAyCqwOXL\nl/HZZ5/h+vXrcHd3R58+ffDoo48CAN555x188cUXCA8PBwA888wzaNWqFbp3745r165h9uzZuH37\nNtq1a4ewsLAK1xEUFISioiIsWbIEV69ehaurK9q2bYunn37aJj2S3PhAGCIiSfEQEBGRpBgARESS\nYgAQEUmKAUBEJCkGABGRpBgARESSYgAQEUmKAUBEJCkGABGRpP4fX6SSGF9/NUgAAAAASUVORK5C\nYII=\n", | |
"text/plain": [ | |
"<matplotlib.figure.Figure at 0x10637cf90>" | |
] | |
}, | |
"metadata": {}, | |
"output_type": "display_data" | |
} | |
], | |
"source": [ | |
"xgb.plot_importance(bst)" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 5, | |
"metadata": { | |
"collapsed": false, | |
"scrolled": true | |
}, | |
"outputs": [ | |
{ | |
"data": { | |
"text/plain": [ | |
"<matplotlib.axes._subplots.AxesSubplot at 0x103018750>" | |
] | |
}, | |
"execution_count": 5, | |
"metadata": {}, | |
"output_type": "execute_result" | |
}, | |
{ | |
"data": { | |
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAYAAAAEhCAYAAAB2h3f0AAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAGAlJREFUeJzt3X9UlvX9x/HXfd+AiN6IgIjInBzFaZzlaiieqavMo0e2\npq0d8KhLTaWGujXLMz0eT27nRGtnzKmZ+eMsrZWLOsmm0SYhaZg5JJ0Lc41EoyEwEAxBVG6u7x+r\n+ysVhuh9X9x8no9/4rru6/Z+va9jvu7rx33jsCzLEgDAOE67AwAA7EEBAIChKAAAMBQFAACGogAA\nwFAUAAAYigIAOsHpdOrFF1+85jZvvvmmnE6nKisr/ZQKuDEUAPA5kydP1vz589utq6qq0n333edd\nDgoK0nPPPefvaMBNFWR3ACAQxMTEtFt2OBziM5QIdBwBAFeZN2+e9u3bpx07dsjpdMrlcmn//v3t\nTgENHTpUHo9H8+fP927TkbKyMt13333q37+/IiMjNXXqVL333nv+Gge4JgoAuMr69es1ceJEpaen\nq6qqSmfPntV3vvOddtscOXJELpdL69at827zZaqrqzVhwgTFxsaqqKhIhw8f1je+8Q3deeedqq2t\n9cc4wDVRAMBVwsPDFRISot69eysmJkYxMTEKDg5ut010dLQkqV+/ft5tvsymTZuUkJCgjRs3Kikp\nSYmJiVq3bp0iIiL0wgsv+HwW4KtwDQDwkeLiYpWUlMjtdrdb39LSorKyMptSAf+PAgB8xLIsTZ48\nWU899dQXHuvXr58NiYD2KADgc0JCQtTa2vqV23g8nmtuk5ycrO3bt2vw4MHq1avXzYwI3BRcAwA+\nJyEhQSUlJTp16pRqa2t15cqVL91m3759Onv2bIcXdJcsWSKPx6Pp06erqKhIp0+fVlFRkVatWqVD\nhw75egzgK1EAwOc88sgjio6O1ujRozVw4EC9/fbbX9gmOztbJSUlGjp0qAYOHOhd73A4vD/HxMTo\n0KFDio6O1g9/+EONHDlSc+bMUU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8///lPxcTEyO12\nS5JSUlL0wQcfGDP/Zzr6+34z/03s9kcAw4YNU1VVlWpqatTa2qq3335bycnJdsfyKcuy9Mwzz2jw\n4MH63ve+512fnJysN998U5K0f/9+jRkzxqaEvjVr1ixt2rRJGzdu1MMPP6ykpCQtXbrUmPkjIiIU\nHR2tyspKSdLx48f1ta99Td/+9reNmH/AgAH697//rcuXL8uyLB0/flzx8fHGzP+Zjv6+Jycn6+DB\ng2ptbVVNTY2qqqq8bxauV0B8Evjo0aPtbgO999577Y7kUydPntRjjz2mIUOGeA/tZs2apeHDh/fY\n2+A6cuLECe3evVu/+MUvjLoN9PTp09q8ebNaW1s1cOBAZWZmqq2tzZj5c3JydOjQITmdTiUkJOih\nhx5SS0tLj53/97//vd5//3198sknioiIUFpamsaMGdPhvK+++qoKCwvlcrk0b948fetb3+rS6wZE\nAQAAbr5ufwoIAOAbFAAAGIoCAABDUQAAYCgKAAAMRQEAgKEoAAAwFAUAAIaiAADAUBQA0AVVVVV6\n4IEHVF5eLul/X1u+YMECnThxwuZkQOdRAEAXxMbGavbs2dqwYYMuX76sTZs26a677tItt9xidzSg\n0/guIOAG/OY3v1F1dbWcTqeeeOIJBQV1+29YB7w4AgBuwKRJk/Txxx9r2rRp/OOPgEMBAF3U0tKi\nHTt2aNKkScrJydGFCxfsjgRcFwoA6KJnn31Ww4YN04MPPqjbb79dW7dutTsScF0oAKALiouLdfz4\ncS1atEiSdP/996u8vFxFRUU2JwM6j4vAAGAojgAAwFAUAAAYigIAAENRAABgKAoAAAxFAQCAoSgA\nADAUBQAAhqIAAMBQ/wcM4BRpdEXoCQAAAABJRU5ErkJggg==\n", | |
"text/plain": [ | |
"<matplotlib.figure.Figure at 0x106411d10>" | |
] | |
}, | |
"metadata": {}, | |
"output_type": "display_data" | |
} | |
], | |
"source": [ | |
"# overwrite colors and labels\n", | |
"xgb.plot_importance(bst, color='red', title='title', xlabel='x', ylabel='y')" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 6, | |
"metadata": { | |
"collapsed": false | |
}, | |
"outputs": [ | |
{ | |
"data": { | |
"text/plain": [ | |
"<matplotlib.axes._subplots.AxesSubplot at 0x1066c6050>" | |
] | |
}, | |
"execution_count": 6, | |
"metadata": {}, | |
"output_type": "execute_result" | |
}, | |
{ | |
"data": { | |
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAW4AAAD/CAYAAADR7zzdAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAE8VJREFUeJzt3X9s1Hcdx/HX9dqutHyhXEtpu5PRrJCRi5vTli7Z4pSR\nLatbxhLTEsAMdauzgE5cI2RphiZWl4g4kbFWosOpuG4Zp7BOuXUVMnRYEESP4ewoiFZaW9qutKWj\n169/bDtXZykt+971c9/n4x/u+6P3eb+/aV79fj/f73fz2LZtCwBgjKR4FwAAmBiCGwAM43hwh8Nh\np4eY0uif/t3M7f1LzhwDgtth9E//bub2/iVDgxsA8MEiuAHAMB4eBwQAsyTHYpC2trZYDDMlWZal\nvr6+eJcRN/RP/27uX5r8McjPzx9zG1MlAGAYghsADENwA4BhCG4AMAzBDQCGIbgBwDAENwAYhuAG\nAMMQ3ABgGIIbAAxDcAOAYQhuADAMwQ0AhiG4AcAwBDcAGIbgBgDDENwAYBiCGwAMQ3ADgGEIbgAw\nTEz+Z8HNzemxGGZK8nqlSIT+3Yr+ze/f748oL28o3mWMMm5wNzQ0KBQKqa2tTXPnzpVt25o2bZru\nv/9+XXPNNZc1yNKlmVdcKADEQzDYo7y8/y5v375dO3fulG3bWr58ue6//35t2rRJP//5z5WVlSVJ\n2rBhgz75yU86VtO4wR0KhVRdXa3Ozk75/X6lp6fr6NGjqqur0ze/+U3HCgOAqebEiRPauXOnXnjh\nBaWkpGjFihVasmSJPB6PKioq9IUvfCEmdVxyjruurk7t7e2qqalRS0uL0tPfvuQpLCxUV1dXTAoE\ngKmipaVFN954o9LS0uT1enXTTTfpxRdflCTZth2zOi4Z3BUVFZo1a5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9Pp+6urqiy11dXfL5fE4NN2UMDw9r06ZN+vjHP65FixZJevuvbk9P\njzIzM9Xd3a2ZM2fGuUpn/PWvf9Xhw4d15MgRXbx4UYODg9qyZYtr+s/KypLP51NhYaEk6aabbtKu\nXbuUmZnpiv7//Oc/KycnR5ZlSZJKSkr0+uuvu6b/d431+/5BZqJjZ9zXXnutzp49q46ODg0PD+t3\nv/udioqKnBpuSrBtW08++aSuvvpqfepTn4quLyoq0m9/+1tJ0r59+1RcXBynCp21fPlybdu2TVu3\nbtVDDz2kQCCgtWvXuqb/zMxMZWdnq62tTZJ07NgxfehDH9LHPvYxV/Q/e/Zs/e1vf9Nbb70l27Z1\n7Ngx+f1+1/T/rrF+34uKinTgwAENDw+ro6NDZ8+ejf6RnyhH35w8cuTIqMcB7733XqeGmhJOnDih\nRx99VHPnzo1eAi1fvlyFhYUJ+zjUWI4fP67du3fra1/7mqseBzx16pRqa2s1PDysOXPmqLKyUiMj\nI67pv76+Xr///e+VlJSkgoICPfjgg7pw4ULC9v+9731Pr732mt58801lZmaqrKxMxcXFY/b7/PPP\nq6mpSV6vV6tWrdJHPvKRSY3LK+8AYBhuTgKAYQhuADAMwQ0AhiG4AcAwBDcAGIbgBgDDENwAYBiC\nGwAM8x9Q8Xo7GQI8ggAAAABJRU5ErkJggg==\n", | |
"text/plain": [ | |
"<matplotlib.figure.Figure at 0x10641b610>" | |
] | |
}, | |
"metadata": {}, | |
"output_type": "display_data" | |
} | |
], | |
"source": [ | |
"# overwrite colors and disable labels\n", | |
"xgb.plot_importance(bst, color=['r', 'r', 'b', 'b'], title=None, xlabel=None, ylabel=None)" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 7, | |
"metadata": { | |
"collapsed": false, | |
"scrolled": true | |
}, | |
"outputs": [ | |
{ | |
"data": { | |
"image/svg+xml": [ | |
"<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?>\n", | |
"<!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.1//EN\"\n", | |
" \"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd\">\n", | |
"<!-- Generated by graphviz version 2.28.0 (20120430.0057)\n", | |
" -->\n", | |
"<!-- Title: _anonymous_0 Pages: 1 -->\n", | |
"<svg width=\"588pt\" height=\"596pt\"\n", | |
" viewBox=\"0.00 0.00 588.00 596.00\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\">\n", | |
"<g id=\"graph1\" class=\"graph\" transform=\"scale(1 1) rotate(0) translate(4 592)\">\n", | |
"<title>_anonymous_0</title>\n", | |
"<polygon fill=\"white\" stroke=\"white\" points=\"-4,5 -4,-592 585,-592 585,5 -4,5\"/>\n", | |
"<!-- 0 -->\n", | |
"<g id=\"node1\" class=\"node\"><title>0</title>\n", | |
"<ellipse fill=\"none\" stroke=\"black\" cx=\"284\" cy=\"-546\" rx=\"41.1405\" ry=\"41.3534\"/>\n", | |
"<text text-anchor=\"middle\" x=\"284\" y=\"-540.4\" font-family=\"Times,serif\" font-size=\"14.00\">f2<2.45</text>\n", | |
"</g>\n", | |
"<!-- 1 -->\n", | |
"<g id=\"node3\" class=\"node\"><title>1</title>\n", | |
"<polygon fill=\"none\" stroke=\"black\" points=\"284.146,-426 183.854,-426 183.854,-390 284.146,-390 284.146,-426\"/>\n", | |
"<text text-anchor=\"middle\" x=\"234\" y=\"-402.4\" font-family=\"Times,serif\" font-size=\"14.00\">leaf=-0.215311</text>\n", | |
"</g>\n", | |
"<!-- 0->1 -->\n", | |
"<g id=\"edge2\" class=\"edge\"><title>0->1</title>\n", | |
"<path fill=\"none\" stroke=\"#0000ff\" d=\"M258.296,-513.146C252.666,-504.744 247.332,-495.39 243.772,-486 237.777,-470.183 235.311,-451.363 234.356,-436.289\"/>\n", | |
"<polygon fill=\"#0000ff\" stroke=\"#0000ff\" points=\"237.842,-435.904 233.898,-426.071 230.849,-436.217 237.842,-435.904\"/>\n", | |
"<text text-anchor=\"middle\" x=\"278.614\" y=\"-471.4\" font-family=\"Times,serif\" font-size=\"14.00\">yes, missing</text>\n", | |
"</g>\n", | |
"<!-- 2 -->\n", | |
"<g id=\"node5\" class=\"node\"><title>2</title>\n", | |
"<ellipse fill=\"none\" stroke=\"black\" cx=\"344\" cy=\"-408\" rx=\"41.1405\" ry=\"41.3534\"/>\n", | |
"<text text-anchor=\"middle\" x=\"344\" y=\"-402.4\" font-family=\"Times,serif\" font-size=\"14.00\">f3<1.75</text>\n", | |
"</g>\n", | |
"<!-- 0->2 -->\n", | |
"<g id=\"edge4\" class=\"edge\"><title>0->2</title>\n", | |
"<path fill=\"none\" stroke=\"#ff0000\" d=\"M302.371,-508.691C305.996,-501.234 309.697,-493.4 313,-486 317.273,-476.426 321.621,-466.076 325.656,-456.163\"/>\n", | |
"<polygon fill=\"#ff0000\" stroke=\"#ff0000\" points=\"328.924,-457.416 329.416,-446.832 322.432,-454.799 328.924,-457.416\"/>\n", | |
"<text text-anchor=\"middle\" x=\"328\" y=\"-471.4\" font-family=\"Times,serif\" font-size=\"14.00\">no</text>\n", | |
"</g>\n", | |
"<!-- 3 -->\n", | |
"<g id=\"node7\" class=\"node\"><title>3</title>\n", | |
"<ellipse fill=\"none\" stroke=\"black\" cx=\"281\" cy=\"-270\" rx=\"41.1405\" ry=\"41.3534\"/>\n", | |
"<text text-anchor=\"middle\" x=\"281\" y=\"-264.4\" font-family=\"Times,serif\" font-size=\"14.00\">f2<4.95</text>\n", | |
"</g>\n", | |
"<!-- 2->3 -->\n", | |
"<g id=\"edge6\" class=\"edge\"><title>2->3</title>\n", | |
"<path fill=\"none\" stroke=\"#0000ff\" d=\"M315.322,-377.747C307.944,-368.813 300.704,-358.546 295.772,-348 291.877,-339.669 289.009,-330.373 286.897,-321.2\"/>\n", | |
"<polygon fill=\"#0000ff\" stroke=\"#0000ff\" points=\"290.315,-320.447 284.889,-311.347 283.456,-321.845 290.315,-320.447\"/>\n", | |
"<text text-anchor=\"middle\" x=\"330.614\" y=\"-333.4\" font-family=\"Times,serif\" font-size=\"14.00\">yes, missing</text>\n", | |
"</g>\n", | |
"<!-- 4 -->\n", | |
"<g id=\"node9\" class=\"node\"><title>4</title>\n", | |
"<ellipse fill=\"none\" stroke=\"black\" cx=\"400\" cy=\"-270\" rx=\"41.1405\" ry=\"41.3534\"/>\n", | |
"<text text-anchor=\"middle\" x=\"400\" y=\"-264.4\" font-family=\"Times,serif\" font-size=\"14.00\">f2<4.85</text>\n", | |
"</g>\n", | |
"<!-- 2->4 -->\n", | |
"<g id=\"edge8\" class=\"edge\"><title>2->4</title>\n", | |
"<path fill=\"none\" stroke=\"#ff0000\" d=\"M359.45,-369.477C365.946,-353.704 373.577,-335.171 380.456,-318.464\"/>\n", | |
"<polygon fill=\"#ff0000\" stroke=\"#ff0000\" points=\"383.834,-319.452 384.406,-308.872 377.362,-316.786 383.834,-319.452\"/>\n", | |
"<text text-anchor=\"middle\" x=\"383\" y=\"-333.4\" font-family=\"Times,serif\" font-size=\"14.00\">no</text>\n", | |
"</g>\n", | |
"<!-- 5 -->\n", | |
"<g id=\"node11\" class=\"node\"><title>5</title>\n", | |
"<ellipse fill=\"none\" stroke=\"black\" cx=\"163\" cy=\"-132\" rx=\"41.1405\" ry=\"41.3534\"/>\n", | |
"<text text-anchor=\"middle\" x=\"163\" y=\"-126.4\" font-family=\"Times,serif\" font-size=\"14.00\">f3<1.55</text>\n", | |
"</g>\n", | |
"<!-- 3->5 -->\n", | |
"<g id=\"edge10\" class=\"edge\"><title>3->5</title>\n", | |
"<path fill=\"none\" stroke=\"#0000ff\" d=\"M247.024,-245.773C233.814,-235.733 219.154,-223.252 207.772,-210 199.665,-200.56 192.231,-189.447 185.847,-178.645\"/>\n", | |
"<polygon fill=\"#0000ff\" stroke=\"#0000ff\" points=\"188.734,-176.642 180.741,-169.688 182.653,-180.109 188.734,-176.642\"/>\n", | |
"<text text-anchor=\"middle\" x=\"242.614\" y=\"-195.4\" font-family=\"Times,serif\" font-size=\"14.00\">yes, missing</text>\n", | |
"</g>\n", | |
"<!-- 6 -->\n", | |
"<g id=\"node13\" class=\"node\"><title>6</title>\n", | |
"<ellipse fill=\"none\" stroke=\"black\" cx=\"281\" cy=\"-132\" rx=\"41.1405\" ry=\"41.3534\"/>\n", | |
"<text text-anchor=\"middle\" x=\"281\" y=\"-126.4\" font-family=\"Times,serif\" font-size=\"14.00\">f3<1.55</text>\n", | |
"</g>\n", | |
"<!-- 3->6 -->\n", | |
"<g id=\"edge12\" class=\"edge\"><title>3->6</title>\n", | |
"<path fill=\"none\" stroke=\"#ff0000\" d=\"M281,-228.564C281,-214.441 281,-198.408 281,-183.564\"/>\n", | |
"<polygon fill=\"#ff0000\" stroke=\"#ff0000\" points=\"284.5,-183.515 281,-173.515 277.5,-183.515 284.5,-183.515\"/>\n", | |
"<text text-anchor=\"middle\" x=\"288\" y=\"-195.4\" font-family=\"Times,serif\" font-size=\"14.00\">no</text>\n", | |
"</g>\n", | |
"<!-- 7 -->\n", | |
"<g id=\"node23\" class=\"node\"><title>7</title>\n", | |
"<polygon fill=\"none\" stroke=\"black\" points=\"459.435,-150 340.565,-150 340.565,-114 459.435,-114 459.435,-150\"/>\n", | |
"<text text-anchor=\"middle\" x=\"400\" y=\"-126.4\" font-family=\"Times,serif\" font-size=\"14.00\">leaf=-7.66345e-09</text>\n", | |
"</g>\n", | |
"<!-- 4->7 -->\n", | |
"<g id=\"edge22\" class=\"edge\"><title>4->7</title>\n", | |
"<path fill=\"none\" stroke=\"#0000ff\" d=\"M400,-228.564C400,-206.498 400,-179.771 400,-160.199\"/>\n", | |
"<polygon fill=\"#0000ff\" stroke=\"#0000ff\" points=\"403.5,-160.137 400,-150.137 396.5,-160.137 403.5,-160.137\"/>\n", | |
"<text text-anchor=\"middle\" x=\"434.614\" y=\"-195.4\" font-family=\"Times,serif\" font-size=\"14.00\">yes, missing</text>\n", | |
"</g>\n", | |
"<!-- 8 -->\n", | |
"<g id=\"node25\" class=\"node\"><title>8</title>\n", | |
"<polygon fill=\"none\" stroke=\"black\" points=\"580.028,-150 477.972,-150 477.972,-114 580.028,-114 580.028,-150\"/>\n", | |
"<text text-anchor=\"middle\" x=\"529\" y=\"-126.4\" font-family=\"Times,serif\" font-size=\"14.00\">leaf=-0.213812</text>\n", | |
"</g>\n", | |
"<!-- 4->8 -->\n", | |
"<g id=\"edge24\" class=\"edge\"><title>4->8</title>\n", | |
"<path fill=\"none\" stroke=\"#ff0000\" d=\"M433.195,-245.15C446.265,-235.02 460.989,-222.639 473,-210 487.944,-194.275 502.284,-174.435 512.711,-158.833\"/>\n", | |
"<polygon fill=\"#ff0000\" stroke=\"#ff0000\" points=\"515.816,-160.481 518.373,-150.2 509.962,-156.642 515.816,-160.481\"/>\n", | |
"<text text-anchor=\"middle\" x=\"495\" y=\"-195.4\" font-family=\"Times,serif\" font-size=\"14.00\">no</text>\n", | |
"</g>\n", | |
"<!-- 9 -->\n", | |
"<g id=\"node15\" class=\"node\"><title>9</title>\n", | |
"<polygon fill=\"none\" stroke=\"black\" points=\"96.5306,-36 -0.530646,-36 -0.530646,-0 96.5306,-0 96.5306,-36\"/>\n", | |
"<text text-anchor=\"middle\" x=\"48\" y=\"-12.4\" font-family=\"Times,serif\" font-size=\"14.00\">leaf=0.428571</text>\n", | |
"</g>\n", | |
"<!-- 5->9 -->\n", | |
"<g id=\"edge14\" class=\"edge\"><title>5->9</title>\n", | |
"<path fill=\"none\" stroke=\"#0000ff\" d=\"M129.943,-106.926C116.867,-96.7631 102.058,-84.4185 89.7725,-72 81.319,-63.4553 72.9322,-53.2472 65.9163,-44.0812\"/>\n", | |
"<polygon fill=\"#0000ff\" stroke=\"#0000ff\" points=\"68.689,-41.9446 59.896,-36.0341 63.0839,-46.138 68.689,-41.9446\"/>\n", | |
"<text text-anchor=\"middle\" x=\"124.614\" y=\"-57.4\" font-family=\"Times,serif\" font-size=\"14.00\">yes, missing</text>\n", | |
"</g>\n", | |
"<!-- 10 -->\n", | |
"<g id=\"node17\" class=\"node\"><title>10</title>\n", | |
"<polygon fill=\"none\" stroke=\"black\" points=\"211.531,-36 114.469,-36 114.469,-0 211.531,-0 211.531,-36\"/>\n", | |
"<text text-anchor=\"middle\" x=\"163\" y=\"-12.4\" font-family=\"Times,serif\" font-size=\"14.00\">leaf=0.128571</text>\n", | |
"</g>\n", | |
"<!-- 5->10 -->\n", | |
"<g id=\"edge16\" class=\"edge\"><title>5->10</title>\n", | |
"<path fill=\"none\" stroke=\"#ff0000\" d=\"M163,-90.5654C163,-75.9778 163,-59.8594 163,-46.6186\"/>\n", | |
"<polygon fill=\"#ff0000\" stroke=\"#ff0000\" points=\"166.5,-46.2698 163,-36.2699 159.5,-46.2699 166.5,-46.2698\"/>\n", | |
"<text text-anchor=\"middle\" x=\"170\" y=\"-57.4\" font-family=\"Times,serif\" font-size=\"14.00\">no</text>\n", | |
"</g>\n", | |
"<!-- 11 -->\n", | |
"<g id=\"node19\" class=\"node\"><title>11</title>\n", | |
"<polygon fill=\"none\" stroke=\"black\" points=\"332.028,-36 229.972,-36 229.972,-0 332.028,-0 332.028,-36\"/>\n", | |
"<text text-anchor=\"middle\" x=\"281\" y=\"-12.4\" font-family=\"Times,serif\" font-size=\"14.00\">leaf=-0.128571</text>\n", | |
"</g>\n", | |
"<!-- 6->11 -->\n", | |
"<g id=\"edge18\" class=\"edge\"><title>6->11</title>\n", | |
"<path fill=\"none\" stroke=\"#0000ff\" d=\"M281,-90.5654C281,-75.9778 281,-59.8594 281,-46.6186\"/>\n", | |
"<polygon fill=\"#0000ff\" stroke=\"#0000ff\" points=\"284.5,-46.2698 281,-36.2699 277.5,-46.2699 284.5,-46.2698\"/>\n", | |
"<text text-anchor=\"middle\" x=\"315.614\" y=\"-57.4\" font-family=\"Times,serif\" font-size=\"14.00\">yes, missing</text>\n", | |
"</g>\n", | |
"<!-- 12 -->\n", | |
"<g id=\"node21\" class=\"node\"><title>12</title>\n", | |
"<polygon fill=\"none\" stroke=\"black\" points=\"447.531,-36 350.469,-36 350.469,-0 447.531,-0 447.531,-36\"/>\n", | |
"<text text-anchor=\"middle\" x=\"399\" y=\"-12.4\" font-family=\"Times,serif\" font-size=\"14.00\">leaf=0.128571</text>\n", | |
"</g>\n", | |
"<!-- 6->12 -->\n", | |
"<g id=\"edge20\" class=\"edge\"><title>6->12</title>\n", | |
"<path fill=\"none\" stroke=\"#ff0000\" d=\"M312.384,-105.082C318.536,-100.054 324.955,-94.8429 331,-90 341.13,-81.8841 344.64,-80.9937 354,-72 362.93,-63.4198 371.929,-53.2046 379.509,-44.043\"/>\n", | |
"<polygon fill=\"#ff0000\" stroke=\"#ff0000\" points=\"382.448,-45.9746 386.027,-36.0025 377.011,-41.5662 382.448,-45.9746\"/>\n", | |
"<text text-anchor=\"middle\" x=\"377\" y=\"-57.4\" font-family=\"Times,serif\" font-size=\"14.00\">no</text>\n", | |
"</g>\n", | |
"</g>\n", | |
"</svg>\n" | |
], | |
"text/plain": [ | |
"<graphviz.dot.Digraph at 0x107091610>" | |
] | |
}, | |
"execution_count": 7, | |
"metadata": {}, | |
"output_type": "execute_result" | |
} | |
], | |
"source": [ | |
"xgb.to_graphviz(bst, num_trees=1)" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 8, | |
"metadata": { | |
"collapsed": false | |
}, | |
"outputs": [ | |
{ | |
"data": { | |
"image/svg+xml": [ | |
"<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?>\n", | |
"<!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.1//EN\"\n", | |
" \"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd\">\n", | |
"<!-- Generated by graphviz version 2.28.0 (20120430.0057)\n", | |
" -->\n", | |
"<!-- Title: _anonymous_0 Pages: 1 -->\n", | |
"<svg width=\"588pt\" height=\"596pt\"\n", | |
" viewBox=\"0.00 0.00 588.00 596.00\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\">\n", | |
"<g id=\"graph1\" class=\"graph\" transform=\"scale(1 1) rotate(0) translate(4 592)\">\n", | |
"<title>_anonymous_0</title>\n", | |
"<polygon fill=\"white\" stroke=\"white\" points=\"-4,5 -4,-592 585,-592 585,5 -4,5\"/>\n", | |
"<!-- 0 -->\n", | |
"<g id=\"node1\" class=\"node\"><title>0</title>\n", | |
"<ellipse fill=\"none\" stroke=\"black\" cx=\"284\" cy=\"-546\" rx=\"41.1405\" ry=\"41.3534\"/>\n", | |
"<text text-anchor=\"middle\" x=\"284\" y=\"-540.4\" font-family=\"Times,serif\" font-size=\"14.00\">f2<2.45</text>\n", | |
"</g>\n", | |
"<!-- 1 -->\n", | |
"<g id=\"node3\" class=\"node\"><title>1</title>\n", | |
"<polygon fill=\"none\" stroke=\"black\" points=\"284.146,-426 183.854,-426 183.854,-390 284.146,-390 284.146,-426\"/>\n", | |
"<text text-anchor=\"middle\" x=\"234\" y=\"-402.4\" font-family=\"Times,serif\" font-size=\"14.00\">leaf=-0.215311</text>\n", | |
"</g>\n", | |
"<!-- 0->1 -->\n", | |
"<g id=\"edge2\" class=\"edge\"><title>0->1</title>\n", | |
"<path fill=\"none\" stroke=\"#ff0000\" d=\"M258.296,-513.146C252.666,-504.744 247.332,-495.39 243.772,-486 237.777,-470.183 235.311,-451.363 234.356,-436.289\"/>\n", | |
"<polygon fill=\"#ff0000\" stroke=\"#ff0000\" points=\"237.842,-435.904 233.898,-426.071 230.849,-436.217 237.842,-435.904\"/>\n", | |
"<text text-anchor=\"middle\" x=\"278.614\" y=\"-471.4\" font-family=\"Times,serif\" font-size=\"14.00\">yes, missing</text>\n", | |
"</g>\n", | |
"<!-- 2 -->\n", | |
"<g id=\"node5\" class=\"node\"><title>2</title>\n", | |
"<ellipse fill=\"none\" stroke=\"black\" cx=\"344\" cy=\"-408\" rx=\"41.1405\" ry=\"41.3534\"/>\n", | |
"<text text-anchor=\"middle\" x=\"344\" y=\"-402.4\" font-family=\"Times,serif\" font-size=\"14.00\">f3<1.75</text>\n", | |
"</g>\n", | |
"<!-- 0->2 -->\n", | |
"<g id=\"edge4\" class=\"edge\"><title>0->2</title>\n", | |
"<path fill=\"none\" stroke=\"#0000ff\" d=\"M302.371,-508.691C305.996,-501.234 309.697,-493.4 313,-486 317.273,-476.426 321.621,-466.076 325.656,-456.163\"/>\n", | |
"<polygon fill=\"#0000ff\" stroke=\"#0000ff\" points=\"328.924,-457.416 329.416,-446.832 322.432,-454.799 328.924,-457.416\"/>\n", | |
"<text text-anchor=\"middle\" x=\"328\" y=\"-471.4\" font-family=\"Times,serif\" font-size=\"14.00\">no</text>\n", | |
"</g>\n", | |
"<!-- 3 -->\n", | |
"<g id=\"node7\" class=\"node\"><title>3</title>\n", | |
"<ellipse fill=\"none\" stroke=\"black\" cx=\"281\" cy=\"-270\" rx=\"41.1405\" ry=\"41.3534\"/>\n", | |
"<text text-anchor=\"middle\" x=\"281\" y=\"-264.4\" font-family=\"Times,serif\" font-size=\"14.00\">f2<4.95</text>\n", | |
"</g>\n", | |
"<!-- 2->3 -->\n", | |
"<g id=\"edge6\" class=\"edge\"><title>2->3</title>\n", | |
"<path fill=\"none\" stroke=\"#ff0000\" d=\"M315.322,-377.747C307.944,-368.813 300.704,-358.546 295.772,-348 291.877,-339.669 289.009,-330.373 286.897,-321.2\"/>\n", | |
"<polygon fill=\"#ff0000\" stroke=\"#ff0000\" points=\"290.315,-320.447 284.889,-311.347 283.456,-321.845 290.315,-320.447\"/>\n", | |
"<text text-anchor=\"middle\" x=\"330.614\" y=\"-333.4\" font-family=\"Times,serif\" font-size=\"14.00\">yes, missing</text>\n", | |
"</g>\n", | |
"<!-- 4 -->\n", | |
"<g id=\"node9\" class=\"node\"><title>4</title>\n", | |
"<ellipse fill=\"none\" stroke=\"black\" cx=\"400\" cy=\"-270\" rx=\"41.1405\" ry=\"41.3534\"/>\n", | |
"<text text-anchor=\"middle\" x=\"400\" y=\"-264.4\" font-family=\"Times,serif\" font-size=\"14.00\">f2<4.85</text>\n", | |
"</g>\n", | |
"<!-- 2->4 -->\n", | |
"<g id=\"edge8\" class=\"edge\"><title>2->4</title>\n", | |
"<path fill=\"none\" stroke=\"#0000ff\" d=\"M359.45,-369.477C365.946,-353.704 373.577,-335.171 380.456,-318.464\"/>\n", | |
"<polygon fill=\"#0000ff\" stroke=\"#0000ff\" points=\"383.834,-319.452 384.406,-308.872 377.362,-316.786 383.834,-319.452\"/>\n", | |
"<text text-anchor=\"middle\" x=\"383\" y=\"-333.4\" font-family=\"Times,serif\" font-size=\"14.00\">no</text>\n", | |
"</g>\n", | |
"<!-- 5 -->\n", | |
"<g id=\"node11\" class=\"node\"><title>5</title>\n", | |
"<ellipse fill=\"none\" stroke=\"black\" cx=\"163\" cy=\"-132\" rx=\"41.1405\" ry=\"41.3534\"/>\n", | |
"<text text-anchor=\"middle\" x=\"163\" y=\"-126.4\" font-family=\"Times,serif\" font-size=\"14.00\">f3<1.55</text>\n", | |
"</g>\n", | |
"<!-- 3->5 -->\n", | |
"<g id=\"edge10\" class=\"edge\"><title>3->5</title>\n", | |
"<path fill=\"none\" stroke=\"#ff0000\" d=\"M247.024,-245.773C233.814,-235.733 219.154,-223.252 207.772,-210 199.665,-200.56 192.231,-189.447 185.847,-178.645\"/>\n", | |
"<polygon fill=\"#ff0000\" stroke=\"#ff0000\" points=\"188.734,-176.642 180.741,-169.688 182.653,-180.109 188.734,-176.642\"/>\n", | |
"<text text-anchor=\"middle\" x=\"242.614\" y=\"-195.4\" font-family=\"Times,serif\" font-size=\"14.00\">yes, missing</text>\n", | |
"</g>\n", | |
"<!-- 6 -->\n", | |
"<g id=\"node13\" class=\"node\"><title>6</title>\n", | |
"<ellipse fill=\"none\" stroke=\"black\" cx=\"281\" cy=\"-132\" rx=\"41.1405\" ry=\"41.3534\"/>\n", | |
"<text text-anchor=\"middle\" x=\"281\" y=\"-126.4\" font-family=\"Times,serif\" font-size=\"14.00\">f3<1.55</text>\n", | |
"</g>\n", | |
"<!-- 3->6 -->\n", | |
"<g id=\"edge12\" class=\"edge\"><title>3->6</title>\n", | |
"<path fill=\"none\" stroke=\"#0000ff\" d=\"M281,-228.564C281,-214.441 281,-198.408 281,-183.564\"/>\n", | |
"<polygon fill=\"#0000ff\" stroke=\"#0000ff\" points=\"284.5,-183.515 281,-173.515 277.5,-183.515 284.5,-183.515\"/>\n", | |
"<text text-anchor=\"middle\" x=\"288\" y=\"-195.4\" font-family=\"Times,serif\" font-size=\"14.00\">no</text>\n", | |
"</g>\n", | |
"<!-- 7 -->\n", | |
"<g id=\"node23\" class=\"node\"><title>7</title>\n", | |
"<polygon fill=\"none\" stroke=\"black\" points=\"459.435,-150 340.565,-150 340.565,-114 459.435,-114 459.435,-150\"/>\n", | |
"<text text-anchor=\"middle\" x=\"400\" y=\"-126.4\" font-family=\"Times,serif\" font-size=\"14.00\">leaf=-7.66345e-09</text>\n", | |
"</g>\n", | |
"<!-- 4->7 -->\n", | |
"<g id=\"edge22\" class=\"edge\"><title>4->7</title>\n", | |
"<path fill=\"none\" stroke=\"#ff0000\" d=\"M400,-228.564C400,-206.498 400,-179.771 400,-160.199\"/>\n", | |
"<polygon fill=\"#ff0000\" stroke=\"#ff0000\" points=\"403.5,-160.137 400,-150.137 396.5,-160.137 403.5,-160.137\"/>\n", | |
"<text text-anchor=\"middle\" x=\"434.614\" y=\"-195.4\" font-family=\"Times,serif\" font-size=\"14.00\">yes, missing</text>\n", | |
"</g>\n", | |
"<!-- 8 -->\n", | |
"<g id=\"node25\" class=\"node\"><title>8</title>\n", | |
"<polygon fill=\"none\" stroke=\"black\" points=\"580.028,-150 477.972,-150 477.972,-114 580.028,-114 580.028,-150\"/>\n", | |
"<text text-anchor=\"middle\" x=\"529\" y=\"-126.4\" font-family=\"Times,serif\" font-size=\"14.00\">leaf=-0.213812</text>\n", | |
"</g>\n", | |
"<!-- 4->8 -->\n", | |
"<g id=\"edge24\" class=\"edge\"><title>4->8</title>\n", | |
"<path fill=\"none\" stroke=\"#0000ff\" d=\"M433.195,-245.15C446.265,-235.02 460.989,-222.639 473,-210 487.944,-194.275 502.284,-174.435 512.711,-158.833\"/>\n", | |
"<polygon fill=\"#0000ff\" stroke=\"#0000ff\" points=\"515.816,-160.481 518.373,-150.2 509.962,-156.642 515.816,-160.481\"/>\n", | |
"<text text-anchor=\"middle\" x=\"495\" y=\"-195.4\" font-family=\"Times,serif\" font-size=\"14.00\">no</text>\n", | |
"</g>\n", | |
"<!-- 9 -->\n", | |
"<g id=\"node15\" class=\"node\"><title>9</title>\n", | |
"<polygon fill=\"none\" stroke=\"black\" points=\"96.5306,-36 -0.530646,-36 -0.530646,-0 96.5306,-0 96.5306,-36\"/>\n", | |
"<text text-anchor=\"middle\" x=\"48\" y=\"-12.4\" font-family=\"Times,serif\" font-size=\"14.00\">leaf=0.428571</text>\n", | |
"</g>\n", | |
"<!-- 5->9 -->\n", | |
"<g id=\"edge14\" class=\"edge\"><title>5->9</title>\n", | |
"<path fill=\"none\" stroke=\"#ff0000\" d=\"M129.943,-106.926C116.867,-96.7631 102.058,-84.4185 89.7725,-72 81.319,-63.4553 72.9322,-53.2472 65.9163,-44.0812\"/>\n", | |
"<polygon fill=\"#ff0000\" stroke=\"#ff0000\" points=\"68.689,-41.9446 59.896,-36.0341 63.0839,-46.138 68.689,-41.9446\"/>\n", | |
"<text text-anchor=\"middle\" x=\"124.614\" y=\"-57.4\" font-family=\"Times,serif\" font-size=\"14.00\">yes, missing</text>\n", | |
"</g>\n", | |
"<!-- 10 -->\n", | |
"<g id=\"node17\" class=\"node\"><title>10</title>\n", | |
"<polygon fill=\"none\" stroke=\"black\" points=\"211.531,-36 114.469,-36 114.469,-0 211.531,-0 211.531,-36\"/>\n", | |
"<text text-anchor=\"middle\" x=\"163\" y=\"-12.4\" font-family=\"Times,serif\" font-size=\"14.00\">leaf=0.128571</text>\n", | |
"</g>\n", | |
"<!-- 5->10 -->\n", | |
"<g id=\"edge16\" class=\"edge\"><title>5->10</title>\n", | |
"<path fill=\"none\" stroke=\"#0000ff\" d=\"M163,-90.5654C163,-75.9778 163,-59.8594 163,-46.6186\"/>\n", | |
"<polygon fill=\"#0000ff\" stroke=\"#0000ff\" points=\"166.5,-46.2698 163,-36.2699 159.5,-46.2699 166.5,-46.2698\"/>\n", | |
"<text text-anchor=\"middle\" x=\"170\" y=\"-57.4\" font-family=\"Times,serif\" font-size=\"14.00\">no</text>\n", | |
"</g>\n", | |
"<!-- 11 -->\n", | |
"<g id=\"node19\" class=\"node\"><title>11</title>\n", | |
"<polygon fill=\"none\" stroke=\"black\" points=\"332.028,-36 229.972,-36 229.972,-0 332.028,-0 332.028,-36\"/>\n", | |
"<text text-anchor=\"middle\" x=\"281\" y=\"-12.4\" font-family=\"Times,serif\" font-size=\"14.00\">leaf=-0.128571</text>\n", | |
"</g>\n", | |
"<!-- 6->11 -->\n", | |
"<g id=\"edge18\" class=\"edge\"><title>6->11</title>\n", | |
"<path fill=\"none\" stroke=\"#ff0000\" d=\"M281,-90.5654C281,-75.9778 281,-59.8594 281,-46.6186\"/>\n", | |
"<polygon fill=\"#ff0000\" stroke=\"#ff0000\" points=\"284.5,-46.2698 281,-36.2699 277.5,-46.2699 284.5,-46.2698\"/>\n", | |
"<text text-anchor=\"middle\" x=\"315.614\" y=\"-57.4\" font-family=\"Times,serif\" font-size=\"14.00\">yes, missing</text>\n", | |
"</g>\n", | |
"<!-- 12 -->\n", | |
"<g id=\"node21\" class=\"node\"><title>12</title>\n", | |
"<polygon fill=\"none\" stroke=\"black\" points=\"447.531,-36 350.469,-36 350.469,-0 447.531,-0 447.531,-36\"/>\n", | |
"<text text-anchor=\"middle\" x=\"399\" y=\"-12.4\" font-family=\"Times,serif\" font-size=\"14.00\">leaf=0.128571</text>\n", | |
"</g>\n", | |
"<!-- 6->12 -->\n", | |
"<g id=\"edge20\" class=\"edge\"><title>6->12</title>\n", | |
"<path fill=\"none\" stroke=\"#0000ff\" d=\"M312.384,-105.082C318.536,-100.054 324.955,-94.8429 331,-90 341.13,-81.8841 344.64,-80.9937 354,-72 362.93,-63.4198 371.929,-53.2046 379.509,-44.043\"/>\n", | |
"<polygon fill=\"#0000ff\" stroke=\"#0000ff\" points=\"382.448,-45.9746 386.027,-36.0025 377.011,-41.5662 382.448,-45.9746\"/>\n", | |
"<text text-anchor=\"middle\" x=\"377\" y=\"-57.4\" font-family=\"Times,serif\" font-size=\"14.00\">no</text>\n", | |
"</g>\n", | |
"</g>\n", | |
"</svg>\n" | |
], | |
"text/plain": [ | |
"<graphviz.dot.Digraph at 0x106797090>" | |
] | |
}, | |
"execution_count": 8, | |
"metadata": {}, | |
"output_type": "execute_result" | |
} | |
], | |
"source": [ | |
"# change edge colors\n", | |
"xgb.to_graphviz(bst, num_trees=1, yes_color='#FF0000', no_color='#0000FF')" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 9, | |
"metadata": { | |
"collapsed": false, | |
"scrolled": false | |
}, | |
"outputs": [ | |
{ | |
"data": { | |
"text/plain": [ | |
"<matplotlib.axes._subplots.AxesSubplot at 0x10678cd10>" | |
] | |
}, | |
"execution_count": 9, | |
"metadata": {}, | |
"output_type": "execute_result" | |
}, | |
{ | |
"data": { | |
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAQQAAAEECAYAAADOCEoKAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAIABJREFUeJzt3WdAFOfWB/A/gkasiIhYEo1GMeqL5RqssXcFFew1kWiM\nscZ6vWosCeo1scY0Oxp7AzVgQ8GuqFjgCkhRmiC9LCzL7nk/LExEYYHd2QJ7fl+EnZnnHBAOz848\nxYSICIwxBqCCvhNgjBkOLgiMMQEXBMaYgAsCY0zABYExJuCCwBgTcEFgjAm4IDDGBFwQGGMCLgiM\nMQEXBMaYgAsCK5ZCocDatWvRsmVLtGzZEu3bt0eTJk0wYMAA3L9/X9/pMRGZ8OQmVpiMjAx88cUX\ncHJywvjx41Wem56ejkmTJuHLL7/EsGHDdJQh0wYuCOw9NjY2CAsLQ5UqVUp97ebNmzF06FA0a9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s3T8+HH6448/6P79+xQUFESPHj2i//znPwWuUygUdO7cOSIiOnLk\nCOXm5tLcuXML5Eqk3EL+xo0btHz5cjp//jwREcXGxgrtrF69muLi4oTPSzMOYf78+ZSTk0OTJk0i\nIqJ58+bRihUraMOGDUVuP79nzx5KS0uj5ORkkkgk9N///peSk5PJ1dWVZs+eTeHh4bRv3z7auXMn\n3blzh44cOSJcm78z9IULF+ju3bsF2i3pOISjR4/Sy5cvadq0aZSUlEQ//vgjeXt7k7e3N92+fbvA\ndQkJCeTp6UlEROvWraO0tDRat24dyWQymj17Ni1evJhkMhkdO3aMZDIZffXVV8LPy5dffklEynUd\nFi5cWKBdYxmHYJAFwRDwwCTt44FJhsdg3zIwxnSPCwJjTMAFgTEmMJjZjowx/eMeAmNMwAWBMSbg\ngsAYE3BBYIwJuCAwxgRcEBhjAi4IjDEBFwTGmIALAmNMwAWBMSbggsAYE3BBYIwJuCAwxgRcEBhj\nAi4IjDEBFwTGmIALAmNMwAWBMSbggsAYE3BBYIwJuCAwxgRcEBhjAi4IjDEBFwTGmIALAmNMwAWB\nMSb4f+Cy/US6kvpzAAAAAElFTkSuQmCC\n", | |
"text/plain": [ | |
"<matplotlib.figure.Figure at 0x10673e850>" | |
] | |
}, | |
"metadata": {}, | |
"output_type": "display_data" | |
} | |
], | |
"source": [ | |
"xgb.plot_tree(bst, num_trees=1)" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 10, | |
"metadata": { | |
"collapsed": false | |
}, | |
"outputs": [ | |
{ | |
"data": { | |
"text/plain": [ | |
"<matplotlib.axes._subplots.AxesSubplot at 0x1076a36d0>" | |
] | |
}, | |
"execution_count": 10, | |
"metadata": {}, | |
"output_type": "execute_result" | |
}, | |
{ | |
"data": { | |
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAQQAAAEECAYAAADOCEoKAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAIABJREFUeJzt3WdAFFfXB/A/gkb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IAbNmyRZRc58+fjw4dOqBevXrIysrCpUuX\nULduXTRs2FDItVq1avj111/RuHFjAIBUKi20rZiYGJiZmaF169ZITU1F1apVceLECWzatAmAslck\nhqCgILRp0wb/+c9/0LRpU1haWqJZs2Zo1qyZkHPt2rWRkJAAAKhdu/Y7bbi6uuLYsWPYvHkzPDw8\ncPXqVYwZMwapqakAgOTkZOHnyGjp9abnG94ch3D58mUKDAykuXPnUkxMDO3du5eCg4PJx8eHvLy8\nCpyXnp5OFy9eJCKi2bNnE5FyBp/8r2fPnk1yuZxOnDhBEomEnJ2dyc/Pj4iI1q9fL7Qzf/58kr+x\nxHtJxyGEh4fTmTNn6Pjx4/Tnn3/SvXv3KCgoiB4+fEjff/99gfMUCgWdPXuWiIiOHDlCubm5NHfu\n3AK5EimXkL9+/TotX76czp07R0REsbGxQjurV6+muLg44evSjEOYP38+5eTk0KRJk4iIaN68ebRi\nxQrasGFDkcvP79mzh9LS0ig5OZkkEgn997//peTkZHJxcaHZs2dTeHg47du3j3bu3Em3b9+mI0eO\nCOfmrwx9/vx5unPnToF2SzoO4ejRo/TixQuaNm0aJSUl0U8//UTe3t7k7e1Nt27dKnBeQkICeXp6\nEhHRunXrKC0tjdatW0cymYxmz55NixcvJplMRseOHSOZTEZfffWV8PPy5ZdfEpFyXoeFCxcWaNdY\nxiEYZEEwBDwwSft4YJLhMdiPDIwx3eOCwBgTcEFgjAkM5mlHxpj+cQ+BMSbggsAYE3BBYIwJuCAw\nxgRcEBhjAi4IjDEBFwTGmIALAmNMwAWBMSbggsAYE3BBYIwJuCAwxgRcEBhjAi4IjDEBFwTGmIAL\nAmNMwAWBMSbggsAYE3BBYIwJuCAwxgRcEBhjAi4IjDEBFwTGmIALAmNMwAWBMSbggsAYE/w/7ar9\nRFz9HQkAAAAASUVORK5CYII=\n", | |
"text/plain": [ | |
"<matplotlib.figure.Figure at 0x1076b76d0>" | |
] | |
}, | |
"metadata": {}, | |
"output_type": "display_data" | |
} | |
], | |
"source": [ | |
"xgb.plot_tree(bst, num_trees=1, yes_color='#FF0000', no_color='#0000FF')" | |
] | |
} | |
], | |
"metadata": { | |
"kernelspec": { | |
"display_name": "Python 2", | |
"language": "python", | |
"name": "python2" | |
}, | |
"language_info": { | |
"codemirror_mode": { | |
"name": "ipython", | |
"version": 2 | |
}, | |
"file_extension": ".py", | |
"mimetype": "text/x-python", | |
"name": "python", | |
"nbconvert_exporter": "python", | |
"pygments_lexer": "ipython2", | |
"version": "2.7.9" | |
} | |
}, | |
"nbformat": 4, | |
"nbformat_minor": 0 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment