{"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":45867,"databundleVersionId":6924515,"sourceType":"competition"}],"dockerImageVersionId":30587,"isInternetEnabled":false,"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)\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        \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","execution":{"iopub.status.busy":"2023-11-30T01:29:03.536588Z","iopub.execute_input":"2023-11-30T01:29:03.536922Z","iopub.status.idle":"2023-11-30T01:29:04.163819Z","shell.execute_reply.started":"2023-11-30T01:29:03.536891Z","shell.execute_reply":"2023-11-30T01:29:04.162566Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"**kelompok 2**\n1. Resmita Simangunsong 11421022\n2. Santa Romauli umbantobing 11421023\n3. Jensri Joice Samosir 11421055","metadata":{}},{"cell_type":"markdown","source":"**READ DATA SET**\n","metadata":{}},{"cell_type":"code","source":"import numpy as np\nimport pandas as pd","metadata":{"execution":{"iopub.status.busy":"2023-11-30T01:29:04.16595Z","iopub.execute_input":"2023-11-30T01:29:04.166489Z","iopub.status.idle":"2023-11-30T01:29:04.172457Z","shell.execute_reply.started":"2023-11-30T01:29:04.166455Z","shell.execute_reply":"2023-11-30T01:29:04.171215Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"from sklearn.neighbors import KNeighborsClassifier","metadata":{"execution":{"iopub.status.busy":"2023-11-30T01:29:04.173897Z","iopub.execute_input":"2023-11-30T01:29:04.174213Z","iopub.status.idle":"2023-11-30T01:29:06.089146Z","shell.execute_reply.started":"2023-11-30T01:29:04.174185Z","shell.execute_reply":"2023-11-30T01:29:06.087676Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"    # Training\n    train_csv_path = \"/kaggle/input/UBC-OCEAN/train.csv\"\n    train_thumbnail_paths = \"/kaggle/input/UBC-OCEAN/train_thumbnails\"\n#     batch_size = 8\n#     learning_rate = 1e-3\n#     epochs = 2\ndf_train =pd.read_csv('/kaggle/input/UBC-OCEAN/train.csv')","metadata":{"execution":{"iopub.status.busy":"2023-11-30T01:29:06.09184Z","iopub.execute_input":"2023-11-30T01:29:06.093805Z","iopub.status.idle":"2023-11-30T01:29:06.116884Z","shell.execute_reply.started":"2023-11-30T01:29:06.093739Z","shell.execute_reply":"2023-11-30T01:29:06.115775Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"# menampilkan isi data dari train.csv\ndf_train","metadata":{"execution":{"iopub.status.busy":"2023-11-30T01:29:06.118678Z","iopub.execute_input":"2023-11-30T01:29:06.119654Z","iopub.status.idle":"2023-11-30T01:29:06.155981Z","shell.execute_reply.started":"2023-11-30T01:29:06.119612Z","shell.execute_reply":"2023-11-30T01:29:06.15463Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"# melakukan check describtion\ndf_train.info()","metadata":{"execution":{"iopub.status.busy":"2023-11-30T01:29:06.159503Z","iopub.execute_input":"2023-11-30T01:29:06.159946Z","iopub.status.idle":"2023-11-30T01:29:06.190031Z","shell.execute_reply.started":"2023-11-30T01:29:06.159914Z","shell.execute_reply":"2023-11-30T01:29:06.189084Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"df_train.describe()\n","metadata":{"execution":{"iopub.status.busy":"2023-11-30T01:29:06.191697Z","iopub.execute_input":"2023-11-30T01:29:06.192395Z","iopub.status.idle":"2023-11-30T01:29:06.221538Z","shell.execute_reply.started":"2023-11-30T01:29:06.192359Z","shell.execute_reply":"2023-11-30T01:29:06.219246Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"","metadata":{},"execution_count":null,"outputs":[]}]}