{"metadata":{"kernelspec":{"language":"python","display_name":"Python 3","name":"python3"},"language_info":{"name":"python","version":"3.11.13","mimetype":"text/x-python","codemirror_mode":{"name":"ipython","version":3},"pygments_lexer":"ipython3","nbconvert_exporter":"python","file_extension":".py"},"kaggle":{"accelerator":"none","dataSources":[{"sourceId":115439,"databundleVersionId":13800781,"sourceType":"competition"}],"dockerImageVersionId":31192,"isInternetEnabled":true,"language":"python","sourceType":"notebook","isGpuEnabled":false}},"nbformat_minor":4,"nbformat":4,"cells":[{"cell_type":"code","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\nimport numpy as np # linear algebra\nimport pandas as pd # data processing, CSV file I/O (e.g. pd.read_csv)\nimport warnings\nwarnings.filterwarnings(\"ignore\")\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\nimport os\nfor 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","metadata":{"_uuid":"8f2839f25d086af736a60e9eeb907d3b93b6e0e5","_cell_guid":"b1076dfc-b9ad-4769-8c92-a6c4dae69d19","trusted":true,"execution":{"iopub.status.busy":"2025-11-27T09:34:53.261239Z","iopub.execute_input":"2025-11-27T09:34:53.261606Z","iopub.status.idle":"2025-11-27T09:34:53.268658Z","shell.execute_reply.started":"2025-11-27T09:34:53.261576Z","shell.execute_reply":"2025-11-27T09:34:53.267762Z"}},"outputs":[{"name":"stdout","text":"/kaggle/input/2025-sep-dl-gen-ai-project/sample_submission.csv\n/kaggle/input/2025-sep-dl-gen-ai-project/train.csv\n/kaggle/input/2025-sep-dl-gen-ai-project/test.csv\n","output_type":"stream"}],"execution_count":16},{"cell_type":"code","source":"import matplotlib.pyplot as plt\nimport seaborn as sns\n\n# Load dataset\ndf = pd.read_csv(\"/kaggle/input/2025-sep-dl-gen-ai-project/train.csv\")\ndt = pd.read_csv(\"/kaggle/input/2025-sep-dl-gen-ai-project/test.csv\") # structure may vary\nsub = pd.read_csv(\"/kaggle/input/2025-sep-dl-gen-ai-project/sample_submission.csv\")\n\ndf.head()","metadata":{"trusted":true,"execution":{"iopub.status.busy":"2025-11-27T09:34:53.271513Z","iopub.execute_input":"2025-11-27T09:34:53.271795Z","iopub.status.idle":"2025-11-27T09:34:53.325131Z","shell.execute_reply.started":"2025-11-27T09:34:53.271762Z","shell.execute_reply":"2025-11-27T09:34:53.324246Z"}},"outputs":[{"execution_count":17,"output_type":"execute_result","data":{"text/plain":" id text anger fear joy \\\n0 0 the dentist that did the work apparently did a... 1 0 0 \n1 1 i'm gonna absolutely ~~suck~~ be terrible duri... 0 1 0 \n2 2 bridge: so leave me drowning calling houston, ... 0 1 0 \n3 3 after that mess i went to see my now ex-girlfr... 1 1 0 \n4 4 as he stumbled i ran off, afraid it might some... 0 1 0 \n\n sadness surprise emotions \n0 1 0 ['anger' 'sadness'] \n1 1 0 ['fear' 'sadness'] \n2 1 0 ['fear' 'sadness'] \n3 1 0 ['anger' 'fear' 'sadness'] \n4 0 0 ['fear'] ","text/html":"
| \n | id | \ntext | \nanger | \nfear | \njoy | \nsadness | \nsurprise | \nemotions | \n
|---|---|---|---|---|---|---|---|---|
| 0 | \n0 | \nthe dentist that did the work apparently did a... | \n1 | \n0 | \n0 | \n1 | \n0 | \n['anger' 'sadness'] | \n
| 1 | \n1 | \ni'm gonna absolutely ~~suck~~ be terrible duri... | \n0 | \n1 | \n0 | \n1 | \n0 | \n['fear' 'sadness'] | \n
| 2 | \n2 | \nbridge: so leave me drowning calling houston, ... | \n0 | \n1 | \n0 | \n1 | \n0 | \n['fear' 'sadness'] | \n
| 3 | \n3 | \nafter that mess i went to see my now ex-girlfr... | \n1 | \n1 | \n0 | \n1 | \n0 | \n['anger' 'fear' 'sadness'] | \n
| 4 | \n4 | \nas he stumbled i ran off, afraid it might some... | \n0 | \n1 | \n0 | \n0 | \n0 | \n['fear'] | \n