Search is not available for this dataset
text
stringlengths 1.89k
69.3M
| id
stringlengths 23
24
| file_path
stringclasses 26
values |
---|---|---|
{
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"id": "7a8063e8",
"metadata": {
"_cell_guid": "b1076dfc-b9ad-4769-8c92-a6c4dae69d19",
"_uuid": "8f2839f25d086af736a60e9eeb907d3b93b6e0e5",
"execution": {
"iopub.execute_input": "2021-11-06T16:14:29.448582Z",
"iopub.status.busy": "2021-11-06T16:14:29.447617Z",
"iopub.status.idle": "2021-11-06T16:14:31.925670Z",
"shell.execute_reply": "2021-11-06T16:14:31.926417Z",
"shell.execute_reply.started": "2021-11-06T15:52:42.548547Z"
},
"papermill": {
"duration": 2.499947,
"end_time": "2021-11-06T16:14:31.926745",
"exception": false,
"start_time": "2021-11-06T16:14:29.426798",
"status": "completed"
},
"tags": []
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"/kaggle/input/exoplanet/cumulative.csv\n",
"/kaggle/input/kepler-exoplanet-search-results/cumulative.csv\n"
]
},
{
"data": {
"text/plain": [
"<bound method NDFrame.head of rowid kepid kepoi_name kepler_name koi_disposition \\\n",
"0 1 10797460 K00752.01 Kepler-227 b CONFIRMED \n",
"1 2 10797460 K00752.02 Kepler-227 c CONFIRMED \n",
"2 3 10811496 K00753.01 NaN FALSE POSITIVE \n",
"3 4 10848459 K00754.01 NaN FALSE POSITIVE \n",
"4 5 10854555 K00755.01 Kepler-664 b CONFIRMED \n",
"... ... ... ... ... ... \n",
"9559 9560 10031643 K07984.01 NaN FALSE POSITIVE \n",
"9560 9561 10090151 K07985.01 NaN FALSE POSITIVE \n",
"9561 9562 10128825 K07986.01 NaN CANDIDATE \n",
"9562 9563 10147276 K07987.01 NaN FALSE POSITIVE \n",
"9563 9564 10156110 K07989.01 NaN FALSE POSITIVE \n",
"\n",
" koi_pdisposition koi_score koi_fpflag_nt koi_fpflag_ss koi_fpflag_co \\\n",
"0 CANDIDATE 1.000 0 0 0 \n",
"1 CANDIDATE 0.969 0 0 0 \n",
"2 FALSE POSITIVE 0.000 0 1 0 \n",
"3 FALSE POSITIVE 0.000 0 1 0 \n",
"4 CANDIDATE 1.000 0 0 0 \n",
"... ... ... ... ... ... \n",
"9559 FALSE POSITIVE 0.000 0 0 0 \n",
"9560 FALSE POSITIVE 0.000 0 1 1 \n",
"9561 CANDIDATE 0.497 0 0 0 \n",
"9562 FALSE POSITIVE 0.021 0 0 1 \n",
"9563 FALSE POSITIVE 0.000 0 0 1 \n",
"\n",
" ... koi_steff_err2 koi_slogg koi_slogg_err1 koi_slogg_err2 \\\n",
"0 ... -81.0 4.467 0.064 -0.096 \n",
"1 ... -81.0 4.467 0.064 -0.096 \n",
"2 ... -176.0 4.544 0.044 -0.176 \n",
"3 ... -174.0 4.564 0.053 -0.168 \n",
"4 ... -211.0 4.438 0.070 -0.210 \n",
"... ... ... ... ... ... \n",
"9559 ... -152.0 4.296 0.231 -0.189 \n",
"9560 ... -166.0 4.529 0.035 -0.196 \n",
"9561 ... -220.0 4.444 0.056 -0.224 \n",
"9562 ... -236.0 4.447 0.056 -0.224 \n",
"9563 ... -225.0 4.385 0.054 -0.216 \n",
"\n",
" koi_srad koi_srad_err1 koi_srad_err2 ra dec koi_kepmag \n",
"0 0.927 0.105 -0.061 291.93423 48.141651 15.347 \n",
"1 0.927 0.105 -0.061 291.93423 48.141651 15.347 \n",
"2 0.868 0.233 -0.078 297.00482 48.134129 15.436 \n",
"3 0.791 0.201 -0.067 285.53461 48.285210 15.597 \n",
"4 1.046 0.334 -0.133 288.75488 48.226200 15.509 \n",
"... ... ... ... ... ... ... \n",
"9559 1.088 0.313 -0.228 298.74921 46.973351 14.478 \n",
"9560 0.903 0.237 -0.079 297.18875 47.093819 14.082 \n",
"9561 1.031 0.341 -0.114 286.50937 47.163219 14.757 \n",
"9562 1.041 0.341 -0.114 294.16489 47.176281 15.385 \n",
"9563 1.193 0.410 -0.137 297.00977 47.121021 14.826 \n",
"\n",
"[9564 rows x 50 columns]>"
]
},
"execution_count": 1,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"# This Python 3 environment comes with many helpful analytics libraries installed\n",
"# It is defined by the kaggle/python Docker image: https://github.com/kaggle/docker-python\n",
"# For example, here's several helpful packages to load\n",
"\n",
"import numpy as np #linear algebra\n",
"import pandas as pd # data processing, CSV file I/O (e.g. pd.read_csv)\n",
"import torch\n",
"from tqdm import tqdm\n",
"from pylab import rcParams\n",
"import matplotlib.pyplot as plt\n",
"from matplotlib import rc\n",
"from sklearn.model_selection import train_test_split\n",
"from sklearn.metrics import confusion_matrix, classification_report\n",
"\n",
"# Input data files are available in the read-only \"../input/\" directory\n",
"# For example, running this (by clicking run or pressing Shift+Enter) will list all files under the input directory\n",
"\n",
"import os\n",
"for dirname, _, filenames in os.walk('/kaggle/input'):\n",
" for filename in filenames:\n",
" print(os.path.join(dirname, filename))\n",
"\n",
"# You can write up to 20GB to the current directory (/kaggle/working/) that gets preserved as output when you create a version using \"Save & Run All\" \n",
"# You can also write temporary files to /kaggle/temp/, but they won't be saved outside of the current session\n",
"\n",
"df=pd.read_csv('../input/kepler-exoplanet-search-results/cumulative.csv')\n",
"df.head"
]
},
{
"cell_type": "markdown",
"id": "5624ff24",
"metadata": {
"papermill": {
"duration": 0.011481,
"end_time": "2021-11-06T16:14:31.951221",
"exception": false,
"start_time": "2021-11-06T16:14:31.939740",
"status": "completed"
},
"tags": []
},
"source": [
"It is clear that the data needs some cleaning. We shall replace the term \"Candidate\" by 0, the term \"False Positive\" by 1, the term \"Confirmed\" by 2 and the term \"Not Dispositioned\" by 3. Afterwards, we shall cut off the parts of the data that aren't necessary. For this analysis, we consider the following quantities as relevant: the koi_disposition, which is the result (y), the koi_score, the koi_fpflag_nt, the koi_fpflag_ss, the koi_period,the koi_prad and the koi_smass. These shall be the most relevant aspects of our analysis. We shall use the KNN algorithm in order to split our data in the required categories. "
]
},
{
"cell_type": "code",
"execution_count": 2,
"id": "8dde05cf",
"metadata": {
"execution": {
"iopub.execute_input": "2021-11-06T16:14:31.983514Z",
"iopub.status.busy": "2021-11-06T16:14:31.982370Z",
"iopub.status.idle": "2021-11-06T16:14:32.035731Z",
"shell.execute_reply": "2021-11-06T16:14:32.035181Z",
"shell.execute_reply.started": "2021-11-06T15:52:46.922908Z"
},
"papermill": {
"duration": 0.07289,
"end_time": "2021-11-06T16:14:32.035876",
"exception": false,
"start_time": "2021-11-06T16:14:31.962986",
"status": "completed"
},
"tags": []
},
"outputs": [],
"source": [
"df=df.replace(['FALSE POSITIVE'], 1)\n",
"df=df.replace(['CONFIRMED'], 2)\n",
"df=df.replace(['NOT DISPOSITIONED'], 3)\n",
"df=df.replace(['CANDIDATE'], 0)"
]
},
{
"cell_type": "code",
"execution_count": 3,
"id": "416dba21",
"metadata": {
"execution": {
"iopub.execute_input": "2021-11-06T16:14:32.072751Z",
"iopub.status.busy": "2021-11-06T16:14:32.071666Z",
"iopub.status.idle": "2021-11-06T16:14:32.083475Z",
"shell.execute_reply": "2021-11-06T16:14:32.083946Z",
"shell.execute_reply.started": "2021-11-06T15:58:20.676273Z"
},
"papermill": {
"duration": 0.03661,
"end_time": "2021-11-06T16:14:32.084156",
"exception": false,
"start_time": "2021-11-06T16:14:32.047546",
"status": "completed"
},
"tags": []
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
" koi_disposition koi_score koi_fpflag_nt koi_fpflag_ss koi_period \\\n",
"0 2 1.000 0 0 9.488036 \n",
"1 2 0.969 0 0 54.418383 \n",
"2 1 0.000 0 1 19.899140 \n",
"3 1 0.000 0 1 1.736952 \n",
"4 2 1.000 0 0 2.525592 \n",
"... ... ... ... ... ... \n",
"9559 1 0.000 0 0 8.589871 \n",
"9560 1 0.000 0 1 0.527699 \n",
"9561 0 0.497 0 0 1.739849 \n",
"9562 1 0.021 0 0 0.681402 \n",
"9563 1 0.000 0 0 4.856035 \n",
"\n",
" koi_prad \n",
"0 2.26 \n",
"1 2.83 \n",
"2 14.60 \n",
"3 33.46 \n",
"4 2.75 \n",
"... ... \n",
"9559 1.11 \n",
"9560 29.35 \n",
"9561 0.72 \n",
"9562 1.07 \n",
"9563 1.05 \n",
"\n",
"[7995 rows x 6 columns]\n"
]
}
],
"source": [
"cols=['koi_disposition','koi_score','koi_fpflag_nt','koi_fpflag_ss','koi_period','koi_prad']\n",
"data=df[cols]\n",
"data=data.dropna()\n",
"print(data)"
]
},
{
"cell_type": "code",
"execution_count": 4,
"id": "f7f1d6e4",
"metadata": {
"execution": {
"iopub.execute_input": "2021-11-06T16:14:32.112476Z",
"iopub.status.busy": "2021-11-06T16:14:32.111471Z",
"iopub.status.idle": "2021-11-06T16:14:32.278409Z",
"shell.execute_reply": "2021-11-06T16:14:32.278893Z",
"shell.execute_reply.started": "2021-11-06T15:53:23.230235Z"
},
"papermill": {
"duration": 0.183006,
"end_time": "2021-11-06T16:14:32.279092",
"exception": false,
"start_time": "2021-11-06T16:14:32.096086",
"status": "completed"
},
"tags": []
},
"outputs": [],
"source": [
"from sklearn.neighbors import KNeighborsClassifier\n",
"from sklearn.model_selection import train_test_split\n",
"\n",
"#Split the data into parameters and results, and afterwards splitting it into test and training.\n",
"X=data[['koi_score','koi_fpflag_nt','koi_fpflag_ss','koi_period','koi_prad']]\n",
"y=data[['koi_disposition']]\n",
"X_train, X_test, y_train, y_test=train_test_split(X, y, test_size=0.2, random_state=21)"
]
},
{
"cell_type": "markdown",
"id": "2777baca",
"metadata": {
"papermill": {
"duration": 0.011669,
"end_time": "2021-11-06T16:14:32.302773",
"exception": false,
"start_time": "2021-11-06T16:14:32.291104",
"status": "completed"
},
"tags": []
},
"source": [
"We shall now decide how many neighbours we need for the KNN. In order to do this, we shall plot a graph for several values of the number of neighbours, and afterwards we shall analyze the best result."
]
},
{
"cell_type": "code",
"execution_count": 5,
"id": "150ae823",
"metadata": {
"execution": {
"iopub.execute_input": "2021-11-06T16:14:32.330046Z",
"iopub.status.busy": "2021-11-06T16:14:32.329316Z",
"iopub.status.idle": "2021-11-06T16:14:38.621344Z",
"shell.execute_reply": "2021-11-06T16:14:38.621860Z",
"shell.execute_reply.started": "2021-11-06T15:53:26.318650Z"
},
"papermill": {
"duration": 6.307415,
"end_time": "2021-11-06T16:14:38.622069",
"exception": false,
"start_time": "2021-11-06T16:14:32.314654",
"status": "completed"
},
"tags": []
},
"outputs": [
{
"name": "stderr",
"output_type": "stream",
"text": [
"/opt/conda/lib/python3.7/site-packages/ipykernel_launcher.py:11: DataConversionWarning: A column-vector y was passed when a 1d array was expected. Please change the shape of y to (n_samples, ), for example using ravel().\n",
" # This is added back by InteractiveShellApp.init_path()\n",
"/opt/conda/lib/python3.7/site-packages/ipykernel_launcher.py:11: DataConversionWarning: A column-vector y was passed when a 1d array was expected. Please change the shape of y to (n_samples, ), for example using ravel().\n",
" # This is added back by InteractiveShellApp.init_path()\n",
"/opt/conda/lib/python3.7/site-packages/ipykernel_launcher.py:11: DataConversionWarning: A column-vector y was passed when a 1d array was expected. Please change the shape of y to (n_samples, ), for example using ravel().\n",
" # This is added back by InteractiveShellApp.init_path()\n",
"/opt/conda/lib/python3.7/site-packages/ipykernel_launcher.py:11: DataConversionWarning: A column-vector y was passed when a 1d array was expected. Please change the shape of y to (n_samples, ), for example using ravel().\n",
" # This is added back by InteractiveShellApp.init_path()\n",
"/opt/conda/lib/python3.7/site-packages/ipykernel_launcher.py:11: DataConversionWarning: A column-vector y was passed when a 1d array was expected. Please change the shape of y to (n_samples, ), for example using ravel().\n",
" # This is added back by InteractiveShellApp.init_path()\n",
"/opt/conda/lib/python3.7/site-packages/ipykernel_launcher.py:11: DataConversionWarning: A column-vector y was passed when a 1d array was expected. Please change the shape of y to (n_samples, ), for example using ravel().\n",
" # This is added back by InteractiveShellApp.init_path()\n",
"/opt/conda/lib/python3.7/site-packages/ipykernel_launcher.py:11: DataConversionWarning: A column-vector y was passed when a 1d array was expected. Please change the shape of y to (n_samples, ), for example using ravel().\n",
" # This is added back by InteractiveShellApp.init_path()\n",
"/opt/conda/lib/python3.7/site-packages/ipykernel_launcher.py:11: DataConversionWarning: A column-vector y was passed when a 1d array was expected. Please change the shape of y to (n_samples, ), for example using ravel().\n",
" # This is added back by InteractiveShellApp.init_path()\n",
"/opt/conda/lib/python3.7/site-packages/ipykernel_launcher.py:11: DataConversionWarning: A column-vector y was passed when a 1d array was expected. Please change the shape of y to (n_samples, ), for example using ravel().\n",
" # This is added back by InteractiveShellApp.init_path()\n",
"/opt/conda/lib/python3.7/site-packages/ipykernel_launcher.py:11: DataConversionWarning: A column-vector y was passed when a 1d array was expected. Please change the shape of y to (n_samples, ), for example using ravel().\n",
" # This is added back by InteractiveShellApp.init_path()\n",
"/opt/conda/lib/python3.7/site-packages/ipykernel_launcher.py:11: DataConversionWarning: A column-vector y was passed when a 1d array was expected. Please change the shape of y to (n_samples, ), for example using ravel().\n",
" # This is added back by InteractiveShellApp.init_path()\n",
"/opt/conda/lib/python3.7/site-packages/ipykernel_launcher.py:11: DataConversionWarning: A column-vector y was passed when a 1d array was expected. Please change the shape of y to (n_samples, ), for example using ravel().\n",
" # This is added back by InteractiveShellApp.init_path()\n",
"/opt/conda/lib/python3.7/site-packages/ipykernel_launcher.py:11: DataConversionWarning: A column-vector y was passed when a 1d array was expected. Please change the shape of y to (n_samples, ), for example using ravel().\n",
" # This is added back by InteractiveShellApp.init_path()\n",
"/opt/conda/lib/python3.7/site-packages/ipykernel_launcher.py:11: DataConversionWarning: A column-vector y was passed when a 1d array was expected. Please change the shape of y to (n_samples, ), for example using ravel().\n",
" # This is added back by InteractiveShellApp.init_path()\n",
"/opt/conda/lib/python3.7/site-packages/ipykernel_launcher.py:11: DataConversionWarning: A column-vector y was passed when a 1d array was expected. Please change the shape of y to (n_samples, ), for example using ravel().\n",
" # This is added back by InteractiveShellApp.init_path()\n",
"/opt/conda/lib/python3.7/site-packages/ipykernel_launcher.py:11: DataConversionWarning: A column-vector y was passed when a 1d array was expected. Please change the shape of y to (n_samples, ), for example using ravel().\n",
" # This is added back by InteractiveShellApp.init_path()\n",
"/opt/conda/lib/python3.7/site-packages/ipykernel_launcher.py:11: DataConversionWarning: A column-vector y was passed when a 1d array was expected. Please change the shape of y to (n_samples, ), for example using ravel().\n",
" # This is added back by InteractiveShellApp.init_path()\n",
"/opt/conda/lib/python3.7/site-packages/ipykernel_launcher.py:11: DataConversionWarning: A column-vector y was passed when a 1d array was expected. Please change the shape of y to (n_samples, ), for example using ravel().\n",
" # This is added back by InteractiveShellApp.init_path()\n",
"/opt/conda/lib/python3.7/site-packages/ipykernel_launcher.py:11: DataConversionWarning: A column-vector y was passed when a 1d array was expected. Please change the shape of y to (n_samples, ), for example using ravel().\n",
" # This is added back by InteractiveShellApp.init_path()\n"
]
},
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAYgAAAEWCAYAAAB8LwAVAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjQuMywgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/MnkTPAAAACXBIWXMAAAsTAAALEwEAmpwYAABFL0lEQVR4nO3dd3hUZfbA8e9JBwIkEAgtdJQSCDVgBSxrVywgrL3juhbUn6trQ3d1ddVddVdFdLGtRlBXFxV1RUFQQIqA9BYCCTUQEggh/fz+uDdhCJMwCZlMyvk8zzwzt86Zm8k9877vve8rqooxxhhTVlCgAzDGGFM7WYIwxhjjlSUIY4wxXlmCMMYY45UlCGOMMV5ZgjDGGOOVJYg6TERSROSsQMcRKCKySkRGBDqO4yUinUVERSQkQO9/iohsEJFsERnlh/1PEpFHfVz3bRH5cwXLVUS6V190piKWIBoIEZno/nON8ZgX4s7r7E6/7U4neqzTXUR8ullGRL4WkSe9zL9ERHZW9wlQVfuo6uzq3CeAiFzvHocHysxPqw8JyYsngX+qaqSqflZ2oftDZLeINPGYd7OIzPZl56o6XlX/VG3RmhpjCaJhyQCeEJHgY6xT7i+4Y3gHuFpEpMz8a4D3VbXQ1x0F6te0hwzgARFpGuA4KqWKx60TsOoY6wQDd1dh37VSLfh+1Q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MnDiR559/HoARI0bwhz/8gcTERE444QTmzp0LQE5ODmPGjKF3795ceumlDB06tNxuepKSknjhhRfYtm0baWlppfPfffdd+vXrR0JCAtdccw0Au3bt4tJLLyUhIYGEhATmzZtHSkoK8fHxpds9//zzTJw4sTS+e+65h8GDB/PSSy/x+eefM3ToUAYMGMBZZ53Frl3OUNrZ2dnccMMN9O3bl379+vHJJ58wZcoU7rnnntL9vvHGG0yYMKF6/gAeApmypuOMEfwhToN0lqruEJFvgKc9GqZ/Azzk10ja9IV1MyA/B8IaH3t9Y+qhJz5fxert+6t1n73bNePxi/r4vL6qcuedd/Lf//6XVq1aMXXqVB5++GGmTJnCM888w+bNmwkPDyczM5OoqCjGjx9/RKnju++OrCouLCxk4cKFzJgxgyeeeIKZM2fy6quvEh0dzerVq1m5ciX9+/f3Gktqaio7duwgMTGRMWPGMHXqVO677z5WrVrFn//8Z+bNm0dMTAwZGU5T61133cXw4cP59NNPKSoqIjs7m3379lX4efPz80uT0759+1iwYAEiwptvvslf//pXXnjhBf70pz/RvHlzVqxYUbpeaGgoTz31FM899xyhoaG89dZbvP766z4fZ1/5LUGISBIwAogRkTScK5NCAVR1EjADOB9nXNocnEHaUdUMd1zlRe6unlTVihq7j19sPGgx7F4DHQb59a2MMeXLy8tj5cqVnH322QAUFRXRtm1bAPr168dVV13FqFGjGDVqlE/7u+yyywAYNGgQKSkpAPz444/cfffdAMTHx9OvXz+v206dOpUxY8YAMHbsWG688Ubuu+8+vv/+e0aPHk1MTAwALVq0AOD7778vbf8IDg6mefPmx0wQV155ZenrtLQ0rrzySnbs2EF+fn7p/QozZ87kww8/LF0vOtr57XzGGWfwxRdf0KtXLwoKCujbt69Px6Qy/JYgVHXcMZYrcEc5y6bgDEBeM9q4RcBdKyxBmAarMr/0/UVV6dOnD/Pnzz9q2ZdffsmcOXP4/PPPeeqpp0p/UVckPDwccE7YhYWVG9U0KSmJnTt38v777wOwfft2NmzYUKl9hISEUFxcXDpd9j6EJk2alL6+8847uffee7n44ouZPXt2aVVUeW6++WaefvppevbsyQ033FCpuHxlfTEBRHWC8GbWDmFMgIWHh5Oenl6aIAoKCli1ahXFxcWkpqYycuRInn32WbKyssjOzqZp06YcOHCgUu9xyimnMG3aNABWr17tNdGsX7+e7Oxstm3bRkpKCikpKTz00EMkJSVxxhln8NFHH7F3716A0iqmM888k9deew1wSj5ZWVnExsaye/du9u7dS15eHl988UW5cWVlZdG+vXPB5jvvvFM6/+yzz+aVV14pnS4plQwdOpTU1FQ++OADxo2r8Pd4lVmCABCB2D52JZMxARYUFMTHH3/MH/7wBxISEujfvz/z5s2jqKiIq6++mr59+zJgwADuuusuoqKiuOiii/j0009LG6l98bvf/Y709HR69+7NI488Qp8+fWjevPkR6yQlJXHppZceMe/yyy8nKSmJPn368PDDDzN8+HASEhK49957AXjppZeYNWsWffv2ZdCgQaxevZrQ0FAee+wxEhMTOfvss+nZs2e5cU2cOJHRo0czaNCg0uorgEceeYR9+/YRHx9PQkICs2bNKl02ZswYTjnllNJqp+pWb8akHjx4sB7XgEFf3g/LP4QHt0KQ5U3TMKxZs4ZevXoFOowaVVRUREFBAREREWzatImzzjqLdevWERYWFujQKu3CCy9kwoQJnHnmmT6t7+3vLSJLVHWwt/Vr34W3gdImHhYdgMwt0ML3zqyMMXVLTk4OI0eOpKCgAFXl1VdfrXPJITMzk8TERBISEnxODlVhCaJErHsFwK6VliCMqceaNm1a54cnjoqKYv369X5/H6tLKdG6F0iQNVQbY4zLEkSJsMbQops1VBtjjMsShKc28bDz2NdWG2NMQ2AJwlNsvNNInVu93Q0YY0xdZAnCU5uShupVgY3DmAbieLr7Xrx4MXfdddcx36Okp9fqcs8999C+ffsj7pCur+wqJk+xJV1urIROJwU2FmMagGN1911RN9iDBw9m8GCvl+8fwXO8iONVXFzMp59+SlxcHD/88AMjR46stn17qi3df1sJwlOzdtAo2tohjAmg66+/nvHjxzN06FAeeOABFi5cyEknncSAAQM4+eSTWbduHeCMBXHhhRcCTnK58cYbGTFiBF27duXll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eBGbhlEC+VFVvXXtX5Clgqcf0VcBrIvIITvL7EKfXT083AW+ISDHOCT3Lh/c5CCS6+92N004BTkP5JBFpjFPddkM52z8nIj1wPud3XmIy9ZD15mpMHSMikeoOkOQmqLaqeneAwzL1kJUgjKl7LhCRh3D+f7cA1wc2HFNfWQnCGGOMV9ZIbYwxxitLEMYYY7yyBGGMMcYrSxDGGGO8sgRhjDHGq/8HlI3ju38OBUwAAAAASUVORK5CYII=\n",
"text/plain": [
"<Figure size 432x288 with 1 Axes>"
]
},
"metadata": {
"needs_background": "light"
},
"output_type": "display_data"
}
],
"source": [
"neighbors = np.arange(1, 20)\n",
"train_accuracy = np.empty(len(neighbors))\n",
"test_accuracy = np.empty(len(neighbors))\n",
"\n",
"# Loop over different values of k\n",
"for i, k in enumerate(neighbors):\n",
" # Setup a k-NN Classifier with k neighbors: knn\n",
" knn = KNeighborsClassifier(n_neighbors=k)\n",
"\n",
" # Fit the classifier to the training data\n",
" knn.fit(X_train, y_train)\n",
" \n",
" #Compute accuracy on the training set\n",
" train_accuracy[i] = knn.score(X_train, y_train)\n",
"\n",
" #Compute accuracy on the testing set\n",
" test_accuracy[i] = knn.score(X_test, y_test)\n",
"\n",
"# Generate plot\n",
"plt.title('k-NN: Varying Number of Neighbors')\n",
"plt.plot(neighbors, test_accuracy, label = 'Testing Accuracy')\n",
"plt.plot(neighbors, train_accuracy, label = 'Training Accuracy')\n",
"plt.legend()\n",
"plt.xlabel('Number of Neighbors')\n",
"plt.ylabel('Accuracy')\n",
"plt.show()"
]
},
{
"cell_type": "markdown",
"id": "59a8dab4",
"metadata": {
"papermill": {
"duration": 0.019709,
"end_time": "2021-11-06T16:14:38.660612",
"exception": false,
"start_time": "2021-11-06T16:14:38.640903",
"status": "completed"
},
"tags": []
},
"source": [
"We can see that, for roughly 13 neighbours, we get the best results. Therefore, we shall keep that as the number of neighbours. We shall proceed to analyze the KNN model with 13 neighbours."
]
},
{
"cell_type": "code",
"execution_count": 6,
"id": "48cf7c82",
"metadata": {
"execution": {
"iopub.execute_input": "2021-11-06T16:14:38.702627Z",
"iopub.status.busy": "2021-11-06T16:14:38.701623Z",
"iopub.status.idle": "2021-11-06T16:14:38.784485Z",
"shell.execute_reply": "2021-11-06T16:14:38.785033Z",
"shell.execute_reply.started": "2021-11-06T15:53:37.889550Z"
},
"papermill": {
"duration": 0.105265,
"end_time": "2021-11-06T16:14:38.785220",
"exception": false,
"start_time": "2021-11-06T16:14:38.679955",
"status": "completed"
},
"tags": []
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"0.7861163227016885\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"/opt/conda/lib/python3.7/site-packages/ipykernel_launcher.py:2: DataConversionWarning: A column-vector y was passed when a 1d array was expected. Please change the shape of y to (n_samples, ), for example using ravel().\n",
" \n"
]
}
],
"source": [
"knn=KNeighborsClassifier(n_neighbors=13)\n",
"knn.fit(X,y)\n",
"print(knn.score(X_test, y_test))"
]
},
{
"cell_type": "markdown",
"id": "9e7aeb15",
"metadata": {
"papermill": {
"duration": 0.018922,
"end_time": "2021-11-06T16:14:38.823610",
"exception": false,
"start_time": "2021-11-06T16:14:38.804688",
"status": "completed"
},
"tags": []
},
"source": [
"The KNN model with 13 neighbours has 78% accuracy in deducing the status of an observed object. Below, we shall use a correlation heatmap in order to observe which terms are most linked together. We can see clearly that the best predictor remains the score; however, nothing predicts the score too well, and this means that other data, which was disconsidered when we cleaned the data, was relevant."
]
},
{
"cell_type": "code",
"execution_count": 7,
"id": "e33390c1",
"metadata": {
"execution": {
"iopub.execute_input": "2021-11-06T16:14:38.868347Z",
"iopub.status.busy": "2021-11-06T16:14:38.867474Z",
"iopub.status.idle": "2021-11-06T16:14:39.291756Z",
"shell.execute_reply": "2021-11-06T16:14:39.292503Z",
"shell.execute_reply.started": "2021-11-06T15:53:41.481234Z"
},
"papermill": {
"duration": 0.449801,
"end_time": "2021-11-06T16:14:39.292689",
"exception": false,
"start_time": "2021-11-06T16:14:38.842888",
"status": "completed"
},
"tags": []
},
"outputs": [
{
"data": {
"text/plain": [
"<AxesSubplot:>"
]
},
"execution_count": 7,
"metadata": {},
"output_type": "execute_result"
},
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAXIAAAE8CAYAAADddjoVAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjQuMywgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/MnkTPAAAACXBIWXMAAAsTAAALEwEAmpwYAAAr2ElEQVR4nO3debgdVZn2/++dgDIPIg4N2IAiiggIARUBaQVFQRlEEBGNrabVdkB/+kK3Chp8laEnbadOo4JgQ7dgJC34IiIERKYwhQRUMB0QUOmmIcxTcv/+qHXMzskZ9snZ2VV1zv25rrrOrlW1q56d4Tlrr1qDbBMREe01pe4AIiJifJLIIyJaLok8IqLlksgjIlouiTwiouWSyCMiWi6JPCKihyR9R9K9khYMc1ySvirpdknzJe083nsmkUdE9NZpwH4jHH8TsE3ZZgDfHO8Nk8gjInrI9mXA/45wyoHA91y5CthI0vPHc88k8oiI/toM+F3H/l2lbJWtMa5wYkT60KsaN/+BT/x43SGswL+5ue4QVuBHHq07hBU9+VTdEaxEm2xcdwgr0C5f1LivMZb/q9+6+q+omkQGzLI9a7wxjEcSeURMeprS/e+CZVXSHk/ivhvYomN/81K2ytK0EhGTnqao660H5gDvLr1XXgUssf378VwwNfKImPR6lKCra0lnAXsDz5Z0F3A8sCaA7W8BFwBvBm4HHgXeO957JpFHxKQ3ZWrvGidsHzHKcQN/3bMbkkQeEdHTGnkdksgjYtJLIo+IaLkk8oiIlksij4houSlrtLsndhJ5REx6qZFHRLSclEQeEdFqqZFHRLRc2xP5qC38krYcbqWLIc6dKWmfLs/dW9KPy+u3Sjq2m/eNh6RTJW1XXv/toGO/XN33j4hm6vNcKz3X0xq57eNW8X1zqCaSWa1sv79j92+BL3Uc23113z8imqntvVbGFL2krSXdIGlXSVeV9eZmS9q4HD9N0qEjvH8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llGBEjCaJvIGGGCX4HGAJ8ASQUYIRsYIk8gbKKMGIGIsk8oiIlks/8oiIlksij4houSTyiIiWSyKPiGi5JPKIiJb7/wHw+sGmJNl7+QAAAABJRU5ErkJggg==\n",
"text/plain": [
"<Figure size 432x288 with 2 Axes>"
]
},
"metadata": {
"needs_background": "light"
},
"output_type": "display_data"
}
],
"source": [
"import seaborn as sns\n",
"sns.heatmap(data.corr(), square=True, cmap='RdYlGn')"
]
},
{
"cell_type": "markdown",
"id": "25022342",
"metadata": {
"papermill": {
"duration": 0.020216,
"end_time": "2021-11-06T16:14:39.333571",
"exception": false,
"start_time": "2021-11-06T16:14:39.313355",
"status": "completed"
},
"tags": []
},
"source": []
},
{
"cell_type": "code",
"execution_count": null,
"id": "6774bc39",
"metadata": {
"execution": {
"iopub.execute_input": "2021-11-06T16:13:04.834497Z",
"iopub.status.busy": "2021-11-06T16:13:04.834193Z",
"iopub.status.idle": "2021-11-06T16:13:04.996954Z",
"shell.execute_reply": "2021-11-06T16:13:04.995818Z",
"shell.execute_reply.started": "2021-11-06T16:13:04.834438Z"
},
"papermill": {
"duration": 0.020138,
"end_time": "2021-11-06T16:14:39.374197",
"exception": false,
"start_time": "2021-11-06T16:14:39.354059",
"status": "completed"
},
"tags": []
},
"outputs": [],
"source": []
},
{
"cell_type": "code",
"execution_count": null,
"id": "092af456",
"metadata": {
"papermill": {
"duration": 0.020154,
"end_time": "2021-11-06T16:14:39.414708",
"exception": false,
"start_time": "2021-11-06T16:14:39.394554",
"status": "completed"
},
"tags": []
},
"outputs": [],
"source": []
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.7.10"
},
"papermill": {
"default_parameters": {},
"duration": 20.28945,
"end_time": "2021-11-06T16:14:40.245691",
"environment_variables": {},
"exception": null,
"input_path": "__notebook__.ipynb",
"output_path": "__notebook__.ipynb",
"parameters": {},
"start_time": "2021-11-06T16:14:19.956241",
"version": "2.3.3"
}
},
"nbformat": 4,
"nbformat_minor": 5
}
| 0078/947/78947914.ipynb | s3://data-agents/kaggle-outputs/sharded/044_00078.jsonl.gz |
{
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"id": "cefdfc19",
"metadata": {
"_cell_guid": "b1076dfc-b9ad-4769-8c92-a6c4dae69d19",
"_uuid": "8f2839f25d086af736a60e9eeb907d3b93b6e0e5",
"execution": {
"iopub.execute_input": "2021-11-06T16:16:12.003804Z",
"iopub.status.busy": "2021-11-06T16:16:12.003109Z",
"iopub.status.idle": "2021-11-06T16:16:18.123464Z",
"shell.execute_reply": "2021-11-06T16:16:18.122731Z",
"shell.execute_reply.started": "2021-11-06T16:02:58.208441Z"
},
"papermill": {
"duration": 6.147203,
"end_time": "2021-11-06T16:16:18.123624",
"exception": false,
"start_time": "2021-11-06T16:16:11.976421",
"status": "completed"
},
"tags": []
},
"outputs": [],
"source": [
"# This Python 3 environment comes with many helpful analytics libraries installed\n",
"# It is defined by the kaggle/python Docker image: https://github.com/kaggle/docker-python\n",
"# For example, here's several helpful packages to load\n",
"\n",
"import numpy as np \n",
"import tensorflow as tf\n",
"from tensorflow import keras\n",
"from keras.models import Sequential\n",
"from keras.layers import Dense, Dropout, Flatten\n",
"from keras.layers import Conv2D, MaxPooling2D\n",
"# from keras.utils import to_categorical\n",
"from sklearn.preprocessing import LabelEncoder\n",
"from keras.utils import np_utils\n",
"import matplotlib.pyplot as plt\n",
"from keras.models import load_model\n",
"# Input data files are available in the read-only \"../input/\" directory\n",
"# For example, running this (by clicking run or pressing Shift+Enter) will list all files under the input directory\n",
"\n",
"import os\n",
"for dirname, _, filenames in os.walk('/kaggle/input'):\n",
" for filename in filenames:\n",
" print(os.path.join(dirname, filename))\n",
"\n",
"# You can write up to 20GB to the current directory (/kaggle/working/) that gets preserved as output when you create a version using \"Save & Run All\" \n",
"# You can also write temporary files to /kaggle/temp/, but they won't be saved outside of the current session"
]
},
{
"cell_type": "code",
"execution_count": 2,
"id": "4b6e7062",
"metadata": {
"execution": {
"iopub.execute_input": "2021-11-06T16:16:18.152941Z",
"iopub.status.busy": "2021-11-06T16:16:18.152232Z",
"iopub.status.idle": "2021-11-06T16:16:24.587747Z",
"shell.execute_reply": "2021-11-06T16:16:24.587199Z",
"shell.execute_reply.started": "2021-11-06T16:02:58.217786Z"
},
"papermill": {
"duration": 6.451705,
"end_time": "2021-11-06T16:16:24.587891",
"exception": false,
"start_time": "2021-11-06T16:16:18.136186",
"status": "completed"
},
"tags": []
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Downloading data from https://www.cs.toronto.edu/~kriz/cifar-10-python.tar.gz\n",
"170500096/170498071 [==============================] - 3s 0us/step\n",
"170508288/170498071 [==============================] - 3s 0us/step\n"
]
}
],
"source": [
"data = tf.keras.datasets.cifar10.load_data()\n"
]
},
{
"cell_type": "code",
"execution_count": 3,
"id": "f4d223ff",
"metadata": {
"execution": {
"iopub.execute_input": "2021-11-06T16:16:24.658865Z",
"iopub.status.busy": "2021-11-06T16:16:24.658208Z",
"iopub.status.idle": "2021-11-06T16:16:24.660207Z",
"shell.execute_reply": "2021-11-06T16:16:24.660692Z",
"shell.execute_reply.started": "2021-11-06T16:02:58.988427Z"
},
"papermill": {
"duration": 0.038661,
"end_time": "2021-11-06T16:16:24.660850",
"exception": false,
"start_time": "2021-11-06T16:16:24.622189",
"status": "completed"
},
"tags": []
},
"outputs": [],
"source": [
"(x_train, y_train), (x_test, y_test) = data\n"
]
},
{
"cell_type": "code",
"execution_count": 4,
"id": "d39a8529",
"metadata": {
"execution": {
"iopub.execute_input": "2021-11-06T16:16:24.727666Z",
"iopub.status.busy": "2021-11-06T16:16:24.726993Z",
"iopub.status.idle": "2021-11-06T16:16:24.731824Z",
"shell.execute_reply": "2021-11-06T16:16:24.731300Z",
"shell.execute_reply.started": "2021-11-06T16:02:59.036060Z"
},
"papermill": {
"duration": 0.039523,
"end_time": "2021-11-06T16:16:24.731972",
"exception": false,
"start_time": "2021-11-06T16:16:24.692449",
"status": "completed"
},
"tags": []
},
"outputs": [],
"source": [
"assert x_train.shape == (50000, 32, 32, 3)\n",
"assert x_test.shape == (10000, 32, 32, 3)\n",
"assert y_train.shape == (50000, 1)\n",
"assert y_test.shape == (10000, 1)"
]
},
{
"cell_type": "markdown",
"id": "d435bd67",
"metadata": {
"execution": {
"iopub.execute_input": "2021-11-06T15:26:56.123070Z",
"iopub.status.busy": "2021-11-06T15:26:56.122741Z",
"iopub.status.idle": "2021-11-06T15:26:56.128724Z",
"shell.execute_reply": "2021-11-06T15:26:56.127857Z",
"shell.execute_reply.started": "2021-11-06T15:26:56.123037Z"
},
"papermill": {
"duration": 0.031174,
"end_time": "2021-11-06T16:16:24.794946",
"exception": false,
"start_time": "2021-11-06T16:16:24.763772",
"status": "completed"
},
"tags": []
},
"source": [
"Normalization:"
]
},
{
"cell_type": "markdown",
"id": "29975ad9",
"metadata": {
"papermill": {
"duration": 0.030934,
"end_time": "2021-11-06T16:16:24.857543",
"exception": false,
"start_time": "2021-11-06T16:16:24.826609",
"status": "completed"
},
"tags": []
},
"source": [
"x_train = x_train/255\n",
"x_test = x_test/255"
]
},
{
"cell_type": "code",
"execution_count": 5,
"id": "5f8c513f",
"metadata": {
"execution": {
"iopub.execute_input": "2021-11-06T16:16:24.924528Z",
"iopub.status.busy": "2021-11-06T16:16:24.923893Z",
"iopub.status.idle": "2021-11-06T16:16:25.421891Z",
"shell.execute_reply": "2021-11-06T16:16:25.421206Z",
"shell.execute_reply.started": "2021-11-06T16:02:59.049048Z"
},
"papermill": {
"duration": 0.532679,
"end_time": "2021-11-06T16:16:25.422035",
"exception": false,
"start_time": "2021-11-06T16:16:24.889356",
"status": "completed"
},
"tags": []
},
"outputs": [],
"source": [
"x_train = x_train/255\n",
"x_test = x_test/255"
]
},
{
"cell_type": "code",
"execution_count": 6,
"id": "8db3a23e",
"metadata": {
"execution": {
"iopub.execute_input": "2021-11-06T16:16:25.492278Z",
"iopub.status.busy": "2021-11-06T16:16:25.491555Z",
"iopub.status.idle": "2021-11-06T16:16:25.497654Z",
"shell.execute_reply": "2021-11-06T16:16:25.498264Z",
"shell.execute_reply.started": "2021-11-06T16:02:59.545903Z"
},
"papermill": {
"duration": 0.043486,
"end_time": "2021-11-06T16:16:25.498435",
"exception": false,
"start_time": "2021-11-06T16:16:25.454949",
"status": "completed"
},
"tags": []
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"(50000, 10)\n",
"(10000, 10)\n"
]
}
],
"source": [
"y_train=np_utils.to_categorical(y_train)\n",
"print(y_train.shape)\n",
"y_test=np_utils.to_categorical(y_test)\n",
"print(y_test.shape)"
]
},
{
"cell_type": "code",
"execution_count": 7,
"id": "b508fafa",
"metadata": {
"execution": {
"iopub.execute_input": "2021-11-06T16:16:25.565039Z",
"iopub.status.busy": "2021-11-06T16:16:25.564411Z",
"iopub.status.idle": "2021-11-06T16:16:25.613395Z",
"shell.execute_reply": "2021-11-06T16:16:25.613945Z",
"shell.execute_reply.started": "2021-11-06T16:02:59.554296Z"
},
"papermill": {
"duration": 0.083926,
"end_time": "2021-11-06T16:16:25.614111",
"exception": false,
"start_time": "2021-11-06T16:16:25.530185",
"status": "completed"
},
"tags": []
},
"outputs": [
{
"name": "stderr",
"output_type": "stream",
"text": [
"\n",
"User settings:\n",
"\n",
" KMP_AFFINITY=granularity=fine,verbose,compact,1,0\n",
" KMP_BLOCKTIME=0\n",
" KMP_DUPLICATE_LIB_OK=True\n",
" KMP_INIT_AT_FORK=FALSE\n",
" KMP_SETTINGS=1\n",
" KMP_WARNINGS=0\n",
"\n",
"Effective settings:\n",
"\n",
" KMP_ABORT_DELAY=0\n",
" KMP_ADAPTIVE_LOCK_PROPS='1,1024'\n",
" KMP_ALIGN_ALLOC=64\n",
" KMP_ALL_THREADPRIVATE=128\n",
" KMP_ATOMIC_MODE=2\n",
" KMP_BLOCKTIME=0\n",
" KMP_CPUINFO_FILE: value is not defined\n",
" KMP_DETERMINISTIC_REDUCTION=false\n",
" KMP_DEVICE_THREAD_LIMIT=2147483647\n",
" KMP_DISP_NUM_BUFFERS=7\n",
" KMP_DUPLICATE_LIB_OK=true\n",
" KMP_ENABLE_TASK_THROTTLING=true\n",
" KMP_FORCE_REDUCTION: value is not defined\n",
" KMP_FOREIGN_THREADS_THREADPRIVATE=true\n",
" KMP_FORKJOIN_BARRIER='2,2'\n",
" KMP_FORKJOIN_BARRIER_PATTERN='hyper,hyper'\n",
" KMP_GTID_MODE=3\n",
" KMP_HANDLE_SIGNALS=false\n",
" KMP_HOT_TEAMS_MAX_LEVEL=1\n",
" KMP_HOT_TEAMS_MODE=0\n",
" KMP_INIT_AT_FORK=true\n",
" KMP_LIBRARY=throughput\n",
" KMP_LOCK_KIND=queuing\n",
" KMP_MALLOC_POOL_INCR=1M\n",
" KMP_NUM_LOCKS_IN_BLOCK=1\n",
" KMP_PLAIN_BARRIER='2,2'\n",
" KMP_PLAIN_BARRIER_PATTERN='hyper,hyper'\n",
" KMP_REDUCTION_BARRIER='1,1'\n",
" KMP_REDUCTION_BARRIER_PATTERN='hyper,hyper'\n",
" KMP_SCHEDULE='static,balanced;guided,iterative'\n",
" KMP_SETTINGS=true\n",
" KMP_SPIN_BACKOFF_PARAMS='4096,100'\n",
" KMP_STACKOFFSET=64\n",
" KMP_STACKPAD=0\n",
" KMP_STACKSIZE=8M\n",
" KMP_STORAGE_MAP=false\n",
" KMP_TASKING=2\n",
" KMP_TASKLOOP_MIN_TASKS=0\n",
" KMP_TASK_STEALING_CONSTRAINT=1\n",
" KMP_TEAMS_THREAD_LIMIT=4\n",
" KMP_TOPOLOGY_METHOD=all\n",
" KMP_USE_YIELD=1\n",
" KMP_VERSION=false\n",
" KMP_WARNINGS=false\n",
" OMP_AFFINITY_FORMAT='OMP: pid %P tid %i thread %n bound to OS proc set {%A}'\n",
" OMP_ALLOCATOR=omp_default_mem_alloc\n",
" OMP_CANCELLATION=false\n",
" OMP_DEFAULT_DEVICE=0\n",
" OMP_DISPLAY_AFFINITY=false\n",
" OMP_DISPLAY_ENV=false\n",
" OMP_DYNAMIC=false\n",
" OMP_MAX_ACTIVE_LEVELS=1\n",
" OMP_MAX_TASK_PRIORITY=0\n",
" OMP_NESTED: deprecated; max-active-levels-var=1\n",
" OMP_NUM_THREADS: value is not defined\n",
" OMP_PLACES: value is not defined\n",
" OMP_PROC_BIND='intel'\n",
" OMP_SCHEDULE='static'\n",
" OMP_STACKSIZE=8M\n",
" OMP_TARGET_OFFLOAD=DEFAULT\n",
" OMP_THREAD_LIMIT=2147483647\n",
" OMP_WAIT_POLICY=PASSIVE\n",
" KMP_AFFINITY='verbose,warnings,respect,granularity=fine,compact,1,0'\n",
"\n",
"2021-11-06 16:16:25.607154: I tensorflow/core/common_runtime/process_util.cc:146] Creating new thread pool with default inter op setting: 2. Tune using inter_op_parallelism_threads for best performance.\n"
]
}
],
"source": [
"from tensorflow.compat.v1 import ConfigProto\n",
"from tensorflow.compat.v1 import InteractiveSession\n",
"config = ConfigProto()\n",
"config.gpu_options.allow_growth = True\n",
"session = InteractiveSession(config=config)"
]
},
{
"cell_type": "code",
"execution_count": 8,
"id": "5b2a56c5",
"metadata": {
"execution": {
"iopub.execute_input": "2021-11-06T16:16:25.682395Z",
"iopub.status.busy": "2021-11-06T16:16:25.681674Z",
"iopub.status.idle": "2021-11-06T16:16:25.989571Z",
"shell.execute_reply": "2021-11-06T16:16:25.990256Z",
"shell.execute_reply.started": "2021-11-06T16:02:59.571733Z"
},
"papermill": {
"duration": 0.343857,
"end_time": "2021-11-06T16:16:25.990435",
"exception": false,
"start_time": "2021-11-06T16:16:25.646578",
"status": "completed"
},
"tags": []
},
"outputs": [
{
"name": "stderr",
"output_type": "stream",
"text": [
"2021-11-06 16:16:25.701813: I tensorflow/core/common_runtime/process_util.cc:146] Creating new thread pool with default inter op setting: 2. Tune using inter_op_parallelism_threads for best performance.\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"Model: \"sequential\"\n",
"_________________________________________________________________\n",
"Layer (type) Output Shape Param # \n",
"=================================================================\n",
"conv2d (Conv2D) (None, 30, 30, 32) 896 \n",
"_________________________________________________________________\n",
"max_pooling2d (MaxPooling2D) (None, 15, 15, 32) 0 \n",
"_________________________________________________________________\n",
"conv2d_1 (Conv2D) (None, 13, 13, 64) 18496 \n",
"_________________________________________________________________\n",
"max_pooling2d_1 (MaxPooling2 (None, 6, 6, 64) 0 \n",
"_________________________________________________________________\n",
"flatten (Flatten) (None, 2304) 0 \n",
"_________________________________________________________________\n",
"dense (Dense) (None, 64) 147520 \n",
"_________________________________________________________________\n",
"dense_1 (Dense) (None, 10) 650 \n",
"=================================================================\n",
"Total params: 167,562\n",
"Trainable params: 167,562\n",
"Non-trainable params: 0\n",
"_________________________________________________________________\n"
]
}
],
"source": [
"model = Sequential()\n",
"\n",
"model.add(Conv2D(32, kernel_size=(3, 3), activation='relu', input_shape=(32, 32, 3)))\n",
"model.add(MaxPooling2D(pool_size=(2, 2)))\n",
"\n",
"model.add(Conv2D(64, kernel_size=(3, 3), activation='relu', input_shape=(32, 32, 3)))\n",
"model.add(MaxPooling2D(pool_size=(2, 2)))\n",
"\n",
"model.add(Flatten())\n",
"\n",
"\n",
"model.add(Dense(64, activation='relu'))\n",
"\n",
"\n",
"model.add(Dense(10, activation='softmax'))\n",
"\n",
"model.summary()"
]
},
{
"cell_type": "code",
"execution_count": 9,
"id": "df7bd247",
"metadata": {
"execution": {
"iopub.execute_input": "2021-11-06T16:16:26.060588Z",
"iopub.status.busy": "2021-11-06T16:16:26.059593Z",
"iopub.status.idle": "2021-11-06T16:16:26.071831Z",
"shell.execute_reply": "2021-11-06T16:16:26.072315Z",
"shell.execute_reply.started": "2021-11-06T16:03:28.586751Z"
},
"papermill": {
"duration": 0.048703,
"end_time": "2021-11-06T16:16:26.072493",
"exception": false,
"start_time": "2021-11-06T16:16:26.023790",
"status": "completed"
},
"tags": []
},
"outputs": [],
"source": [
"model.compile(loss='categorical_crossentropy',optimizer='Adam',metrics=['accuracy'])"
]
},
{
"cell_type": "code",
"execution_count": 10,
"id": "7182ca57",
"metadata": {
"execution": {
"iopub.execute_input": "2021-11-06T16:16:26.142084Z",
"iopub.status.busy": "2021-11-06T16:16:26.141145Z",
"iopub.status.idle": "2021-11-06T16:25:51.531251Z",
"shell.execute_reply": "2021-11-06T16:25:51.531744Z",
"shell.execute_reply.started": "2021-11-06T16:04:51.637098Z"
},
"papermill": {
"duration": 565.426909,
"end_time": "2021-11-06T16:25:51.532008",
"exception": false,
"start_time": "2021-11-06T16:16:26.105099",
"status": "completed"
},
"tags": []
},
"outputs": [
{
"name": "stderr",
"output_type": "stream",
"text": [
"2021-11-06 16:16:27.003406: I tensorflow/compiler/mlir/mlir_graph_optimization_pass.cc:185] None of the MLIR Optimization Passes are enabled (registered 2)\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"Epoch 1/30\n",
"1250/1250 [==============================] - 20s 16ms/step - loss: 1.4989 - accuracy: 0.4581 - val_loss: 1.2217 - val_accuracy: 0.5738\n",
"Epoch 2/30\n",
"1250/1250 [==============================] - 18s 15ms/step - loss: 1.1361 - accuracy: 0.5994 - val_loss: 1.1090 - val_accuracy: 0.6058\n",
"Epoch 3/30\n",
"1250/1250 [==============================] - 19s 15ms/step - loss: 1.0012 - accuracy: 0.6486 - val_loss: 1.0029 - val_accuracy: 0.6517\n",
"Epoch 4/30\n",
"1250/1250 [==============================] - 18s 15ms/step - loss: 0.9048 - accuracy: 0.6847 - val_loss: 0.9512 - val_accuracy: 0.6723\n",
"Epoch 5/30\n",
"1250/1250 [==============================] - 19s 15ms/step - loss: 0.8343 - accuracy: 0.7082 - val_loss: 1.0052 - val_accuracy: 0.6554\n",
"Epoch 6/30\n",
"1250/1250 [==============================] - 19s 15ms/step - loss: 0.7727 - accuracy: 0.7289 - val_loss: 0.9072 - val_accuracy: 0.6915\n",
"Epoch 7/30\n",
"1250/1250 [==============================] - 18s 15ms/step - loss: 0.7223 - accuracy: 0.7466 - val_loss: 0.9135 - val_accuracy: 0.6886\n",
"Epoch 8/30\n",
"1250/1250 [==============================] - 19s 15ms/step - loss: 0.6678 - accuracy: 0.7675 - val_loss: 0.9356 - val_accuracy: 0.6879\n",
"Epoch 9/30\n",
"1250/1250 [==============================] - 18s 14ms/step - loss: 0.6249 - accuracy: 0.7793 - val_loss: 0.9622 - val_accuracy: 0.6790\n",
"Epoch 10/30\n",
"1250/1250 [==============================] - 19s 15ms/step - loss: 0.5694 - accuracy: 0.8009 - val_loss: 0.9576 - val_accuracy: 0.6933\n",
"Epoch 11/30\n",
"1250/1250 [==============================] - 18s 15ms/step - loss: 0.5357 - accuracy: 0.8101 - val_loss: 0.9776 - val_accuracy: 0.6928\n",
"Epoch 12/30\n",
"1250/1250 [==============================] - 19s 16ms/step - loss: 0.4916 - accuracy: 0.8279 - val_loss: 1.0252 - val_accuracy: 0.6847\n",
"Epoch 13/30\n",
"1250/1250 [==============================] - 19s 15ms/step - loss: 0.4536 - accuracy: 0.8389 - val_loss: 1.0523 - val_accuracy: 0.6909\n",
"Epoch 14/30\n",
"1250/1250 [==============================] - 19s 15ms/step - loss: 0.4155 - accuracy: 0.8542 - val_loss: 1.1365 - val_accuracy: 0.6865\n",
"Epoch 15/30\n",
"1250/1250 [==============================] - 19s 15ms/step - loss: 0.3826 - accuracy: 0.8656 - val_loss: 1.1903 - val_accuracy: 0.6778\n",
"Epoch 16/30\n",
"1250/1250 [==============================] - 21s 17ms/step - loss: 0.3506 - accuracy: 0.8751 - val_loss: 1.2466 - val_accuracy: 0.6905\n",
"Epoch 17/30\n",
"1250/1250 [==============================] - 19s 15ms/step - loss: 0.3256 - accuracy: 0.8831 - val_loss: 1.2804 - val_accuracy: 0.6762\n",
"Epoch 18/30\n",
"1250/1250 [==============================] - 19s 15ms/step - loss: 0.2945 - accuracy: 0.8946 - val_loss: 1.3626 - val_accuracy: 0.6703\n",
"Epoch 19/30\n",
"1250/1250 [==============================] - 18s 15ms/step - loss: 0.2733 - accuracy: 0.9033 - val_loss: 1.4203 - val_accuracy: 0.6824\n",
"Epoch 20/30\n",
"1250/1250 [==============================] - 19s 15ms/step - loss: 0.2472 - accuracy: 0.9103 - val_loss: 1.4930 - val_accuracy: 0.6779\n",
"Epoch 21/30\n",
"1250/1250 [==============================] - 18s 14ms/step - loss: 0.2298 - accuracy: 0.9179 - val_loss: 1.5264 - val_accuracy: 0.6801\n",
"Epoch 22/30\n",
"1250/1250 [==============================] - 19s 15ms/step - loss: 0.2066 - accuracy: 0.9266 - val_loss: 1.6141 - val_accuracy: 0.6774\n",
"Epoch 23/30\n",
"1250/1250 [==============================] - 18s 14ms/step - loss: 0.1948 - accuracy: 0.9311 - val_loss: 1.7142 - val_accuracy: 0.6742\n",
"Epoch 24/30\n",
"1250/1250 [==============================] - 19s 15ms/step - loss: 0.1764 - accuracy: 0.9368 - val_loss: 1.8060 - val_accuracy: 0.6702\n",
"Epoch 25/30\n",
"1250/1250 [==============================] - 19s 15ms/step - loss: 0.1635 - accuracy: 0.9413 - val_loss: 1.8740 - val_accuracy: 0.6740\n",
"Epoch 26/30\n",
"1250/1250 [==============================] - 19s 15ms/step - loss: 0.1540 - accuracy: 0.9445 - val_loss: 1.9945 - val_accuracy: 0.6584\n",
"Epoch 27/30\n",
"1250/1250 [==============================] - 19s 15ms/step - loss: 0.1428 - accuracy: 0.9493 - val_loss: 2.0612 - val_accuracy: 0.6752\n",
"Epoch 28/30\n",
"1250/1250 [==============================] - 18s 14ms/step - loss: 0.1368 - accuracy: 0.9508 - val_loss: 2.1564 - val_accuracy: 0.6638\n",
"Epoch 29/30\n",
"1250/1250 [==============================] - 20s 16ms/step - loss: 0.1283 - accuracy: 0.9539 - val_loss: 2.2487 - val_accuracy: 0.6684\n",
"Epoch 30/30\n",
"1250/1250 [==============================] - 18s 14ms/step - loss: 0.1220 - accuracy: 0.9557 - val_loss: 2.3343 - val_accuracy: 0.6602\n"
]
},
{
"data": {
"text/plain": [
"<keras.callbacks.History at 0x7f9e86e83250>"
]
},
"execution_count": 10,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"model.fit(x_train, y_train, epochs=30, validation_split=0.2)\n"
]
},
{
"cell_type": "code",
"execution_count": 11,
"id": "82391545",
"metadata": {
"execution": {
"iopub.execute_input": "2021-11-06T16:25:57.552324Z",
"iopub.status.busy": "2021-11-06T16:25:57.551320Z",
"iopub.status.idle": "2021-11-06T16:25:59.290496Z",
"shell.execute_reply": "2021-11-06T16:25:59.291011Z",
"shell.execute_reply.started": "2021-11-06T16:14:29.474124Z"
},
"papermill": {
"duration": 4.77212,
"end_time": "2021-11-06T16:25:59.291228",
"exception": false,
"start_time": "2021-11-06T16:25:54.519108",
"status": "completed"
},
"tags": []
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"313/313 [==============================] - 1s 4ms/step - loss: 2.4410 - accuracy: 0.6478\n"
]
},
{
"data": {
"text/plain": [
"[2.440995216369629, 0.6478000283241272]"
]
},
"execution_count": 11,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"model.evaluate(x_test,y_test)\n"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "cb43fc33",
"metadata": {
"papermill": {
"duration": 2.942089,
"end_time": "2021-11-06T16:26:05.248417",
"exception": false,
"start_time": "2021-11-06T16:26:02.306328",
"status": "completed"
},
"tags": []
},
"outputs": [],
"source": []
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.7.10"
},
"papermill": {
"default_parameters": {},
"duration": 608.97578,
"end_time": "2021-11-06T16:26:11.767661",
"environment_variables": {},
"exception": null,
"input_path": "__notebook__.ipynb",
"output_path": "__notebook__.ipynb",
"parameters": {},
"start_time": "2021-11-06T16:16:02.791881",
"version": "2.3.3"
}
},
"nbformat": 4,
"nbformat_minor": 5
}
| 0078/948/78948021.ipynb | s3://data-agents/kaggle-outputs/sharded/044_00078.jsonl.gz |
"{\n \"cells\": [\n {\n \"cell_type\": \"markdown\",\n \"id\": \"c6e692e3\",\n \"metadata\": (...TRUNCATED) | 0078/948/78948164.ipynb | s3://data-agents/kaggle-outputs/sharded/044_00078.jsonl.gz |
"{\n \"cells\": [\n {\n \"cell_type\": \"code\",\n \"execution_count\": 1,\n \"id\": \"7ed346(...TRUNCATED) | 0078/948/78948590.ipynb | s3://data-agents/kaggle-outputs/sharded/044_00078.jsonl.gz |
"{\"metadata\":{\"kernelspec\":{\"language\":\"python\",\"display_name\":\"Python 3\",\"name\":\"pyt(...TRUNCATED) | 0078/948/78948776.ipynb | s3://data-agents/kaggle-outputs/sharded/044_00078.jsonl.gz |
"{\n \"cells\": [\n {\n \"cell_type\": \"markdown\",\n \"id\": \"bf14429f\",\n \"metadata\": (...TRUNCATED) | 0078/949/78949328.ipynb | s3://data-agents/kaggle-outputs/sharded/044_00078.jsonl.gz |
"{\n \"cells\": [\n {\n \"cell_type\": \"code\",\n \"execution_count\": null,\n \"id\": \"bd9(...TRUNCATED) | 0078/949/78949587.ipynb | s3://data-agents/kaggle-outputs/sharded/044_00078.jsonl.gz |
"{\"metadata\":{\"kernelspec\":{\"language\":\"python\",\"display_name\":\"Python 3\",\"name\":\"pyt(...TRUNCATED) | 0078/949/78949593.ipynb | s3://data-agents/kaggle-outputs/sharded/044_00078.jsonl.gz |
"{\n \"cells\": [\n {\n \"cell_type\": \"markdown\",\n \"id\": \"881e4104\",\n \"metadata\": (...TRUNCATED) | 0078/949/78949836.ipynb | s3://data-agents/kaggle-outputs/sharded/044_00078.jsonl.gz |
"{\n \"cells\": [\n {\n \"cell_type\": \"markdown\",\n \"id\": \"cf5760b2\",\n \"metadata\": (...TRUNCATED) | 0078/950/78950388.ipynb | s3://data-agents/kaggle-outputs/sharded/044_00078.jsonl.gz |
End of preview. Expand
in Dataset Viewer.
README.md exists but content is empty.
- Downloads last month
- 8