{"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":"code","source":"!git clone https://github.com/Rajvs20/tft.git","metadata":{"_uuid":"8f2839f25d086af736a60e9eeb907d3b93b6e0e5","_cell_guid":"b1076dfc-b9ad-4769-8c92-a6c4dae69d19","execution":{"iopub.status.busy":"2023-06-16T06:10:58.318710Z","iopub.execute_input":"2023-06-16T06:10:58.319234Z","iopub.status.idle":"2023-06-16T06:11:00.123007Z","shell.execute_reply.started":"2023-06-16T06:10:58.319184Z","shell.execute_reply":"2023-06-16T06:11:00.121688Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"ls","metadata":{"execution":{"iopub.status.busy":"2023-06-16T06:11:00.126596Z","iopub.execute_input":"2023-06-16T06:11:00.127464Z","iopub.status.idle":"2023-06-16T06:11:01.304815Z","shell.execute_reply.started":"2023-06-16T06:11:00.127413Z","shell.execute_reply":"2023-06-16T06:11:01.302496Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"!pwd","metadata":{"execution":{"iopub.status.busy":"2023-06-16T06:11:01.309538Z","iopub.execute_input":"2023-06-16T06:11:01.310636Z","iopub.status.idle":"2023-06-16T06:11:02.475890Z","shell.execute_reply.started":"2023-06-16T06:11:01.310572Z","shell.execute_reply":"2023-06-16T06:11:02.474739Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"!pip install pyunpack","metadata":{"execution":{"iopub.status.busy":"2023-06-16T06:11:02.478959Z","iopub.execute_input":"2023-06-16T06:11:02.480073Z","iopub.status.idle":"2023-06-16T06:11:18.953027Z","shell.execute_reply.started":"2023-06-16T06:11:02.479936Z","shell.execute_reply":"2023-06-16T06:11:18.951113Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"!pip install wget","metadata":{"execution":{"iopub.status.busy":"2023-06-16T06:11:18.954947Z","iopub.execute_input":"2023-06-16T06:11:18.955601Z","iopub.status.idle":"2023-06-16T06:11:35.647428Z","shell.execute_reply.started":"2023-06-16T06:11:18.955550Z","shell.execute_reply":"2023-06-16T06:11:35.646102Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"!pip install patool","metadata":{"execution":{"iopub.status.busy":"2023-06-16T06:11:35.648965Z","iopub.execute_input":"2023-06-16T06:11:35.649416Z","iopub.status.idle":"2023-06-16T06:11:50.122032Z","shell.execute_reply.started":"2023-06-16T06:11:35.649375Z","shell.execute_reply":"2023-06-16T06:11:50.120526Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"cd tft","metadata":{"execution":{"iopub.status.busy":"2023-06-16T06:11:50.124137Z","iopub.execute_input":"2023-06-16T06:11:50.124706Z","iopub.status.idle":"2023-06-16T06:11:50.133942Z","shell.execute_reply.started":"2023-06-16T06:11:50.124658Z","shell.execute_reply":"2023-06-16T06:11:50.132572Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"import shutil\n\n# Define the source path of the file\nsource_path = '/kaggle/input/arhs-data/after_removing _half_stores.csv'\n\n# Define the destination path\ndestination_path = '/kaggle/working/after_removing_half_stores.csv'\n\n# Copy the file\nshutil.copyfile(source_path, destination_path)\n","metadata":{"execution":{"iopub.status.busy":"2023-06-16T06:11:50.135574Z","iopub.execute_input":"2023-06-16T06:11:50.136032Z","iopub.status.idle":"2023-06-16T06:13:09.827876Z","shell.execute_reply.started":"2023-06-16T06:11:50.135992Z","shell.execute_reply":"2023-06-16T06:13:09.826602Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"import os\n\nfolder_path = '/kaggle/working/tft/data/favorita'\n\nif not os.path.exists(folder_path):\n    os.makedirs(folder_path)\n    print(\"Folder created successfully.\")\nelse:\n    print(\"Folder already exists.\")\n","metadata":{"execution":{"iopub.status.busy":"2023-06-16T06:13:09.830420Z","iopub.execute_input":"2023-06-16T06:13:09.830895Z","iopub.status.idle":"2023-06-16T06:13:09.838192Z","shell.execute_reply.started":"2023-06-16T06:13:09.830852Z","shell.execute_reply":"2023-06-16T06:13:09.836966Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"import shutil\n\n# Define the source path of the CSV file\nsource_path = '/kaggle/working/after_removing_half_stores.csv'  # Replace 'your_input_folder' and 'your_csv_file.csv' with the appropriate names\n\n# Define the destination path of the CSV file\ndestination_path = '/kaggle/working/tft/data/favorita/favorita_consolidated.csv'\n\n# Move the CSV file\nshutil.move(source_path, destination_path)\n","metadata":{"execution":{"iopub.status.busy":"2023-06-16T06:13:09.842521Z","iopub.execute_input":"2023-06-16T06:13:09.843035Z","iopub.status.idle":"2023-06-16T06:13:09.856749Z","shell.execute_reply.started":"2023-06-16T06:13:09.842991Z","shell.execute_reply":"2023-06-16T06:13:09.855469Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"ls data/favorita","metadata":{"execution":{"iopub.status.busy":"2023-06-16T06:13:09.858790Z","iopub.execute_input":"2023-06-16T06:13:09.859259Z","iopub.status.idle":"2023-06-16T06:13:10.982081Z","shell.execute_reply.started":"2023-06-16T06:13:09.859218Z","shell.execute_reply":"2023-06-16T06:13:10.980623Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"","metadata":{},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"!python3 -m script_train_fixed_params 'favorita' '/kaggle/working/tft' 'no'","metadata":{"execution":{"iopub.status.busy":"2023-06-16T06:13:10.984681Z","iopub.execute_input":"2023-06-16T06:13:10.985756Z"},"trusted":true},"execution_count":null,"outputs":[]}]}