{"metadata":{"kernelspec":{"language":"python","display_name":"Python 3","name":"python3"},"language_info":{"pygments_lexer":"ipython3","nbconvert_exporter":"python","version":"3.6.4","file_extension":".py","codemirror_mode":{"name":"ipython","version":3},"name":"python","mimetype":"text/x-python"}},"nbformat_minor":4,"nbformat":4,"cells":[{"cell_type":"raw","source":"# Loading Packages and Data","metadata":{}},{"cell_type":"code","source":"import pandas as pd \nimport numpy as np \nimport seaborn as sns        \nimport matplotlib.pyplot as plt  \nimport cv2\n%matplotlib inline \nimport warnings  \nwarnings.filterwarnings(\"ignore\")","metadata":{"execution":{"iopub.status.busy":"2023-04-18T12:21:21.843792Z","iopub.execute_input":"2023-04-18T12:21:21.844989Z","iopub.status.idle":"2023-04-18T12:21:21.853048Z","shell.execute_reply.started":"2023-04-18T12:21:21.844937Z","shell.execute_reply":"2023-04-18T12:21:21.851584Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"df=pd.read_csv(\"/kaggle/input/asl-signs/train.csv\")","metadata":{"execution":{"iopub.status.busy":"2023-04-18T12:21:21.860971Z","iopub.execute_input":"2023-04-18T12:21:21.861258Z","iopub.status.idle":"2023-04-18T12:21:21.963055Z","shell.execute_reply.started":"2023-04-18T12:21:21.861229Z","shell.execute_reply":"2023-04-18T12:21:21.962024Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"df.head()","metadata":{"execution":{"iopub.status.busy":"2023-04-18T12:21:21.965076Z","iopub.execute_input":"2023-04-18T12:21:21.966028Z","iopub.status.idle":"2023-04-18T12:21:21.978533Z","shell.execute_reply.started":"2023-04-18T12:21:21.965982Z","shell.execute_reply":"2023-04-18T12:21:21.977466Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"print(\"We have {} rows/records and {} columns\".format(df.shape[0],df.shape[1]))","metadata":{"execution":{"iopub.status.busy":"2023-04-18T12:21:21.980195Z","iopub.execute_input":"2023-04-18T12:21:21.980978Z","iopub.status.idle":"2023-04-18T12:21:21.989515Z","shell.execute_reply.started":"2023-04-18T12:21:21.980939Z","shell.execute_reply":"2023-04-18T12:21:21.988360Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"# Variable Identification","metadata":{}},{"cell_type":"code","source":"df.info()","metadata":{"execution":{"iopub.status.busy":"2023-04-18T12:21:21.991919Z","iopub.execute_input":"2023-04-18T12:21:21.992646Z","iopub.status.idle":"2023-04-18T12:21:22.013360Z","shell.execute_reply.started":"2023-04-18T12:21:21.992609Z","shell.execute_reply":"2023-04-18T12:21:22.011750Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"","metadata":{"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"#  Data structure and content","metadata":{}},{"cell_type":"code","source":"\ndef unique_col_values(da):\n    for column in df:\n        print(\"{} | {} | {}\".format(da[column].name, len(da[column].unique()), \n                                    da[column].dtype))\n\nunique_col_values(df)\n","metadata":{"execution":{"iopub.status.busy":"2023-04-18T12:21:22.383299Z","iopub.execute_input":"2023-04-18T12:21:22.384667Z","iopub.status.idle":"2023-04-18T12:21:22.423937Z","shell.execute_reply.started":"2023-04-18T12:21:22.384537Z","shell.execute_reply":"2023-04-18T12:21:22.422720Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"# Exploratory Data Analysis (EDA) ","metadata":{}},{"cell_type":"code","source":"#we have 250 signs in the app and we have 21 participants ","metadata":{"execution":{"iopub.status.busy":"2023-04-18T12:21:22.425916Z","iopub.execute_input":"2023-04-18T12:21:22.427182Z","iopub.status.idle":"2023-04-18T12:21:22.431969Z","shell.execute_reply.started":"2023-04-18T12:21:22.427141Z","shell.execute_reply":"2023-04-18T12:21:22.430707Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"plt.style.use('fivethirtyeight')\nplt.figure(figsize=(15,7))\nsns.distplot(df.participant_id, bins = 15)\nplt.ticklabel_format(style='plain', axis='x', scilimits=(0,1))\nplt.xlabel(\"participant_id\")\nplt.ylabel(\"sign\")\nplt.title(\"participant vs sign\")\n","metadata":{"execution":{"iopub.status.busy":"2023-04-18T12:21:22.433378Z","iopub.execute_input":"2023-04-18T12:21:22.434455Z","iopub.status.idle":"2023-04-18T12:21:23.141709Z","shell.execute_reply.started":"2023-04-18T12:21:22.434418Z","shell.execute_reply":"2023-04-18T12:21:23.140650Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"df['participant_id'].value_counts()","metadata":{"execution":{"iopub.status.busy":"2023-04-18T12:21:23.144451Z","iopub.execute_input":"2023-04-18T12:21:23.145520Z","iopub.status.idle":"2023-04-18T12:21:23.155739Z","shell.execute_reply.started":"2023-04-18T12:21:23.145477Z","shell.execute_reply":"2023-04-18T12:21:23.154453Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"df.sign.value_counts()","metadata":{"execution":{"iopub.status.busy":"2023-04-18T12:21:23.157438Z","iopub.execute_input":"2023-04-18T12:21:23.157965Z","iopub.status.idle":"2023-04-18T12:21:23.174219Z","shell.execute_reply.started":"2023-04-18T12:21:23.157905Z","shell.execute_reply":"2023-04-18T12:21:23.172521Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"from IPython.display import Video\n\nVideo(\"/kaggle/input/asl-signs/train_landmark_files/16069/100015657.parquet\")","metadata":{"execution":{"iopub.status.busy":"2023-04-18T12:21:49.973328Z","iopub.execute_input":"2023-04-18T12:21:49.974155Z","iopub.status.idle":"2023-04-18T12:21:49.984932Z","shell.execute_reply.started":"2023-04-18T12:21:49.974115Z","shell.execute_reply":"2023-04-18T12:21:49.983747Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"from IPython.display import Video\nVideo(\"/kaggle/input/asl-signs/train_landmark_files/16069/100015657.parquet\", width=320, height=320)","metadata":{"execution":{"iopub.status.busy":"2023-04-18T12:22:23.476236Z","iopub.execute_input":"2023-04-18T12:22:23.476825Z","iopub.status.idle":"2023-04-18T12:22:23.495119Z","shell.execute_reply.started":"2023-04-18T12:22:23.476768Z","shell.execute_reply":"2023-04-18T12:22:23.492105Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"from ipywidgets import Video\nVideo.from_file(\"/kaggle/input/asl-signs/train_landmark_files/16069/100015657.parquet\")","metadata":{"execution":{"iopub.status.busy":"2023-04-18T12:22:28.276043Z","iopub.execute_input":"2023-04-18T12:22:28.277082Z","iopub.status.idle":"2023-04-18T12:22:28.310515Z","shell.execute_reply.started":"2023-04-18T12:22:28.277025Z","shell.execute_reply":"2023-04-18T12:22:28.309536Z"},"trusted":true},"execution_count":null,"outputs":[]}]}