Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,7 @@
" dt_clf = DecisionTreeClassifier(random_state = 50)\n",
" dt_clf.fit(data_X, data_Y)\n",
"\n",
" text = tree.export_text(dt_clf, feature_names=data_X.columns)\n",
" text = tree.export_text(dt_clf, feature_names=list(data_X.columns))\n",
" print(\"\\n========== Decision Tree Text ==========\\n\")\n",
" print(text)\n",
"\n",
Expand Down Expand Up @@ -692,7 +692,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"Use cost-complexity pruning to find a minimal decision tree and a set of decision\r\n",
"Use cost-complexity pruning to find a minimal decision tree and a set of decision\n",
"rules with high interpretability."
]
},
Expand Down