From 921a49433ccb34f2481f5f88de59f596976193cb Mon Sep 17 00:00:00 2001 From: itsGarrin Date: Mon, 6 Nov 2023 19:08:49 -0500 Subject: Refer to ZestySalesman.ipynb for the latest route --- Clustering2.0.ipynb | 58 ++++++++++++++++++++++++++--------------------------- 1 file changed, 29 insertions(+), 29 deletions(-) (limited to 'Clustering2.0.ipynb') diff --git a/Clustering2.0.ipynb b/Clustering2.0.ipynb index 5ff2d63..e312a2b 100644 --- a/Clustering2.0.ipynb +++ b/Clustering2.0.ipynb @@ -7,15 +7,14 @@ "metadata": { "collapsed": true, "ExecuteTime": { - "end_time": "2023-11-06T18:51:22.475082Z", - "start_time": "2023-11-06T18:51:21.667023Z" + "end_time": "2023-11-06T23:41:01.990393Z", + "start_time": "2023-11-06T23:41:01.040992Z" } }, "outputs": [], "source": [ "import folium\n", "import pandas as pd\n", - "from sklearn.cluster import KMeans\n", "import utils" ] }, @@ -33,8 +32,8 @@ "metadata": { "collapsed": false, "ExecuteTime": { - "end_time": "2023-11-06T18:51:22.495242Z", - "start_time": "2023-11-06T18:51:22.473334Z" + "end_time": "2023-11-06T23:41:02.000278Z", + "start_time": "2023-11-06T23:41:01.991024Z" } }, "id": "bb6f57eef695cf76" @@ -47,13 +46,13 @@ "# Create two centroids, one in the North End and one in the Financial District\n", "centroids = [[42.364506, -71.054733], [42.358894, -71.056742]]\n", "\n", - "northeastern_coordinate = \"-71.09033,42.33976;\"" + "northeastern_coordinate = \"-71.09033,42.33976\"" ], "metadata": { "collapsed": false, "ExecuteTime": { - "end_time": "2023-11-06T18:51:22.495492Z", - "start_time": "2023-11-06T18:51:22.483246Z" + "end_time": "2023-11-06T23:41:02.003984Z", + "start_time": "2023-11-06T23:41:02.000633Z" } }, "id": "fe8a5b9bc06cf2e0" @@ -84,8 +83,8 @@ "metadata": { "collapsed": false, "ExecuteTime": { - "end_time": "2023-11-06T18:51:22.496051Z", - "start_time": "2023-11-06T18:51:22.487941Z" + "end_time": "2023-11-06T23:41:02.012929Z", + "start_time": "2023-11-06T23:41:02.005863Z" } }, "id": "dc434958d5e4a3a8" @@ -101,8 +100,8 @@ "metadata": { "collapsed": false, "ExecuteTime": { - "end_time": "2023-11-06T18:51:22.504898Z", - "start_time": "2023-11-06T18:51:22.496235Z" + "end_time": "2023-11-06T23:41:02.016943Z", + "start_time": "2023-11-06T23:41:02.013583Z" } }, "id": "2873c16423fe3119" @@ -119,8 +118,8 @@ "metadata": { "collapsed": false, "ExecuteTime": { - "end_time": "2023-11-06T18:51:22.522522Z", - "start_time": "2023-11-06T18:51:22.498651Z" + "end_time": "2023-11-06T23:41:02.021308Z", + "start_time": "2023-11-06T23:41:02.016226Z" } }, "id": "29f9155ef8d75fda" @@ -136,8 +135,8 @@ "metadata": { "collapsed": false, "ExecuteTime": { - "end_time": "2023-11-06T18:51:22.548654Z", - "start_time": "2023-11-06T18:51:22.503769Z" + "end_time": "2023-11-06T23:41:02.021459Z", + "start_time": "2023-11-06T23:41:02.018449Z" } }, "id": "5b985f1a6df84a6c" @@ -161,8 +160,8 @@ "metadata": { "collapsed": false, "ExecuteTime": { - "end_time": "2023-11-06T18:51:22.609058Z", - "start_time": "2023-11-06T18:51:22.509542Z" + "end_time": "2023-11-06T23:41:02.028731Z", + "start_time": "2023-11-06T23:41:02.023494Z" } }, "id": "a03a7c5dacebddd0" @@ -194,13 +193,14 @@ ], "source": [ "# Cluster and minimize the data\n", - "df, route_1_coordinates, route_2_coordinates = utils.cluster_and_minimize(TotalList, centroids, norm_centroids, 0.5)" + "df, route_1_coordinates, route_2_coordinates = utils.cluster_and_minimize(TotalList, centroids, norm_centroids,\n", + " northeastern_coordinate, 0.5)" ], "metadata": { "collapsed": false, "ExecuteTime": { - "end_time": "2023-11-06T18:51:45.784650Z", - "start_time": "2023-11-06T18:51:22.513160Z" + "end_time": "2023-11-06T23:41:28.583623Z", + "start_time": "2023-11-06T23:41:02.026243Z" } }, "id": "a1a3e446594e8c20" @@ -217,14 +217,14 @@ }, { "cell_type": "code", - "execution_count": 10, + "execution_count": 11, "outputs": [ { "data": { - "text/plain": "", - "text/html": "
Make this Notebook Trusted to load map: File -> Trust Notebook
" + "text/plain": "", + "text/html": "
Make this Notebook Trusted to load map: File -> Trust Notebook
" }, - "execution_count": 10, + "execution_count": 11, "metadata": {}, "output_type": "execute_result" } @@ -268,8 +268,8 @@ "metadata": { "collapsed": false, "ExecuteTime": { - "end_time": "2023-11-06T18:51:45.869346Z", - "start_time": "2023-11-06T18:51:45.791672Z" + "end_time": "2023-11-06T23:41:34.488607Z", + "start_time": "2023-11-06T23:41:34.368207Z" } }, "id": "de9c2f7b892b1bee" @@ -282,8 +282,8 @@ "metadata": { "collapsed": false, "ExecuteTime": { - "end_time": "2023-11-06T18:51:45.869482Z", - "start_time": "2023-11-06T18:51:45.865159Z" + "end_time": "2023-11-06T23:41:28.671570Z", + "start_time": "2023-11-06T23:41:28.667750Z" } }, "id": "b50ee3d4d6e09be9" -- cgit v1.2.3