{"metadata":{"kernelspec":{"language":"python","display_name":"Python 3","name":"python3"},"language_info":{"name":"python","version":"3.11.11","mimetype":"text/x-python","codemirror_mode":{"name":"ipython","version":3},"pygments_lexer":"ipython3","nbconvert_exporter":"python","file_extension":".py"},"kaggle":{"accelerator":"none","dataSources":[{"sourceId":92399,"databundleVersionId":11038207,"sourceType":"competition"}],"dockerImageVersionId":31012,"isInternetEnabled":true,"language":"python","sourceType":"notebook","isGpuEnabled":false}},"nbformat_minor":4,"nbformat":4,"cells":[{"cell_type":"markdown","source":"![](https://www.dropbox.com/scl/fi/zeoyi3ersxj567edjcyh7/Gray-Red-Bold-History-YouTube-Thumbnail.png?rlkey=ix54ns5omxx6yokv4568x0gbg&st=2bn57e6t&raw=1)","metadata":{}},{"cell_type":"code","source":"import warnings\nwarnings.filterwarnings('ignore')\n\nimport pandas as pd\nimport numpy as np\n\n%pip install --quiet git+https://github.com/iseedeep/deeprage.git@main","metadata":{"trusted":true,"execution":{"iopub.status.busy":"2025-04-21T14:41:04.002393Z","iopub.execute_input":"2025-04-21T14:41:04.002759Z","iopub.status.idle":"2025-04-21T14:41:16.729338Z","shell.execute_reply.started":"2025-04-21T14:41:04.002730Z","shell.execute_reply":"2025-04-21T14:41:16.728078Z"}},"outputs":[],"execution_count":null},{"cell_type":"code","source":"from deeprage.core import val_bar, val_pie, val_hist, RageReport","metadata":{"trusted":true,"execution":{"iopub.status.busy":"2025-04-21T14:41:19.904593Z","iopub.execute_input":"2025-04-21T14:41:19.905354Z","iopub.status.idle":"2025-04-21T14:41:33.855784Z","shell.execute_reply.started":"2025-04-21T14:41:19.905326Z","shell.execute_reply":"2025-04-21T14:41:33.854718Z"}},"outputs":[],"execution_count":null},{"cell_type":"code","source":"df_train = pd.read_csv('/kaggle/input/nexar-collision-prediction/train.csv')\ndf_test = pd.read_csv('/kaggle/input/nexar-collision-prediction/test.csv')","metadata":{"trusted":true,"execution":{"iopub.status.busy":"2025-04-21T14:41:41.350640Z","iopub.execute_input":"2025-04-21T14:41:41.351072Z","iopub.status.idle":"2025-04-21T14:41:41.363586Z","shell.execute_reply.started":"2025-04-21T14:41:41.350981Z","shell.execute_reply":"2025-04-21T14:41:41.362533Z"}},"outputs":[],"execution_count":null},{"cell_type":"code","source":"df_train.head()","metadata":{"trusted":true,"execution":{"iopub.status.busy":"2025-04-21T14:30:19.467941Z","iopub.execute_input":"2025-04-21T14:30:19.468269Z","iopub.status.idle":"2025-04-21T14:30:19.482710Z","shell.execute_reply.started":"2025-04-21T14:30:19.468247Z","shell.execute_reply":"2025-04-21T14:30:19.481237Z"}},"outputs":[],"execution_count":null},{"cell_type":"code","source":"df_test.head()","metadata":{"trusted":true,"execution":{"iopub.status.busy":"2025-04-21T14:27:03.390786Z","iopub.execute_input":"2025-04-21T14:27:03.391600Z","iopub.status.idle":"2025-04-21T14:27:03.400996Z","shell.execute_reply.started":"2025-04-21T14:27:03.391565Z","shell.execute_reply":"2025-04-21T14:27:03.399318Z"}},"outputs":[],"execution_count":null},{"cell_type":"code","source":"rr = RageReport(df_train)\nrr.missing_summary('time_of_event')","metadata":{"trusted":true,"execution":{"iopub.status.busy":"2025-04-21T14:27:32.574862Z","iopub.execute_input":"2025-04-21T14:27:32.575694Z","iopub.status.idle":"2025-04-21T14:27:32.586803Z","shell.execute_reply.started":"2025-04-21T14:27:32.575664Z","shell.execute_reply":"2025-04-21T14:27:32.585651Z"}},"outputs":[],"execution_count":null},{"cell_type":"code","source":"rr.missing_summary('time_of_alert')","metadata":{"trusted":true,"execution":{"iopub.status.busy":"2025-04-21T14:28:10.804850Z","iopub.execute_input":"2025-04-21T14:28:10.805221Z","iopub.status.idle":"2025-04-21T14:28:10.816311Z","shell.execute_reply.started":"2025-04-21T14:28:10.805197Z","shell.execute_reply":"2025-04-21T14:28:10.815173Z"}},"outputs":[],"execution_count":null},{"cell_type":"code","source":"val_bar(df_train, 'target')","metadata":{"trusted":true,"execution":{"iopub.status.busy":"2025-04-21T14:29:08.447413Z","iopub.execute_input":"2025-04-21T14:29:08.447794Z","iopub.status.idle":"2025-04-21T14:29:08.649159Z","shell.execute_reply.started":"2025-04-21T14:29:08.447767Z","shell.execute_reply":"2025-04-21T14:29:08.647663Z"}},"outputs":[],"execution_count":null},{"cell_type":"code","source":"val_hist(df_train, 'time_of_event', freq=True)","metadata":{"trusted":true,"execution":{"iopub.status.busy":"2025-04-21T14:42:05.440337Z","iopub.execute_input":"2025-04-21T14:42:05.440657Z","iopub.status.idle":"2025-04-21T14:42:05.847072Z","shell.execute_reply.started":"2025-04-21T14:42:05.440634Z","shell.execute_reply":"2025-04-21T14:42:05.845973Z"}},"outputs":[],"execution_count":null},{"cell_type":"code","source":"val_hist(df_train, 'time_of_alert', freq=True)","metadata":{"trusted":true,"execution":{"iopub.status.busy":"2025-04-21T14:42:35.288466Z","iopub.execute_input":"2025-04-21T14:42:35.288813Z","iopub.status.idle":"2025-04-21T14:42:35.604841Z","shell.execute_reply.started":"2025-04-21T14:42:35.288790Z","shell.execute_reply":"2025-04-21T14:42:35.603748Z"}},"outputs":[],"execution_count":null}]}