diff --git a/.gitattributes b/.gitattributes index a6344aac8c09253b3b630fb776ae94478aa0275b..8af8ef7d61d91d42ac078eb6849bd363d61ecfd5 100644 --- a/.gitattributes +++ b/.gitattributes @@ -33,3 +33,19 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text *.zip filter=lfs diff=lfs merge=lfs -text *.zst filter=lfs diff=lfs merge=lfs -text *tfevents* filter=lfs diff=lfs merge=lfs -text +core/bicep_model/train.csv filter=lfs diff=lfs merge=lfs -text +core/lunge_model/err.train.csv filter=lfs diff=lfs merge=lfs -text +core/lunge_model/stage.train.csv filter=lfs diff=lfs merge=lfs -text +core/plank_model/train.csv filter=lfs diff=lfs merge=lfs -text +demo/bc_demo.mp4 filter=lfs diff=lfs merge=lfs -text +demo/lunge_demo.mp4 filter=lfs diff=lfs merge=lfs -text +demo/plank_demo.mp4 filter=lfs diff=lfs merge=lfs -text +demo/squat_demo.mp4 filter=lfs diff=lfs merge=lfs -text +docs/B1809677-Ngô[[:space:]]Hồng[[:space:]]Quốc[[:space:]]Bảo-Wrong[[:space:]]Pose[[:space:]]Dectection[[:space:]]based[[:space:]]on[[:space:]]Machine[[:space:]]Learning.docx filter=lfs diff=lfs merge=lfs -text +docs/B1809677-Ngô[[:space:]]Hồng[[:space:]]Quốc[[:space:]]Bảo-Wrong[[:space:]]Pose[[:space:]]Dectection[[:space:]]based[[:space:]]on[[:space:]]Machine[[:space:]]Learning.pdf filter=lfs diff=lfs merge=lfs -text +images/bicep_curl.gif filter=lfs diff=lfs merge=lfs -text +images/lunge.gif filter=lfs diff=lfs merge=lfs -text +images/plank.gif filter=lfs diff=lfs merge=lfs -text +images/squat.gif filter=lfs diff=lfs merge=lfs -text +images/web_3.png filter=lfs diff=lfs merge=lfs -text +images/web_4.png filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000000000000000000000000000000000000..b6c5e651a09db640e08dbcd2cc96930ea8b49775 --- /dev/null +++ b/.gitignore @@ -0,0 +1,52 @@ +# Files +.DS_Store + +# Machine Learning Folders +.ipynb_checkpoints/ +env/ +data/ + +# Editor directories and files +.vscode +!.vscode/extensions.json +.idea +*.suo +*.ntvs* +*.njsproj +*.sln +*.sw? + +# Vue clients +package-lock.json +logs +*.log +npm-debug.log* +yarn-debug.log* +yarn-error.log* +pnpm-debug.log* +lerna-debug.log* + +node_modules +dist +dist-ssr +coverage +*.local + +/cypress/videos/ +/cypress/screenshots/ + +# Keras Tuner +**/keras_tuner_dir + +# Django server +__pycache__/ +db.sqlite3 +temp/ + +# References +github/ +web/*/static/media/ +web/*/static/images/ +web/*/static/assets/ +web/*/static/css/ +*.env \ No newline at end of file diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..f303e86e4d1fd108ead04ee3a2d2433bf37296e1 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,36 @@ +FROM python:3.8 + +# Install Node.js and npm +RUN apt-get update && apt-get install -y curl && \ + curl -sL https://deb.nodesource.com/setup_16.x | bash - && \ + apt-get install -y nodejs \ + npm + +RUN apt-get update && apt-get install -y rsync +RUN apt-get update && apt-get install ffmpeg libsm6 libxext6 -y + +RUN export PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python +ENV PYTHONDONTWRITEBYTECODE=1 +ENV PYTHONUNBUFFERED=1 + +# Set the working directory to /app +WORKDIR /app + +# Copy the requirements file into the container +COPY requirements.txt . + +# Install any needed packages specified in requirements.txt +RUN pip install --no-cache-dir -r requirements.txt + +# copy /web folder and install client's dependencies +COPY ./web /app +WORKDIR /app +RUN npm run install:client +RUN npm run build-deploy:client + +# Expose port 8000 for the Django server +EXPOSE 8000 + +# Start the server +CMD ["python", "server/manage.py", "runserver", "0.0.0.0:8000"] + diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000000000000000000000000000000000000..8a8181dc7c63e8b6995d6338278698f030a645dc --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2022 Ngô Hồng Quốc Bảo + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/README.md b/README.md index 7555082ef27f02524bc90eda92f7b13390c57d37..624ef27724bb7906c1e872c1b31dededdd1c132d 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,168 @@ ---- -title: Yoga -emoji: 📉 -colorFrom: yellow -colorTo: blue -sdk: docker -pinned: false ---- - -Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference +
+ + ++ Make use of the power of Mediapipe’s pose detection, this project is built in order to analyze, detect and classifying the forms of fitness exercises. +
+\n", + " | Model | \n", + "Precision Score | \n", + "Accuracy score | \n", + "Recall Score | \n", + "F1 score | \n", + "Confusion Matrix | \n", + "
---|---|---|---|---|---|---|
0 | \n", + "RF | \n", + "[0.999, 0.999] | \n", + "0.999024 | \n", + "[0.999, 0.999] | \n", + "[0.999, 0.999] | \n", + "[[1677, 2], [1, 1395]] | \n", + "
1 | \n", + "KNN | \n", + "[0.997, 0.999] | \n", + "0.998049 | \n", + "[0.999, 0.996] | \n", + "[0.998, 0.998] | \n", + "[[1678, 1], [5, 1391]] | \n", + "
2 | \n", + "SVC | \n", + "[0.997, 0.995] | \n", + "0.996098 | \n", + "[0.996, 0.996] | \n", + "[0.996, 0.996] | \n", + "[[1672, 7], [5, 1391]] | \n", + "
3 | \n", + "DTC | \n", + "[0.997, 0.991] | \n", + "0.994146 | \n", + "[0.992, 0.996] | \n", + "[0.995, 0.994] | \n", + "[[1666, 13], [5, 1391]] | \n", + "
4 | \n", + "SGDC | \n", + "[0.987, 0.974] | \n", + "0.981463 | \n", + "[0.979, 0.985] | \n", + "[0.983, 0.98] | \n", + "[[1643, 36], [21, 1375]] | \n", + "
5 | \n", + "LR | \n", + "[0.986, 0.975] | \n", + "0.980813 | \n", + "[0.979, 0.983] | \n", + "[0.982, 0.979] | \n", + "[[1644, 35], [24, 1372]] | \n", + "
6 | \n", + "NB | \n", + "[0.927, 0.842] | \n", + "0.884878 | \n", + "[0.857, 0.918] | \n", + "[0.89, 0.879] | \n", + "[[1439, 240], [114, 1282]] | \n", + "
\n", + " | Model | \n", + "Precision Score | \n", + "Recall Score | \n", + "F1 score | \n", + "Confusion Matrix | \n", + "
---|---|---|---|---|---|
0 | \n", + "7_layers | \n", + "[0.998, 0.997] | \n", + "[0.998, 0.997] | \n", + "[0.998, 0.997] | \n", + "[[1675, 4], [4, 1392]] | \n", + "
1 | \n", + "3_layers | \n", + "[0.997, 0.996] | \n", + "[0.997, 0.996] | \n", + "[0.997, 0.996] | \n", + "[[1674, 5], [5, 1391]] | \n", + "
2 | \n", + "7_layers_with_dropout | \n", + "[0.998, 0.995] | \n", + "[0.996, 0.997] | \n", + "[0.997, 0.996] | \n", + "[[1672, 7], [4, 1392]] | \n", + "
3 | \n", + "5_layers | \n", + "[0.996, 0.996] | \n", + "[0.996, 0.996] | \n", + "[0.996, 0.996] | \n", + "[[1673, 6], [6, 1390]] | \n", + "
\n", + " | Model | \n", + "Precision Score | \n", + "Recall Score | \n", + "F1 score | \n", + "Confusion Matrix | \n", + "
---|---|---|---|---|---|
0 | \n", + "7_layers | \n", + "[0.944, 1.0] | \n", + "[1.0, 0.925] | \n", + "[0.971, 0.961] | \n", + "[[339, 0], [20, 245]] | \n", + "
1 | \n", + "5_layers | \n", + "[0.926, 1.0] | \n", + "[1.0, 0.898] | \n", + "[0.962, 0.946] | \n", + "[[339, 0], [27, 238]] | \n", + "
2 | \n", + "7_layers_with_dropout | \n", + "[0.909, 0.963] | \n", + "[0.973, 0.875] | \n", + "[0.94, 0.917] | \n", + "[[330, 9], [33, 232]] | \n", + "
3 | \n", + "3_layers | \n", + "[0.896, 0.983] | \n", + "[0.988, 0.853] | \n", + "[0.94, 0.913] | \n", + "[[335, 4], [39, 226]] | \n", + "
\n", + " | Model | \n", + "Precision Score | \n", + "Recall Score | \n", + "Accuracy Score | \n", + "F1 Score | \n", + "Confusion Matrix | \n", + "
---|---|---|---|---|---|---|
0 | \n", + "LR | \n", + "0.792694 | \n", + "0.737775 | \n", + "0.761589 | \n", + "0.740550 | \n", + "[[316, 23], [121, 144]] | \n", + "
1 | \n", + "SVC | \n", + "0.929966 | \n", + "0.933762 | \n", + "0.932119 | \n", + "0.931420 | \n", + "[[312, 27], [14, 251]] | \n", + "
2 | \n", + "KNN | \n", + "0.975401 | \n", + "0.968336 | \n", + "0.971854 | \n", + "0.971230 | \n", + "[[338, 1], [16, 249]] | \n", + "
3 | \n", + "DTC | \n", + "0.684255 | \n", + "0.650782 | \n", + "0.675497 | \n", + "0.647579 | \n", + "[[289, 50], [146, 119]] | \n", + "
4 | \n", + "SGDC | \n", + "0.712457 | \n", + "0.715011 | \n", + "0.715232 | \n", + "0.712937 | \n", + "[[243, 96], [76, 189]] | \n", + "
5 | \n", + "NB | \n", + "0.797368 | \n", + "0.564151 | \n", + "0.617550 | \n", + "0.486650 | \n", + "[[339, 0], [231, 34]] | \n", + "
6 | \n", + "RF | \n", + "0.947230 | \n", + "0.924528 | \n", + "0.933775 | \n", + "0.931329 | \n", + "[[339, 0], [40, 225]] | \n", + "
\n", + " | Model | \n", + "Precision Score | \n", + "Recall Score | \n", + "Accuracy Score | \n", + "F1 Score | \n", + "Confusion Matrix | \n", + "
---|---|---|---|---|---|---|
0 | \n", + "3_layers | \n", + "0.939165 | \n", + "0.920515 | \n", + "0.928808 | \n", + "0.926411 | \n", + "[[335, 4], [39, 226]] | \n", + "
1 | \n", + "5_layers | \n", + "0.963115 | \n", + "0.949057 | \n", + "0.955298 | \n", + "0.954012 | \n", + "[[339, 0], [27, 238]] | \n", + "
2 | \n", + "7_layers_with_dropout | \n", + "0.935873 | \n", + "0.924462 | \n", + "0.930464 | \n", + "0.928583 | \n", + "[[330, 9], [33, 232]] | \n", + "
3 | \n", + "7_layers | \n", + "0.972145 | \n", + "0.962264 | \n", + "0.966887 | \n", + "0.966066 | \n", + "[[339, 0], [20, 245]] | \n", + "
\n", + " | Model | \n", + "Precision Score | \n", + "Recall Score | \n", + "Accuracy Score | \n", + "F1 Score | \n", + "Confusion Matrix | \n", + "
---|---|---|---|---|---|---|
0 | \n", + "KNN | \n", + "0.975401 | \n", + "0.968336 | \n", + "0.971854 | \n", + "0.971230 | \n", + "[[338, 1], [16, 249]] | \n", + "
1 | \n", + "7_layers | \n", + "0.972145 | \n", + "0.962264 | \n", + "0.966887 | \n", + "0.966066 | \n", + "[[339, 0], [20, 245]] | \n", + "
2 | \n", + "5_layers | \n", + "0.963115 | \n", + "0.949057 | \n", + "0.955298 | \n", + "0.954012 | \n", + "[[339, 0], [27, 238]] | \n", + "
3 | \n", + "SVC | \n", + "0.929966 | \n", + "0.933762 | \n", + "0.932119 | \n", + "0.931420 | \n", + "[[312, 27], [14, 251]] | \n", + "
4 | \n", + "RF | \n", + "0.947230 | \n", + "0.924528 | \n", + "0.933775 | \n", + "0.931329 | \n", + "[[339, 0], [40, 225]] | \n", + "
5 | \n", + "7_layers_with_dropout | \n", + "0.935873 | \n", + "0.924462 | \n", + "0.930464 | \n", + "0.928583 | \n", + "[[330, 9], [33, 232]] | \n", + "
6 | \n", + "3_layers | \n", + "0.939165 | \n", + "0.920515 | \n", + "0.928808 | \n", + "0.926411 | \n", + "[[335, 4], [39, 226]] | \n", + "
7 | \n", + "LR | \n", + "0.792694 | \n", + "0.737775 | \n", + "0.761589 | \n", + "0.740550 | \n", + "[[316, 23], [121, 144]] | \n", + "
8 | \n", + "SGDC | \n", + "0.712457 | \n", + "0.715011 | \n", + "0.715232 | \n", + "0.712937 | \n", + "[[243, 96], [76, 189]] | \n", + "
9 | \n", + "DTC | \n", + "0.684255 | \n", + "0.650782 | \n", + "0.675497 | \n", + "0.647579 | \n", + "[[289, 50], [146, 119]] | \n", + "
10 | \n", + "NB | \n", + "0.797368 | \n", + "0.564151 | \n", + "0.617550 | \n", + "0.486650 | \n", + "[[339, 0], [231, 34]] | \n", + "
\n", + " | label | \n", + "nose_x | \n", + "nose_y | \n", + "nose_z | \n", + "nose_v | \n", + "left_shoulder_x | \n", + "left_shoulder_y | \n", + "left_shoulder_z | \n", + "left_shoulder_v | \n", + "right_shoulder_x | \n", + "... | \n", + "right_heel_z | \n", + "right_heel_v | \n", + "left_foot_index_x | \n", + "left_foot_index_y | \n", + "left_foot_index_z | \n", + "left_foot_index_v | \n", + "right_foot_index_x | \n", + "right_foot_index_y | \n", + "right_foot_index_z | \n", + "right_foot_index_v | \n", + "
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
24241 | \n", + "I | \n", + "0.594462 | \n", + "0.076696 | \n", + "-0.136184 | \n", + "0.999170 | \n", + "0.569238 | \n", + "0.148132 | \n", + "0.136019 | \n", + "0.996545 | \n", + "0.538435 | \n", + "... | \n", + "-0.059251 | \n", + "0.901369 | \n", + "0.683448 | \n", + "0.719196 | \n", + "0.156960 | \n", + "0.703809 | \n", + "0.607568 | \n", + "0.868497 | \n", + "-0.168608 | \n", + "0.939461 | \n", + "
24242 | \n", + "I | \n", + "0.596996 | \n", + "0.078281 | \n", + "-0.125908 | \n", + "0.998940 | \n", + "0.571820 | \n", + "0.148404 | \n", + "0.142542 | \n", + "0.996117 | \n", + "0.544044 | \n", + "... | \n", + "-0.034277 | \n", + "0.893682 | \n", + "0.661107 | \n", + "0.704423 | \n", + "0.169164 | \n", + "0.679100 | \n", + "0.610006 | \n", + "0.863795 | \n", + "-0.139861 | \n", + "0.934157 | \n", + "
24243 | \n", + "I | \n", + "0.603530 | \n", + "0.082330 | \n", + "-0.120693 | \n", + "0.998889 | \n", + "0.573687 | \n", + "0.147178 | \n", + "0.117238 | \n", + "0.995724 | \n", + "0.550559 | \n", + "... | \n", + "-0.034098 | \n", + "0.904877 | \n", + "0.690529 | \n", + "0.595529 | \n", + "0.226050 | \n", + "0.676888 | \n", + "0.625108 | \n", + "0.845298 | \n", + "-0.132410 | \n", + "0.941881 | \n", + "
3 rows × 53 columns
\n", + "\n", + " | angle | \n", + "label | \n", + "
---|---|---|
0 | \n", + "82.006673 | \n", + "left_knee | \n", + "
1 | \n", + "74.160646 | \n", + "left_knee | \n", + "
2 | \n", + "73.564828 | \n", + "left_knee | \n", + "
3 | \n", + "73.541237 | \n", + "left_knee | \n", + "
4 | \n", + "71.950243 | \n", + "left_knee | \n", + "
... | \n", + "... | \n", + "... | \n", + "
9901 | \n", + "84.635022 | \n", + "right_knee | \n", + "
9902 | \n", + "88.030435 | \n", + "right_knee | \n", + "
9903 | \n", + "91.017440 | \n", + "right_knee | \n", + "
9904 | \n", + "96.022529 | \n", + "right_knee | \n", + "
9905 | \n", + "97.528293 | \n", + "right_knee | \n", + "
9906 rows × 2 columns
\n", + "\n", + " | label | \n", + "nose_x | \n", + "nose_y | \n", + "nose_z | \n", + "nose_v | \n", + "left_shoulder_x | \n", + "left_shoulder_y | \n", + "left_shoulder_z | \n", + "left_shoulder_v | \n", + "right_shoulder_x | \n", + "... | \n", + "right_heel_z | \n", + "right_heel_v | \n", + "left_foot_index_x | \n", + "left_foot_index_y | \n", + "left_foot_index_z | \n", + "left_foot_index_v | \n", + "right_foot_index_x | \n", + "right_foot_index_y | \n", + "right_foot_index_z | \n", + "right_foot_index_v | \n", + "
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0 | \n", + "M | \n", + "0.496085 | \n", + "0.286904 | \n", + "-0.219098 | \n", + "0.999996 | \n", + "0.500287 | \n", + "0.360987 | \n", + "0.019479 | \n", + "0.999978 | \n", + "0.436462 | \n", + "... | \n", + "-0.268695 | \n", + "0.996758 | \n", + "0.370391 | \n", + "0.893386 | \n", + "0.505172 | \n", + "0.931761 | \n", + "0.566927 | \n", + "1.005949 | \n", + "-0.382462 | \n", + "0.998906 | \n", + "
1 | \n", + "M | \n", + "0.496126 | \n", + "0.286918 | \n", + "-0.217849 | \n", + "0.999996 | \n", + "0.500281 | \n", + "0.360954 | \n", + "0.019995 | \n", + "0.999977 | \n", + "0.436466 | \n", + "... | \n", + "-0.271191 | \n", + "0.996724 | \n", + "0.370344 | \n", + "0.893290 | \n", + "0.505325 | \n", + "0.931969 | \n", + "0.567040 | \n", + "1.005795 | \n", + "-0.384848 | \n", + "0.998902 | \n", + "
2 | \n", + "M | \n", + "0.496144 | \n", + "0.286921 | \n", + "-0.217039 | \n", + "0.999996 | \n", + "0.500279 | \n", + "0.360923 | \n", + "0.020068 | \n", + "0.999977 | \n", + "0.436469 | \n", + "... | \n", + "-0.271365 | \n", + "0.996699 | \n", + "0.370316 | \n", + "0.893275 | \n", + "0.504931 | \n", + "0.931633 | \n", + "0.567040 | \n", + "1.005774 | \n", + "-0.384872 | \n", + "0.998894 | \n", + "
3 rows × 53 columns
\n", + "\n", + " | Model | \n", + "Precision Score | \n", + "Accuracy score | \n", + "Recall Score | \n", + "F1 score | \n", + "
---|---|---|---|---|---|
0 | \n", + "KNN | \n", + "0.995486 | \n", + "0.995463 | \n", + "0.995497 | \n", + "[0.998108448928121, 0.9936189608021876, 0.9947... | \n", + "
1 | \n", + "SVC | \n", + "0.992812 | \n", + "0.992782 | \n", + "0.992862 | \n", + "[0.9977952755905511, 0.9893390191897654, 0.991... | \n", + "
2 | \n", + "RF | \n", + "0.993596 | \n", + "0.993607 | \n", + "0.993679 | \n", + "[0.9949717159019483, 0.9905516610789394, 0.995... | \n", + "
3 | \n", + "LR | \n", + "0.989931 | \n", + "0.989895 | \n", + "0.990009 | \n", + "[0.9959080893925086, 0.9850381679389313, 0.988... | \n", + "
4 | \n", + "DTC | \n", + "0.990106 | \n", + "0.990101 | \n", + "0.990208 | \n", + "[0.9943431803896919, 0.9856576136710405, 0.990... | \n", + "
5 | \n", + "SGDC | \n", + "0.986400 | \n", + "0.986389 | \n", + "0.986541 | \n", + "[0.990894819466248, 0.9797794117647058, 0.9886... | \n", + "
6 | \n", + "Ridge | \n", + "0.970926 | \n", + "0.970097 | \n", + "0.969980 | \n", + "[0.9709677419354839, 0.9567827130852341, 0.982... | \n", + "
\n", + " | Model | \n", + "Precision Score | \n", + "Accuracy score | \n", + "Recall Score | \n", + "F1 score | \n", + "
---|---|---|---|---|---|
0 | \n", + "Ridge | \n", + "0.953408 | \n", + "0.951037 | \n", + "0.949563 | \n", + "[0.9763387297633873, 0.9199457259158751, 0.954... | \n", + "
1 | \n", + "SVC | \n", + "0.955640 | \n", + "0.951867 | \n", + "0.950163 | \n", + "[0.9492325855962219, 0.9194444444444445, 0.982... | \n", + "
2 | \n", + "LR | \n", + "0.952856 | \n", + "0.948548 | \n", + "0.946658 | \n", + "[0.950354609929078, 0.9131652661064426, 0.9764... | \n", + "
3 | \n", + "KNN | \n", + "0.919799 | \n", + "0.915353 | \n", + "0.916588 | \n", + "[0.9745454545454546, 0.875609756097561, 0.8941... | \n", + "
4 | \n", + "SGDC | \n", + "0.928256 | \n", + "0.912863 | \n", + "0.909741 | \n", + "[0.8903654485049834, 0.8444444444444444, 0.992... | \n", + "
5 | \n", + "RF | \n", + "0.870546 | \n", + "0.862241 | \n", + "0.861943 | \n", + "[0.90744920993228, 0.7849740932642487, 0.88829... | \n", + "
6 | \n", + "DTC | \n", + "0.859608 | \n", + "0.857261 | \n", + "0.855094 | \n", + "[0.8983240223463688, 0.7577464788732395, 0.899... | \n", + "
\n", + " | label | \n", + "nose_x | \n", + "nose_y | \n", + "nose_z | \n", + "nose_v | \n", + "left_shoulder_x | \n", + "left_shoulder_y | \n", + "left_shoulder_z | \n", + "left_shoulder_v | \n", + "right_shoulder_x | \n", + "... | \n", + "right_heel_z | \n", + "right_heel_v | \n", + "left_foot_index_x | \n", + "left_foot_index_y | \n", + "left_foot_index_z | \n", + "left_foot_index_v | \n", + "right_foot_index_x | \n", + "right_foot_index_y | \n", + "right_foot_index_z | \n", + "right_foot_index_v | \n", + "
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
17904 | \n", + "1 | \n", + "0.647438 | \n", + "0.442268 | \n", + "0.004114 | \n", + "0.999985 | \n", + "0.615798 | \n", + "0.517170 | \n", + "0.151706 | \n", + "0.999579 | \n", + "0.631354 | \n", + "... | \n", + "-0.034228 | \n", + "0.979719 | \n", + "0.701826 | \n", + "0.880516 | \n", + "0.134222 | \n", + "0.979319 | \n", + "0.504880 | \n", + "0.881748 | \n", + "-0.027911 | \n", + "0.986165 | \n", + "
17905 | \n", + "1 | \n", + "0.649652 | \n", + "0.419057 | \n", + "0.008783 | \n", + "0.999983 | \n", + "0.617577 | \n", + "0.503514 | \n", + "0.158545 | \n", + "0.999529 | \n", + "0.631972 | \n", + "... | \n", + "-0.061176 | \n", + "0.980431 | \n", + "0.704606 | \n", + "0.880248 | \n", + "0.071476 | \n", + "0.979932 | \n", + "0.504513 | \n", + "0.881766 | \n", + "-0.088832 | \n", + "0.986975 | \n", + "
17906 | \n", + "1 | \n", + "0.653556 | \n", + "0.400394 | \n", + "0.014852 | \n", + "0.999980 | \n", + "0.620734 | \n", + "0.486522 | \n", + "0.169807 | \n", + "0.999556 | \n", + "0.631171 | \n", + "... | \n", + "-0.138678 | \n", + "0.979078 | \n", + "0.705475 | \n", + "0.878981 | \n", + "0.003690 | \n", + "0.979199 | \n", + "0.504067 | \n", + "0.882642 | \n", + "-0.183304 | \n", + "0.986824 | \n", + "
3 rows × 53 columns
\n", + "\n", + " | Model | \n", + "Precision Score | \n", + "Accuracy score | \n", + "Recall Score | \n", + "F1 score | \n", + "Confusion Matrix | \n", + "
---|---|---|---|---|---|---|
0 | \n", + "SVC | \n", + "[1.0, 0.999] | \n", + "0.999721 | \n", + "[0.999, 1.0] | \n", + "[1.0, 1.0] | \n", + "[[1713, 1], [0, 1868]] | \n", + "
1 | \n", + "KNN | \n", + "[1.0, 0.998] | \n", + "0.999162 | \n", + "[0.998, 1.0] | \n", + "[0.999, 0.999] | \n", + "[[1711, 3], [0, 1868]] | \n", + "
2 | \n", + "RF | \n", + "[0.999, 0.999] | \n", + "0.999162 | \n", + "[0.999, 0.999] | \n", + "[0.999, 0.999] | \n", + "[[1712, 2], [1, 1867]] | \n", + "
3 | \n", + "DTC | \n", + "[0.997, 0.997] | \n", + "0.997208 | \n", + "[0.997, 0.997] | \n", + "[0.997, 0.997] | \n", + "[[1709, 5], [5, 1863]] | \n", + "
4 | \n", + "LR | \n", + "[0.992, 0.987] | \n", + "0.989391 | \n", + "[0.986, 0.993] | \n", + "[0.989, 0.99] | \n", + "[[1690, 24], [14, 1854]] | \n", + "
5 | \n", + "SGDC | \n", + "[0.992, 0.988] | \n", + "0.989950 | \n", + "[0.987, 0.993] | \n", + "[0.989, 0.99] | \n", + "[[1692, 22], [14, 1854]] | \n", + "
6 | \n", + "NB | \n", + "[0.963, 0.952] | \n", + "0.957286 | \n", + "[0.947, 0.967] | \n", + "[0.955, 0.959] | \n", + "[[1623, 91], [62, 1806]] | \n", + "
\n", + " | Model | \n", + "Precision Score | \n", + "Accuracy score | \n", + "Recall Score | \n", + "F1 score | \n", + "Confusion Matrix | \n", + "
---|---|---|---|---|---|---|
0 | \n", + "LR | \n", + "[0.948, 0.998] | \n", + "0.971996 | \n", + "[0.998, 0.947] | \n", + "[0.972, 0.972] | \n", + "[[545, 1], [30, 531]] | \n", + "
1 | \n", + "SGDC | \n", + "[0.922, 0.998] | \n", + "0.957543 | \n", + "[0.998, 0.918] | \n", + "[0.959, 0.956] | \n", + "[[545, 1], [46, 515]] | \n", + "
2 | \n", + "DTC | \n", + "[0.95, 0.889] | \n", + "0.916893 | \n", + "[0.877, 0.955] | \n", + "[0.912, 0.921] | \n", + "[[479, 67], [25, 536]] | \n", + "
3 | \n", + "RF | \n", + "[0.786, 0.921] | \n", + "0.841915 | \n", + "[0.934, 0.752] | \n", + "[0.854, 0.828] | \n", + "[[510, 36], [139, 422]] | \n", + "
4 | \n", + "NB | \n", + "[0.79, 0.751] | \n", + "0.768744 | \n", + "[0.723, 0.813] | \n", + "[0.755, 0.781] | \n", + "[[395, 151], [105, 456]] | \n", + "
5 | \n", + "KNN | \n", + "[0.737, 0.799] | \n", + "0.765131 | \n", + "[0.815, 0.717] | \n", + "[0.774, 0.756] | \n", + "[[445, 101], [159, 402]] | \n", + "
6 | \n", + "SVC | \n", + "[0.659, 0.842] | \n", + "0.719964 | \n", + "[0.894, 0.551] | \n", + "[0.759, 0.666] | \n", + "[[488, 58], [252, 309]] | \n", + "
\n", + " | Model | \n", + "Precision Score | \n", + "Recall Score | \n", + "F1 score | \n", + "Confusion Matrix | \n", + "
---|---|---|---|---|---|
0 | \n", + "7_layers_with_dropout | \n", + "[1.0, 0.999] | \n", + "[0.999, 1.0] | \n", + "[1.0, 1.0] | \n", + "[[1805, 1], [0, 1776]] | \n", + "
1 | \n", + "3_layers | \n", + "[1.0, 0.999] | \n", + "[0.999, 1.0] | \n", + "[1.0, 1.0] | \n", + "[[1805, 1], [0, 1776]] | \n", + "
2 | \n", + "7_layers | \n", + "[1.0, 1.0] | \n", + "[1.0, 1.0] | \n", + "[1.0, 1.0] | \n", + "[[1806, 0], [0, 1776]] | \n", + "
3 | \n", + "5_layers | \n", + "[1.0, 0.994] | \n", + "[0.994, 1.0] | \n", + "[0.997, 0.997] | \n", + "[[1795, 11], [0, 1776]] | \n", + "
\n", + " | Model | \n", + "Precision Score | \n", + "Recall Score | \n", + "F1 score | \n", + "Confusion Matrix | \n", + "
---|---|---|---|---|---|
0 | \n", + "3_layers | \n", + "[0.998, 0.873] | \n", + "[0.859, 0.998] | \n", + "[0.923, 0.932] | \n", + "[[482, 79], [1, 545]] | \n", + "
1 | \n", + "7_layers_with_dropout | \n", + "[0.995, 0.786] | \n", + "[0.736, 0.996] | \n", + "[0.846, 0.879] | \n", + "[[413, 148], [2, 544]] | \n", + "
2 | \n", + "5_layers | \n", + "[0.963, 0.755] | \n", + "[0.693, 0.973] | \n", + "[0.806, 0.85] | \n", + "[[389, 172], [15, 531]] | \n", + "
3 | \n", + "7_layers | \n", + "[0.984, 0.687] | \n", + "[0.561, 0.991] | \n", + "[0.715, 0.812] | \n", + "[[315, 246], [5, 541]] | \n", + "
\n", + " | Model | \n", + "Precision Score | \n", + "Accuracy Score | \n", + "Recall Score | \n", + "F1 Score | \n", + "Confusion Matrix | \n", + "
---|---|---|---|---|---|---|
0 | \n", + "LR | \n", + "0.973314 | \n", + "0.971996 | \n", + "0.971996 | \n", + "0.971987 | \n", + "[[545, 1], [30, 531]] | \n", + "
1 | \n", + "SVC | \n", + "0.751947 | \n", + "0.719964 | \n", + "0.719964 | \n", + "0.711815 | \n", + "[[488, 58], [252, 309]] | \n", + "
2 | \n", + "KNN | \n", + "0.768403 | \n", + "0.765131 | \n", + "0.765131 | \n", + "0.764652 | \n", + "[[445, 101], [159, 402]] | \n", + "
3 | \n", + "DTC | \n", + "0.919226 | \n", + "0.916893 | \n", + "0.916893 | \n", + "0.916730 | \n", + "[[479, 67], [25, 536]] | \n", + "
4 | \n", + "SGDC | \n", + "0.960628 | \n", + "0.957543 | \n", + "0.957543 | \n", + "0.957496 | \n", + "[[545, 1], [46, 515]] | \n", + "
5 | \n", + "NB | \n", + "0.770355 | \n", + "0.768744 | \n", + "0.768744 | \n", + "0.768213 | \n", + "[[395, 151], [105, 456]] | \n", + "
6 | \n", + "RF | \n", + "0.854529 | \n", + "0.841915 | \n", + "0.841915 | \n", + "0.840738 | \n", + "[[510, 36], [139, 422]] | \n", + "
\n", + " | Model | \n", + "Precision Score | \n", + "Accuracy Score | \n", + "Recall Score | \n", + "F1 Score | \n", + "Confusion Matrix | \n", + "
---|---|---|---|---|---|---|
0 | \n", + "7_layers_with_dropout | \n", + "0.892070 | \n", + "0.864499 | \n", + "0.864499 | \n", + "0.862354 | \n", + "[[544, 2], [148, 413]] | \n", + "
1 | \n", + "5_layers | \n", + "0.860509 | \n", + "0.831075 | \n", + "0.831075 | \n", + "0.827950 | \n", + "[[531, 15], [172, 389]] | \n", + "
2 | \n", + "3_layers | \n", + "0.936507 | \n", + "0.927733 | \n", + "0.927733 | \n", + "0.927442 | \n", + "[[545, 1], [79, 482]] | \n", + "
3 | \n", + "7_layers | \n", + "0.837910 | \n", + "0.773261 | \n", + "0.773261 | \n", + "0.762745 | \n", + "[[541, 5], [246, 315]] | \n", + "
\n", + " | Model | \n", + "Precision Score | \n", + "Accuracy Score | \n", + "Recall Score | \n", + "F1 Score | \n", + "Confusion Matrix | \n", + "
---|---|---|---|---|---|---|
0 | \n", + "LR | \n", + "0.973314 | \n", + "0.971996 | \n", + "0.971996 | \n", + "0.971987 | \n", + "[[545, 1], [30, 531]] | \n", + "
1 | \n", + "SGDC | \n", + "0.960628 | \n", + "0.957543 | \n", + "0.957543 | \n", + "0.957496 | \n", + "[[545, 1], [46, 515]] | \n", + "
2 | \n", + "3_layers | \n", + "0.936507 | \n", + "0.927733 | \n", + "0.927733 | \n", + "0.927442 | \n", + "[[545, 1], [79, 482]] | \n", + "
3 | \n", + "DTC | \n", + "0.919226 | \n", + "0.916893 | \n", + "0.916893 | \n", + "0.916730 | \n", + "[[479, 67], [25, 536]] | \n", + "
4 | \n", + "7_layers_with_dropout | \n", + "0.892070 | \n", + "0.864499 | \n", + "0.864499 | \n", + "0.862354 | \n", + "[[544, 2], [148, 413]] | \n", + "
5 | \n", + "RF | \n", + "0.854529 | \n", + "0.841915 | \n", + "0.841915 | \n", + "0.840738 | \n", + "[[510, 36], [139, 422]] | \n", + "
6 | \n", + "5_layers | \n", + "0.860509 | \n", + "0.831075 | \n", + "0.831075 | \n", + "0.827950 | \n", + "[[531, 15], [172, 389]] | \n", + "
7 | \n", + "NB | \n", + "0.770355 | \n", + "0.768744 | \n", + "0.768744 | \n", + "0.768213 | \n", + "[[395, 151], [105, 456]] | \n", + "
8 | \n", + "KNN | \n", + "0.768403 | \n", + "0.765131 | \n", + "0.765131 | \n", + "0.764652 | \n", + "[[445, 101], [159, 402]] | \n", + "
9 | \n", + "7_layers | \n", + "0.837910 | \n", + "0.773261 | \n", + "0.773261 | \n", + "0.762745 | \n", + "[[541, 5], [246, 315]] | \n", + "
10 | \n", + "SVC | \n", + "0.751947 | \n", + "0.719964 | \n", + "0.719964 | \n", + "0.711815 | \n", + "[[488, 58], [252, 309]] | \n", + "
\n", + " | label | \n", + "nose_x | \n", + "nose_y | \n", + "nose_z | \n", + "nose_v | \n", + "left_shoulder_x | \n", + "left_shoulder_y | \n", + "left_shoulder_z | \n", + "left_shoulder_v | \n", + "right_shoulder_x | \n", + "... | \n", + "right_heel_z | \n", + "right_heel_v | \n", + "left_foot_index_x | \n", + "left_foot_index_y | \n", + "left_foot_index_z | \n", + "left_foot_index_v | \n", + "right_foot_index_x | \n", + "right_foot_index_y | \n", + "right_foot_index_z | \n", + "right_foot_index_v | \n", + "
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
28517 | \n", + "1 | \n", + "0.735630 | \n", + "0.543294 | \n", + "0.007467 | \n", + "0.999246 | \n", + "0.695831 | \n", + "0.417349 | \n", + "0.155194 | \n", + "0.995723 | \n", + "0.720067 | \n", + "... | \n", + "0.086010 | \n", + "0.966131 | \n", + "0.226601 | \n", + "0.598075 | \n", + "0.219305 | \n", + "0.470830 | \n", + "0.220079 | \n", + "0.614120 | \n", + "0.026265 | \n", + "0.934942 | \n", + "
28518 | \n", + "1 | \n", + "0.775572 | \n", + "0.517579 | \n", + "0.012821 | \n", + "0.999378 | \n", + "0.704168 | \n", + "0.404210 | \n", + "0.162908 | \n", + "0.995909 | \n", + "0.730823 | \n", + "... | \n", + "0.070911 | \n", + "0.967070 | \n", + "0.238810 | \n", + "0.610591 | \n", + "0.198591 | \n", + "0.496140 | \n", + "0.228907 | \n", + "0.625559 | \n", + "0.018591 | \n", + "0.938905 | \n", + "
28519 | \n", + "1 | \n", + "0.790600 | \n", + "0.498958 | \n", + "0.007789 | \n", + "0.999467 | \n", + "0.710651 | \n", + "0.394019 | \n", + "0.164441 | \n", + "0.996123 | \n", + "0.736771 | \n", + "... | \n", + "0.085872 | \n", + "0.967943 | \n", + "0.238197 | \n", + "0.609329 | \n", + "0.233198 | \n", + "0.510583 | \n", + "0.227823 | \n", + "0.626068 | \n", + "0.036127 | \n", + "0.940917 | \n", + "
3 rows × 69 columns
\n", + "\n", + " | Model | \n", + "Precision Score | \n", + "Accuracy score | \n", + "Recall Score | \n", + "F1 score | \n", + "Confusion Matrix | \n", + "
---|---|---|---|---|---|---|
0 | \n", + "KNN | \n", + "[0.999, 1.0, 1.0] | \n", + "0.999825 | \n", + "[1.0, 1.0, 0.999] | \n", + "[1.0, 1.0, 1.0] | \n", + "[[1915, 0, 0], [0, 1844, 0], [1, 0, 1944]] | \n", + "
1 | \n", + "LR | \n", + "[0.999, 1.0, 0.999] | \n", + "0.999649 | \n", + "[0.999, 1.0, 0.999] | \n", + "[0.999, 1.0, 0.999] | \n", + "[[1914, 0, 1], [0, 1844, 0], [1, 0, 1944]] | \n", + "
2 | \n", + "SVC | \n", + "[0.998, 1.0, 0.999] | \n", + "0.999299 | \n", + "[0.999, 1.0, 0.998] | \n", + "[0.999, 1.0, 0.999] | \n", + "[[1914, 0, 1], [0, 1844, 0], [3, 0, 1942]] | \n", + "
3 | \n", + "RF | \n", + "[0.998, 1.0, 1.0] | \n", + "0.999474 | \n", + "[1.0, 0.999, 0.999] | \n", + "[0.999, 1.0, 0.999] | \n", + "[[1915, 0, 0], [1, 1843, 0], [2, 0, 1943]] | \n", + "
4 | \n", + "SGDC | \n", + "[0.999, 0.998, 0.999] | \n", + "0.998597 | \n", + "[0.997, 1.0, 0.999] | \n", + "[0.998, 0.999, 0.999] | \n", + "[[1909, 4, 2], [0, 1844, 0], [2, 0, 1943]] | \n", + "
5 | \n", + "DTC | \n", + "[0.994, 1.0, 0.999] | \n", + "0.997721 | \n", + "[0.999, 0.998, 0.995] | \n", + "[0.997, 0.999, 0.997] | \n", + "[[1914, 0, 1], [3, 1841, 0], [9, 0, 1936]] | \n", + "
6 | \n", + "NB | \n", + "[0.816, 0.931, 0.941] | \n", + "0.892532 | \n", + "[0.883, 0.951, 0.847] | \n", + "[0.848, 0.941, 0.892] | \n", + "[[1690, 122, 103], [91, 1753, 0], [290, 7, 1648]] | \n", + "
\n", + " | Model | \n", + "Precision Score | \n", + "Accuracy score | \n", + "Recall Score | \n", + "F1 score | \n", + "Confusion Matrix | \n", + "
---|---|---|---|---|---|---|
0 | \n", + "LR | \n", + "[0.987, 1.0, 1.0] | \n", + "0.995775 | \n", + "[1.0, 0.996, 0.991] | \n", + "[0.994, 0.998, 0.996] | \n", + "[[234, 0, 0], [1, 240, 0], [2, 0, 233]] | \n", + "
1 | \n", + "SVC | \n", + "[0.963, 1.0, 1.0] | \n", + "0.987324 | \n", + "[1.0, 0.992, 0.97] | \n", + "[0.981, 0.996, 0.985] | \n", + "[[234, 0, 0], [2, 239, 0], [7, 0, 228]] | \n", + "
2 | \n", + "SGDC | \n", + "[0.974, 0.975, 0.996] | \n", + "0.981690 | \n", + "[0.974, 0.983, 0.987] | \n", + "[0.974, 0.979, 0.991] | \n", + "[[228, 6, 0], [3, 237, 1], [3, 0, 232]] | \n", + "
3 | \n", + "KNN | \n", + "[0.869, 0.996, 1.0] | \n", + "0.949296 | \n", + "[0.996, 0.992, 0.86] | \n", + "[0.928, 0.994, 0.924] | \n", + "[[233, 1, 0], [2, 239, 0], [33, 0, 202]] | \n", + "
4 | \n", + "RF | \n", + "[0.765, 1.0, 1.0] | \n", + "0.898592 | \n", + "[1.0, 1.0, 0.694] | \n", + "[0.867, 1.0, 0.819] | \n", + "[[234, 0, 0], [0, 241, 0], [72, 0, 163]] | \n", + "
5 | \n", + "NB | \n", + "[0.892, 0.737, 0.945] | \n", + "0.842254 | \n", + "[0.632, 0.942, 0.949] | \n", + "[0.74, 0.827, 0.947] | \n", + "[[148, 73, 13], [14, 227, 0], [4, 8, 223]] | \n", + "
6 | \n", + "DTC | \n", + "[0.69, 1.0, 0.625] | \n", + "0.767606 | \n", + "[0.543, 0.988, 0.766] | \n", + "[0.608, 0.994, 0.688] | \n", + "[[127, 0, 107], [2, 238, 1], [55, 0, 180]] | \n", + "
\n", + " | Model | \n", + "Precision Score | \n", + "Recall Score | \n", + "F1 score | \n", + "Confusion Matrix | \n", + "
---|---|---|---|---|---|
0 | \n", + "3_layers | \n", + "[1.0, 1.0, 0.999] | \n", + "[0.999, 1.0, 1.0] | \n", + "[0.999, 1.0, 0.999] | \n", + "[[1913, 0, 2], [0, 1844, 0], [0, 0, 1945]] | \n", + "
1 | \n", + "5_layers | \n", + "[0.999, 1.0, 0.999] | \n", + "[0.999, 1.0, 0.999] | \n", + "[0.999, 1.0, 0.999] | \n", + "[[1914, 0, 1], [0, 1844, 0], [1, 0, 1944]] | \n", + "
2 | \n", + "7_layers_with_dropout | \n", + "[0.999, 1.0, 0.999] | \n", + "[0.999, 1.0, 0.999] | \n", + "[0.999, 1.0, 0.999] | \n", + "[[1914, 0, 1], [0, 1844, 0], [1, 0, 1944]] | \n", + "
3 | \n", + "7_layers | \n", + "[0.999, 1.0, 0.999] | \n", + "[0.999, 1.0, 0.999] | \n", + "[0.999, 1.0, 0.999] | \n", + "[[1914, 0, 1], [0, 1844, 0], [1, 0, 1944]] | \n", + "
\n", + " | Model | \n", + "Precision Score | \n", + "Recall Score | \n", + "F1 score | \n", + "Confusion Matrix | \n", + "
---|---|---|---|---|---|
0 | \n", + "7_layers_with_dropout | \n", + "[0.983, 1.0, 1.0] | \n", + "[1.0, 0.992, 0.991] | \n", + "[0.992, 0.996, 0.996] | \n", + "[[234, 0, 0], [2, 239, 0], [2, 0, 233]] | \n", + "
1 | \n", + "5_layers | \n", + "[0.984, 0.937, 0.883] | \n", + "[0.803, 0.992, 0.991] | \n", + "[0.885, 0.964, 0.934] | \n", + "[[188, 16, 30], [1, 239, 1], [2, 0, 233]] | \n", + "
2 | \n", + "7_layers | \n", + "[0.984, 0.825, 1.0] | \n", + "[0.782, 0.996, 0.991] | \n", + "[0.871, 0.902, 0.996] | \n", + "[[183, 51, 0], [1, 240, 0], [2, 0, 233]] | \n", + "
3 | \n", + "3_layers | \n", + "[0.88, 0.732, 1.0] | \n", + "[0.624, 0.996, 0.919] | \n", + "[0.73, 0.844, 0.958] | \n", + "[[146, 88, 0], [1, 240, 0], [19, 0, 216]] | \n", + "
\n", + " | Model | \n", + "Precision Score | \n", + "Recall Score | \n", + "Accuracy Score | \n", + "F1 Score | \n", + "Confusion Matrix | \n", + "
---|---|---|---|---|---|---|
0 | \n", + "LR | \n", + "0.995828 | \n", + "0.995775 | \n", + "0.995775 | \n", + "0.995781 | \n", + "[[234, 0, 0], [1, 240, 0], [2, 0, 233]] | \n", + "
1 | \n", + "SVC | \n", + "0.987793 | \n", + "0.987324 | \n", + "0.987324 | \n", + "0.987363 | \n", + "[[234, 0, 0], [2, 239, 0], [7, 0, 228]] | \n", + "
2 | \n", + "KNN | \n", + "0.955544 | \n", + "0.949296 | \n", + "0.949296 | \n", + "0.949254 | \n", + "[[233, 1, 0], [2, 239, 0], [33, 0, 202]] | \n", + "
3 | \n", + "DTC | \n", + "0.773783 | \n", + "0.767606 | \n", + "0.767606 | \n", + "0.765410 | \n", + "[[127, 0, 107], [2, 238, 1], [55, 0, 180]] | \n", + "
4 | \n", + "SGDC | \n", + "0.981748 | \n", + "0.981690 | \n", + "0.981690 | \n", + "0.981707 | \n", + "[[228, 6, 0], [3, 237, 1], [3, 0, 232]] | \n", + "
5 | \n", + "NB | \n", + "0.856763 | \n", + "0.842254 | \n", + "0.842254 | \n", + "0.838005 | \n", + "[[148, 73, 13], [14, 227, 0], [4, 8, 223]] | \n", + "
6 | \n", + "RF | \n", + "0.922452 | \n", + "0.898592 | \n", + "0.898592 | \n", + "0.896179 | \n", + "[[234, 0, 0], [0, 241, 0], [72, 0, 163]] | \n", + "
\n", + " | Model | \n", + "Precision Score | \n", + "Recall Score | \n", + "Accuracy Score | \n", + "F1 Score | \n", + "Confusion Matrix | \n", + "
---|---|---|---|---|---|---|
0 | \n", + "3_layers | \n", + "0.869224 | \n", + "0.847887 | \n", + "0.847887 | \n", + "0.843977 | \n", + "[[146, 88, 0], [1, 240, 0], [19, 0, 216]] | \n", + "
1 | \n", + "5_layers | \n", + "0.934660 | \n", + "0.929577 | \n", + "0.929577 | \n", + "0.927795 | \n", + "[[188, 16, 30], [1, 239, 1], [2, 0, 233]] | \n", + "
2 | \n", + "7_layers_with_dropout | \n", + "0.994461 | \n", + "0.994366 | \n", + "0.994366 | \n", + "0.994378 | \n", + "[[234, 0, 0], [2, 239, 0], [2, 0, 233]] | \n", + "
3 | \n", + "7_layers | \n", + "0.935195 | \n", + "0.923944 | \n", + "0.923944 | \n", + "0.923033 | \n", + "[[183, 51, 0], [1, 240, 0], [2, 0, 233]] | \n", + "
\n", + " | Model | \n", + "Precision Score | \n", + "Recall Score | \n", + "Accuracy Score | \n", + "F1 Score | \n", + "Confusion Matrix | \n", + "
---|---|---|---|---|---|---|
0 | \n", + "LR | \n", + "0.995828 | \n", + "0.995775 | \n", + "0.995775 | \n", + "0.995781 | \n", + "[[234, 0, 0], [1, 240, 0], [2, 0, 233]] | \n", + "
1 | \n", + "7_layers_with_dropout | \n", + "0.994461 | \n", + "0.994366 | \n", + "0.994366 | \n", + "0.994378 | \n", + "[[234, 0, 0], [2, 239, 0], [2, 0, 233]] | \n", + "
2 | \n", + "SVC | \n", + "0.987793 | \n", + "0.987324 | \n", + "0.987324 | \n", + "0.987363 | \n", + "[[234, 0, 0], [2, 239, 0], [7, 0, 228]] | \n", + "
3 | \n", + "SGDC | \n", + "0.981748 | \n", + "0.981690 | \n", + "0.981690 | \n", + "0.981707 | \n", + "[[228, 6, 0], [3, 237, 1], [3, 0, 232]] | \n", + "
4 | \n", + "KNN | \n", + "0.955544 | \n", + "0.949296 | \n", + "0.949296 | \n", + "0.949254 | \n", + "[[233, 1, 0], [2, 239, 0], [33, 0, 202]] | \n", + "
5 | \n", + "5_layers | \n", + "0.934660 | \n", + "0.929577 | \n", + "0.929577 | \n", + "0.927795 | \n", + "[[188, 16, 30], [1, 239, 1], [2, 0, 233]] | \n", + "
6 | \n", + "7_layers | \n", + "0.935195 | \n", + "0.923944 | \n", + "0.923944 | \n", + "0.923033 | \n", + "[[183, 51, 0], [1, 240, 0], [2, 0, 233]] | \n", + "
7 | \n", + "RF | \n", + "0.922452 | \n", + "0.898592 | \n", + "0.898592 | \n", + "0.896179 | \n", + "[[234, 0, 0], [0, 241, 0], [72, 0, 163]] | \n", + "
8 | \n", + "3_layers | \n", + "0.869224 | \n", + "0.847887 | \n", + "0.847887 | \n", + "0.843977 | \n", + "[[146, 88, 0], [1, 240, 0], [19, 0, 216]] | \n", + "
9 | \n", + "NB | \n", + "0.856763 | \n", + "0.842254 | \n", + "0.842254 | \n", + "0.838005 | \n", + "[[148, 73, 13], [14, 227, 0], [4, 8, 223]] | \n", + "
10 | \n", + "DTC | \n", + "0.773783 | \n", + "0.767606 | \n", + "0.767606 | \n", + "0.765410 | \n", + "[[127, 0, 107], [2, 238, 1], [55, 0, 180]] | \n", + "
\n", + " | Model | \n", + "Precision Score | \n", + "Accuracy score | \n", + "Recall Score | \n", + "F1 score | \n", + "Confusion Matrix | \n", + "
---|---|---|---|---|---|---|
0 | \n", + "LR | \n", + "[0.995, 1.0] | \n", + "0.997596 | \n", + "[1.0, 0.995] | \n", + "[0.998, 0.998] | \n", + "[[427, 0], [2, 403]] | \n", + "
1 | \n", + "SVC | \n", + "[0.995, 1.0] | \n", + "0.997596 | \n", + "[1.0, 0.995] | \n", + "[0.998, 0.998] | \n", + "[[427, 0], [2, 403]] | \n", + "
2 | \n", + "KNN | \n", + "[0.995, 1.0] | \n", + "0.997596 | \n", + "[1.0, 0.995] | \n", + "[0.998, 0.998] | \n", + "[[427, 0], [2, 403]] | \n", + "
3 | \n", + "SGDC | \n", + "[0.995, 1.0] | \n", + "0.997596 | \n", + "[1.0, 0.995] | \n", + "[0.998, 0.998] | \n", + "[[427, 0], [2, 403]] | \n", + "
4 | \n", + "RF | \n", + "[0.998, 0.998] | \n", + "0.997596 | \n", + "[0.998, 0.998] | \n", + "[0.998, 0.998] | \n", + "[[426, 1], [1, 404]] | \n", + "
5 | \n", + "DTC | \n", + "[0.995, 0.998] | \n", + "0.996394 | \n", + "[0.998, 0.995] | \n", + "[0.996, 0.996] | \n", + "[[426, 1], [2, 403]] | \n", + "
6 | \n", + "NB | \n", + "[0.986, 1.0] | \n", + "0.992788 | \n", + "[1.0, 0.985] | \n", + "[0.993, 0.993] | \n", + "[[427, 0], [6, 399]] | \n", + "
\n", + " | Model | \n", + "Precision score | \n", + "Accuracy score | \n", + "Recall score | \n", + "F1 score | \n", + "Confusion Matrix | \n", + "
---|---|---|---|---|---|---|
0 | \n", + "LR | \n", + "0.994141 | \n", + "0.994138 | \n", + "0.994138 | \n", + "0.994138 | \n", + "[[428, 2], [3, 420]] | \n", + "
1 | \n", + "SGDC | \n", + "0.993063 | \n", + "0.992966 | \n", + "0.992966 | \n", + "0.992965 | \n", + "[[430, 0], [6, 417]] | \n", + "
2 | \n", + "KNN | \n", + "0.985207 | \n", + "0.984760 | \n", + "0.984760 | \n", + "0.984754 | \n", + "[[430, 0], [13, 410]] | \n", + "
3 | \n", + "SVC | \n", + "0.977595 | \n", + "0.976553 | \n", + "0.976553 | \n", + "0.976536 | \n", + "[[430, 0], [20, 403]] | \n", + "
4 | \n", + "DTC | \n", + "0.254120 | \n", + "0.504103 | \n", + "0.504103 | \n", + "0.337902 | \n", + "[[430, 0], [423, 0]] | \n", + "
5 | \n", + "NB | \n", + "0.254120 | \n", + "0.504103 | \n", + "0.504103 | \n", + "0.337902 | \n", + "[[430, 0], [423, 0]] | \n", + "
6 | \n", + "RF | \n", + "0.254120 | \n", + "0.504103 | \n", + "0.504103 | \n", + "0.337902 | \n", + "[[430, 0], [423, 0]] | \n", + "
\n", + " | video | \n", + "stage | \n", + "shoulder_width | \n", + "feet_width | \n", + "knee_width | \n", + "
---|
\n", + " | video | \n", + "stage | \n", + "shoulder_width | \n", + "feet_width | \n", + "knee_width | \n", + "
---|---|---|---|---|---|
0 | \n", + "squat_right_1.mp4 | \n", + "down | \n", + "0.079002 | \n", + "0.104884 | \n", + "0.099171 | \n", + "
1 | \n", + "squat_right_1.mp4 | \n", + "down | \n", + "0.079100 | \n", + "0.104516 | \n", + "0.102053 | \n", + "
2 | \n", + "squat_right_1.mp4 | \n", + "down | \n", + "0.079228 | \n", + "0.103585 | \n", + "0.104874 | \n", + "
3 | \n", + "squat_right_1.mp4 | \n", + "down | \n", + "0.079085 | \n", + "0.103278 | \n", + "0.109837 | \n", + "
4 | \n", + "squat_right_1.mp4 | \n", + "down | \n", + "0.079438 | \n", + "0.102361 | \n", + "0.110328 | \n", + "
... | \n", + "... | \n", + "... | \n", + "... | \n", + "... | \n", + "... | \n", + "
848 | \n", + "squat_right_4.mp4 | \n", + "up | \n", + "0.087186 | \n", + "0.147464 | \n", + "0.112127 | \n", + "
849 | \n", + "squat_right_4.mp4 | \n", + "up | \n", + "0.089429 | \n", + "0.153139 | \n", + "0.109250 | \n", + "
850 | \n", + "squat_right_4.mp4 | \n", + "up | \n", + "0.090059 | \n", + "0.152665 | \n", + "0.104126 | \n", + "
851 | \n", + "squat_right_4.mp4 | \n", + "up | \n", + "0.089556 | \n", + "0.154600 | \n", + "0.097331 | \n", + "
852 | \n", + "squat_right_4.mp4 | \n", + "up | \n", + "0.089544 | \n", + "0.158117 | \n", + "0.094716 | \n", + "
853 rows × 5 columns
\n", + "\n", + " | index | \n", + "video | \n", + "stage | \n", + "shoulder_width | \n", + "feet_width | \n", + "knee_width | \n", + "ratio_feet_shoulder | \n", + "ratio_knee_feet | \n", + "
---|---|---|---|---|---|---|---|---|
0 | \n", + "0 | \n", + "squat_right_1.mp4 | \n", + "down | \n", + "0.079002 | \n", + "0.104884 | \n", + "0.099171 | \n", + "1.327618 | \n", + "0.9 | \n", + "
1 | \n", + "1 | \n", + "squat_right_1.mp4 | \n", + "down | \n", + "0.079100 | \n", + "0.104516 | \n", + "0.102053 | \n", + "1.321318 | \n", + "1.0 | \n", + "
2 | \n", + "2 | \n", + "squat_right_1.mp4 | \n", + "down | \n", + "0.079228 | \n", + "0.103585 | \n", + "0.104874 | \n", + "1.307429 | \n", + "1.0 | \n", + "
3 | \n", + "3 | \n", + "squat_right_1.mp4 | \n", + "down | \n", + "0.079085 | \n", + "0.103278 | \n", + "0.109837 | \n", + "1.305912 | \n", + "1.1 | \n", + "
4 | \n", + "4 | \n", + "squat_right_1.mp4 | \n", + "down | \n", + "0.079438 | \n", + "0.102361 | \n", + "0.110328 | \n", + "1.288572 | \n", + "1.1 | \n", + "
\n", + " | index | \n", + "video | \n", + "stage | \n", + "shoulder_width | \n", + "feet_width | \n", + "knee_width | \n", + "ratio_feet_shoulder | \n", + "ratio_knee_feet | \n", + "
---|---|---|---|---|---|---|---|---|
0 | \n", + "0 | \n", + "squat_right_1.mp4 | \n", + "down | \n", + "0.079002 | \n", + "0.104884 | \n", + "0.099171 | \n", + "1.327618 | \n", + "0.945534 | \n", + "
1 | \n", + "1 | \n", + "squat_right_1.mp4 | \n", + "down | \n", + "0.079100 | \n", + "0.104516 | \n", + "0.102053 | \n", + "1.321318 | \n", + "0.976432 | \n", + "
2 | \n", + "2 | \n", + "squat_right_1.mp4 | \n", + "down | \n", + "0.079228 | \n", + "0.103585 | \n", + "0.104874 | \n", + "1.307429 | \n", + "1.012446 | \n", + "
3 | \n", + "3 | \n", + "squat_right_1.mp4 | \n", + "down | \n", + "0.079085 | \n", + "0.103278 | \n", + "0.109837 | \n", + "1.305912 | \n", + "1.063504 | \n", + "
4 | \n", + "4 | \n", + "squat_right_1.mp4 | \n", + "down | \n", + "0.079438 | \n", + "0.102361 | \n", + "0.110328 | \n", + "1.288572 | \n", + "1.077832 | \n", + "
\n", + " | video | \n", + "stage | \n", + "shoulder_width | \n", + "feet_width | \n", + "knee_width | \n", + "ratio_feet_shoulder | \n", + "ratio_knee_feet | \n", + "
---|---|---|---|---|---|---|---|
180 | \n", + "squat_right_2.mp4 | \n", + "down | \n", + "0.076213 | \n", + "0.150768 | \n", + "0.106627 | \n", + "2.0 | \n", + "0.7 | \n", + "
181 | \n", + "squat_right_2.mp4 | \n", + "down | \n", + "0.074955 | \n", + "0.150676 | \n", + "0.107060 | \n", + "2.0 | \n", + "0.7 | \n", + "
182 | \n", + "squat_right_2.mp4 | \n", + "down | \n", + "0.074705 | \n", + "0.149546 | \n", + "0.108448 | \n", + "2.0 | \n", + "0.7 | \n", + "
183 | \n", + "squat_right_2.mp4 | \n", + "down | \n", + "0.075373 | \n", + "0.150687 | \n", + "0.109482 | \n", + "2.0 | \n", + "0.7 | \n", + "
184 | \n", + "squat_right_2.mp4 | \n", + "down | \n", + "0.075764 | \n", + "0.151288 | \n", + "0.109265 | \n", + "2.0 | \n", + "0.7 | \n", + "
... | \n", + "... | \n", + "... | \n", + "... | \n", + "... | \n", + "... | \n", + "... | \n", + "... | \n", + "
643 | \n", + "squat_right_3.mp4 | \n", + "down | \n", + "0.082185 | \n", + "0.219941 | \n", + "0.155542 | \n", + "2.7 | \n", + "0.7 | \n", + "
644 | \n", + "squat_right_3.mp4 | \n", + "down | \n", + "0.081883 | \n", + "0.220649 | \n", + "0.153821 | \n", + "2.7 | \n", + "0.7 | \n", + "
645 | \n", + "squat_right_3.mp4 | \n", + "down | \n", + "0.081753 | \n", + "0.219347 | \n", + "0.152637 | \n", + "2.7 | \n", + "0.7 | \n", + "
646 | \n", + "squat_right_3.mp4 | \n", + "down | \n", + "0.080813 | \n", + "0.214849 | \n", + "0.151832 | \n", + "2.7 | \n", + "0.7 | \n", + "
647 | \n", + "squat_right_3.mp4 | \n", + "down | \n", + "0.079627 | \n", + "0.214114 | \n", + "0.151840 | \n", + "2.7 | \n", + "0.7 | \n", + "
84 rows × 7 columns
\n", + "\n", + " | index | \n", + "shoulder_width | \n", + "feet_width | \n", + "knee_width | \n", + "ratio_feet_shoulder | \n", + "ratio_knee_feet | \n", + "
---|---|---|---|---|---|---|
count | \n", + "851.000000 | \n", + "851.000000 | \n", + "851.000000 | \n", + "851.000000 | \n", + "851.000000 | \n", + "851.000000 | \n", + "
mean | \n", + "425.000000 | \n", + "0.082446 | \n", + "0.148388 | \n", + "0.103947 | \n", + "1.804465 | \n", + "0.713161 | \n", + "
std | \n", + "245.806835 | \n", + "0.007008 | \n", + "0.026802 | \n", + "0.021360 | \n", + "0.322933 | \n", + "0.148453 | \n", + "
min | \n", + "0.000000 | \n", + "0.073848 | \n", + "0.098033 | \n", + "0.063072 | \n", + "1.200000 | \n", + "0.500000 | \n", + "
25% | \n", + "212.500000 | \n", + "0.077047 | \n", + "0.147486 | \n", + "0.087311 | \n", + "1.600000 | \n", + "0.600000 | \n", + "
50% | \n", + "425.000000 | \n", + "0.079676 | \n", + "0.151806 | \n", + "0.101141 | \n", + "1.900000 | \n", + "0.700000 | \n", + "
75% | \n", + "637.500000 | \n", + "0.089282 | \n", + "0.155863 | \n", + "0.115419 | \n", + "2.000000 | \n", + "0.800000 | \n", + "
max | \n", + "850.000000 | \n", + "0.099635 | \n", + "0.220649 | \n", + "0.158517 | \n", + "2.800000 | \n", + "1.100000 | \n", + "