From 12b1f043565fa137f97489c4c7206b228c46c6e2 Mon Sep 17 00:00:00 2001 From: Arthur Lu Date: Wed, 28 May 2025 20:39:01 +0000 Subject: [PATCH] cleanup code --- DecisionTree.ipynb | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/DecisionTree.ipynb b/DecisionTree.ipynb index 16d5a4d..11199e1 100644 --- a/DecisionTree.ipynb +++ b/DecisionTree.ipynb @@ -21,7 +21,7 @@ }, { "cell_type": "code", - "execution_count": 32, + "execution_count": null, "id": "d336971a", "metadata": {}, "outputs": [], @@ -61,8 +61,7 @@ " threshold = tree.tree_.threshold\n", " features = [feature_names[i] for i in tree.tree_.feature]\n", " value = tree.tree_.value\n", - " le = '<='\n", - " g = '>'\n", + "\n", " # get ids of child nodes\n", " idx = np.argwhere(left == -1)[:, 0]\n", " \n", @@ -105,7 +104,7 @@ }, { "cell_type": "code", - "execution_count": 33, + "execution_count": null, "id": "b96f3403", "metadata": {}, "outputs": [