{ "cells": [ { "cell_type": "code", "execution_count": 1, "id": "8b143f02-e947-4683-ad23-d6b49525851f", "metadata": {}, "outputs": [], "source": [ "import os\n", "import numpy as np\n", "import seaborn as sns\n", "from keras.preprocessing.image import load_img, img_to_array\n", "from sklearn.metrics import accuracy_score, confusion_matrix" ] }, { "cell_type": "markdown", "id": "e5e9229c-2dca-478d-95b8-65c051e8970f", "metadata": {}, "source": [ "
Original pixel value:
\n",
" [120, 200, 255]
\n",
"Normalized pixel value (using rescale = 1/255):
\n",
" 120/255, 200/255, 255/255 = 0.47, 0.78, 1.0