From e08d6187ab90c7ab9fd3b2e4c7e4d975205151a7 Mon Sep 17 00:00:00 2001
From: Samrat Dutta Chowdhury <samrat2.duttachowdhury@uwe.ac.uk>
Date: Sat, 31 Aug 2024 01:33:13 +0100
Subject: [PATCH] All changes

---
 Generate Output.ipynb | 41 ++++++++++++++++++++++++++++++-----------
 KNN.ipynb             |  3 +--
 2 files changed, 31 insertions(+), 13 deletions(-)

diff --git a/Generate Output.ipynb b/Generate Output.ipynb
index 41ff5a3..9b6f6f5 100644
--- a/Generate Output.ipynb	
+++ b/Generate Output.ipynb	
@@ -30,6 +30,13 @@
     "%matplotlib inline"
    ]
   },
+  {
+   "cell_type": "markdown",
+   "metadata": {},
+   "source": [
+    "### Loading the pickle file "
+   ]
+  },
   {
    "cell_type": "code",
    "execution_count": 4,
@@ -43,6 +50,13 @@
     "    clf = pickle.load(file)"
    ]
   },
+  {
+   "cell_type": "markdown",
+   "metadata": {},
+   "source": [
+    "### Reading the real file "
+   ]
+  },
   {
    "cell_type": "code",
    "execution_count": 8,
@@ -53,25 +67,30 @@
     "X_test = pd.read_csv('DataFiles/7ea49f78-249c-471f-82fd-b2876ba8b10d_cleaned.csv', sep=',', low_memory=False) "
    ]
   },
+  {
+   "cell_type": "markdown",
+   "metadata": {},
+   "source": [
+    "### Predicting the outcome"
+   ]
+  },
   {
    "cell_type": "code",
-   "execution_count": 10,
+   "execution_count": null,
    "metadata": {},
-   "outputs": [
-    {
-     "name": "stderr",
-     "output_type": "stream",
-     "text": [
-      "C:\\Users\\devel\\AppData\\Roaming\\Python\\Python312\\site-packages\\sklearn\\base.py:486: UserWarning: X has feature names, but KNeighborsClassifier was fitted without feature names\n",
-      "  warnings.warn(\n"
-     ]
-    }
-   ],
+   "outputs": [],
    "source": [
     "y_predict = clf.predict(X_test)\n",
     "X_test['Output']=y_predict"
    ]
   },
+  {
+   "cell_type": "markdown",
+   "metadata": {},
+   "source": [
+    "### Export the data to a CSV for evaluation"
+   ]
+  },
   {
    "cell_type": "code",
    "execution_count": 11,
diff --git a/KNN.ipynb b/KNN.ipynb
index 7567b7e..0645fad 100644
--- a/KNN.ipynb
+++ b/KNN.ipynb
@@ -1121,8 +1121,7 @@
    "metadata": {},
    "outputs": [],
    "source": [
-    "import pickle\n",
-    "\n"
+    "import pickle"
    ]
   },
   {
-- 
GitLab