{"metadata":{"kernelspec":{"language":"python","display_name":"Python 3","name":"python3"},"language_info":{"name":"python","version":"3.10.12","mimetype":"text/x-python","codemirror_mode":{"name":"ipython","version":3},"pygments_lexer":"ipython3","nbconvert_exporter":"python","file_extension":".py"},"kaggle":{"accelerator":"none","dataSources":[{"sourceId":63958,"databundleVersionId":7241949,"sourceType":"competition"}],"dockerImageVersionId":30615,"isInternetEnabled":true,"language":"python","sourceType":"notebook","isGpuEnabled":false}},"nbformat_minor":4,"nbformat":4,"cells":[{"cell_type":"code","source":"from torchvision.datasets import CIFAR100\nimport numpy as np\nimport pandas as pd","metadata":{"_uuid":"8f2839f25d086af736a60e9eeb907d3b93b6e0e5","_cell_guid":"b1076dfc-b9ad-4769-8c92-a6c4dae69d19","execution":{"iopub.status.busy":"2023-12-08T09:26:50.549513Z","iopub.execute_input":"2023-12-08T09:26:50.549852Z","iopub.status.idle":"2023-12-08T09:26:50.883279Z","shell.execute_reply.started":"2023-12-08T09:26:50.549827Z","shell.execute_reply":"2023-12-08T09:26:50.882200Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"cifar100 = CIFAR100('/kaggle/input/cifar100-image-classification-uaic-fii-atnn-2023', \n                    download=False, train=False)\n\ndata = {\n    \"ID\": [],\n    \"target\": []\n}\nfor i, _ in enumerate(cifar100):\n    random_list = np.random.uniform(0, 1, 100)\n    random_list /= random_list.sum()\n    random_list = random_list.round(4)\n    data[\"ID\"].append(i)\n    data[\"target\"].append(random_list.tolist())\n\ndf = pd.DataFrame(data)\ndf.to_csv(\"/kaggle/working/random_submission.csv\", index=False)","metadata":{"execution":{"iopub.status.busy":"2023-12-08T09:26:50.884535Z","iopub.execute_input":"2023-12-08T09:26:50.884966Z","iopub.status.idle":"2023-12-08T09:26:56.551936Z","shell.execute_reply.started":"2023-12-08T09:26:50.884940Z","shell.execute_reply":"2023-12-08T09:26:56.551009Z"},"trusted":true},"execution_count":null,"outputs":[]}]}