From 75baa30098ce4f7af9cf8cd80590ca7a70dc7404 Mon Sep 17 00:00:00 2001 From: Interpret ML Date: Mon, 27 Apr 2020 15:24:25 -0700 Subject: [PATCH] Replace UCI http links back to https. Their certificates are up to date. --- .../notebooks/Explaining Blackbox Classifiers.ipynb | 3 +-- .../Interpretable Classification Methods.ipynb | 11 +++++++---- python/interpret-core/interpret/test/utils.py | 3 +-- 3 files changed, 9 insertions(+), 8 deletions(-) diff --git a/examples/python/notebooks/Explaining Blackbox Classifiers.ipynb b/examples/python/notebooks/Explaining Blackbox Classifiers.ipynb index f8db4b098..4c3a2feae 100644 --- a/examples/python/notebooks/Explaining Blackbox Classifiers.ipynb +++ b/examples/python/notebooks/Explaining Blackbox Classifiers.ipynb @@ -17,9 +17,8 @@ "from sklearn.datasets import load_boston\n", "from sklearn.model_selection import train_test_split\n", "\n", - "# SEC: This needs to change back to SSL once UCI resolves their expired cert.\n", "df = pd.read_csv(\n", - " \"http://archive.ics.uci.edu/ml/machine-learning-databases/adult/adult.data\",\n", + " \"https://archive.ics.uci.edu/ml/machine-learning-databases/adult/adult.data\",\n", " header=None)\n", "df.columns = [\n", " \"Age\", \"WorkClass\", \"fnlwgt\", \"Education\", \"EducationNum\",\n", diff --git a/examples/python/notebooks/Interpretable Classification Methods.ipynb b/examples/python/notebooks/Interpretable Classification Methods.ipynb index e221ce685..97f24a039 100644 --- a/examples/python/notebooks/Interpretable Classification Methods.ipynb +++ b/examples/python/notebooks/Interpretable Classification Methods.ipynb @@ -16,9 +16,8 @@ "import pandas as pd\n", "from sklearn.model_selection import train_test_split\n", "\n", - "# SEC: This needs to change back to SSL once UCI resolves their expired cert.\n", "df = pd.read_csv(\n", - " \"http://archive.ics.uci.edu/ml/machine-learning-databases/adult/adult.data\",\n", + " \"https://archive.ics.uci.edu/ml/machine-learning-databases/adult/adult.data\",\n", " header=None)\n", "df.columns = [\n", " \"Age\", \"WorkClass\", \"fnlwgt\", \"Education\", \"EducationNum\",\n", @@ -214,7 +213,11 @@ { "cell_type": "code", "execution_count": null, - "metadata": {}, + "metadata": { + "pycharm": { + "name": "#%%\n" + } + }, "outputs": [], "source": [ "# Do everything in one shot with the InterpretML Dashboard by passing a list into show\n", @@ -244,4 +247,4 @@ }, "nbformat": 4, "nbformat_minor": 2 -} +} \ No newline at end of file diff --git a/python/interpret-core/interpret/test/utils.py b/python/interpret-core/interpret/test/utils.py index f89c5bb1a..2cf46e287 100644 --- a/python/interpret-core/interpret/test/utils.py +++ b/python/interpret-core/interpret/test/utils.py @@ -121,9 +121,8 @@ def iris_classification(): def adult_classification(): - # SEC: This needs to change back to SSL once UCI resolves their expired cert. df = pd.read_csv( - "http://archive.ics.uci.edu/ml/machine-learning-databases/adult/adult.data", + "https://archive.ics.uci.edu/ml/machine-learning-databases/adult/adult.data", header=None, ).sample(frac=0.01, random_state=42) df.columns = [