diff --git "a/IOT ML Model.ipynb" "b/IOT ML Model.ipynb" new file mode 100644--- /dev/null +++ "b/IOT ML Model.ipynb" @@ -0,0 +1,2272 @@ +{ + "cells": [ + { + "cell_type": "code", + "execution_count": 1, + "id": "4729389b", + "metadata": {}, + "outputs": [], + "source": [ + "import numpy as np \n", + "import pandas as pd\n", + "import matplotlib.pyplot as plt \n", + "import seaborn as sns" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "id": "90bbdf2a", + "metadata": {}, + "outputs": [], + "source": [ + "df = pd.read_csv(\"IOT.csv\")" + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "id": "38f7eaae", + "metadata": {}, + "outputs": [ + { + "data": { + "text/html": [ + "
\n", + " | x axis | \n", + "y axis | \n", + "z axis | \n", + "activities | \n", + "
---|---|---|---|---|
0 | \n", + "2.70664 | \n", + "2.31437 | \n", + "10.19892 | \n", + "eating | \n", + "
1 | \n", + "2.58896 | \n", + "2.35360 | \n", + "10.31660 | \n", + "eating | \n", + "
2 | \n", + "3.41271 | \n", + "6.15858 | \n", + "10.12046 | \n", + "eating | \n", + "
3 | \n", + "2.27514 | \n", + "1.60829 | \n", + "9.76742 | \n", + "eating | \n", + "
4 | \n", + "2.19669 | \n", + "2.78509 | \n", + "9.33593 | \n", + "eating | \n", + "
\n", + " | x axis | \n", + "y axis | \n", + "z axis | \n", + "
---|---|---|---|
count | \n", + "325.000000 | \n", + "325.00000 | \n", + "325.000000 | \n", + "
mean | \n", + "-0.459736 | \n", + "0.74784 | \n", + "10.146895 | \n", + "
std | \n", + "2.875754 | \n", + "3.22656 | \n", + "1.096561 | \n", + "
min | \n", + "-8.080680 | \n", + "-5.25636 | \n", + "6.707750 | \n", + "
25% | \n", + "-2.745860 | \n", + "-1.37293 | \n", + "9.532060 | \n", + "
50% | \n", + "0.196130 | \n", + "-0.23536 | \n", + "10.277370 | \n", + "
75% | \n", + "1.647520 | \n", + "2.78509 | \n", + "10.944220 | \n", + "
max | \n", + "6.668520 | \n", + "9.13980 | \n", + "14.749200 | \n", + "
\n", + " | x axis | \n", + "y axis | \n", + "z axis | \n", + "activities | \n", + "
---|---|---|---|---|
0 | \n", + "False | \n", + "False | \n", + "False | \n", + "False | \n", + "
1 | \n", + "False | \n", + "False | \n", + "False | \n", + "False | \n", + "
2 | \n", + "False | \n", + "False | \n", + "False | \n", + "False | \n", + "
3 | \n", + "False | \n", + "False | \n", + "False | \n", + "False | \n", + "
4 | \n", + "False | \n", + "False | \n", + "False | \n", + "False | \n", + "
... | \n", + "... | \n", + "... | \n", + "... | \n", + "... | \n", + "
320 | \n", + "False | \n", + "False | \n", + "False | \n", + "False | \n", + "
321 | \n", + "False | \n", + "False | \n", + "False | \n", + "False | \n", + "
322 | \n", + "False | \n", + "False | \n", + "False | \n", + "False | \n", + "
323 | \n", + "False | \n", + "False | \n", + "False | \n", + "False | \n", + "
324 | \n", + "False | \n", + "False | \n", + "False | \n", + "False | \n", + "
325 rows × 4 columns
\n", + "LogisticRegression()In a Jupyter environment, please rerun this cell to show the HTML representation or trust the notebook.
LogisticRegression()
SVC()In a Jupyter environment, please rerun this cell to show the HTML representation or trust the notebook.
SVC()
KNeighborsClassifier(n_neighbors=11)In a Jupyter environment, please rerun this cell to show the HTML representation or trust the notebook.
KNeighborsClassifier(n_neighbors=11)