From db98e642b61e6ba44e7f5c32cc237589f62ff338 Mon Sep 17 00:00:00 2001 From: rchan26 Date: Mon, 4 Dec 2023 19:30:17 +0000 Subject: [PATCH] fix donwload link --- paper-examples/ucr_anomalies_data.ipynb | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/paper-examples/ucr_anomalies_data.ipynb b/paper-examples/ucr_anomalies_data.ipynb index e9e8f39..16755ed 100644 --- a/paper-examples/ucr_anomalies_data.ipynb +++ b/paper-examples/ucr_anomalies_data.ipynb @@ -21,22 +21,19 @@ }, { "cell_type": "code", - "execution_count": 4, + "execution_count": 2, "metadata": {}, "outputs": [], "source": [ - "DATASET_PATH = \"Univariate_arff\"\n", - "ZIP_URL = (\n", - " \"http://www.timeseriesclassification.com/Downloads/Archives/Univariate2018_arff.zip\"\n", - ")\n", - "ZIP_PATH = \"Univariate2018_arff.zip\"\n", + "DATASET_PATH = Data.DATA_DIR + \"Univariate_arff\"\n", + "ZIP_URL = \"https://www.timeseriesclassification.com/aeon-toolkit/Archives/Univariate2018_arff.zip\"\n", + "ZIP_PATH = Data.DATA_DIR + \"Univariate2018_arff.zip\"\n", "\n", "if not os.path.exists(DATASET_PATH) and not os.path.exists(ZIP_PATH):\n", " try:\n", " Data.download(ZIP_URL, ZIP_PATH)\n", - "\n", - " # Extract dataset\n", - " !unzip {ZIP_PATH}\n", + " # extract dataset\n", + " shutil.unpack_archive(ZIP_PATH, Data.DATA_DIR)\n", " except:\n", " if os.path.exists(DATASET_PATH):\n", " shutil.rmtree(DATASET_PATH)\n", @@ -64,7 +61,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.7.7" + "version": "3.9.18" } }, "nbformat": 4,