diff --git a/notebooks/responsibleaidashboard/vision/responsibleaidashboard-fridge-image-classification-model-debugging.ipynb b/notebooks/responsibleaidashboard/vision/responsibleaidashboard-fridge-image-classification-model-debugging.ipynb index 78167c1cb2..8e879ab3aa 100644 --- a/notebooks/responsibleaidashboard/vision/responsibleaidashboard-fridge-image-classification-model-debugging.ipynb +++ b/notebooks/responsibleaidashboard/vision/responsibleaidashboard-fridge-image-classification-model-debugging.ipynb @@ -49,7 +49,6 @@ "from zipfile import ZipFile\n", "import numpy as np\n", "import pandas as pd\n", - "import datasets\n", "import matplotlib\n", "matplotlib.use('Agg')\n", "import matplotlib.pyplot as plt\n", @@ -91,12 +90,18 @@ " # get all file names into a pandas dataframe with the labels\n", " data = pd.DataFrame(columns=[ImageColumns.IMAGE.value,\n", " ImageColumns.LABEL.value])\n", + " \n", + " feats = []\n", " for folder in os.listdir(\"./data/fridgeObjects\"):\n", " for file in os.listdir(\"./data/fridgeObjects/\" + folder):\n", " image_path = \"./data/fridgeObjects/\" + folder + \"/\" + file\n", - " data = data.append({ImageColumns.IMAGE.value: image_path,\n", - " ImageColumns.LABEL.value: folder},\n", - " ignore_index=True)\n", + " feats.append({ImageColumns.IMAGE.value: image_path,\n", + " ImageColumns.LABEL.value: folder})\n", + " \n", + " # get all file names into a pandas dataframe with the labels\n", + " data = pd.DataFrame(feats, columns=[ImageColumns.IMAGE.value,\n", + " ImageColumns.LABEL.value])\n", + "\n", " return data\n", "\n", "\n", @@ -263,7 +268,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.8.16" + "version": "3.9.18" }, "orig_nbformat": 4, "vscode": { diff --git a/notebooks/responsibleaidashboard/vision/responsibleaidashboard-fridge-multilabel-image-classification-model-debugging.ipynb b/notebooks/responsibleaidashboard/vision/responsibleaidashboard-fridge-multilabel-image-classification-model-debugging.ipynb index 87e9eced64..eab8ff6c5f 100644 --- a/notebooks/responsibleaidashboard/vision/responsibleaidashboard-fridge-multilabel-image-classification-model-debugging.ipynb +++ b/notebooks/responsibleaidashboard/vision/responsibleaidashboard-fridge-multilabel-image-classification-model-debugging.ipynb @@ -49,7 +49,6 @@ "from zipfile import ZipFile\n", "import numpy as np\n", "import pandas as pd\n", - "import datasets\n", "import matplotlib\n", "matplotlib.use('Agg')\n", "import matplotlib.pyplot as plt\n", @@ -397,7 +396,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.8.16" + "version": "3.9.18" }, "orig_nbformat": 4, "vscode": {