{"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":"gpu","dataSources":[{"sourceId":101849,"databundleVersionId":13093295,"sourceType":"competition"},{"sourceId":13158702,"sourceType":"datasetVersion","datasetId":8138309}],"dockerImageVersionId":31090,"isInternetEnabled":false,"language":"python","sourceType":"notebook","isGpuEnabled":true}},"nbformat_minor":4,"nbformat":4,"cells":[{"cell_type":"code","source":"! cp -r /kaggle/input/ariel-2025/* /kaggle/working/","metadata":{"_uuid":"8f2839f25d086af736a60e9eeb907d3b93b6e0e5","_cell_guid":"b1076dfc-b9ad-4769-8c92-a6c4dae69d19","trusted":true,"execution":{"execution_failed":"2025-09-24T12:30:17.537Z"}},"outputs":[],"execution_count":null},{"cell_type":"code","source":"%%writefile SETTINGS.json\n\n{\n    \"RAW_DATA_DIR\": \"/kaggle/input/ariel-data-challenge-2025/\",\n    \"MODEL_CHECKPOINT_DIR\": \"./models/\",\n    \"CACHE_DIR\": \"./cache/\",\n    \"LOCAL_CACHE_DIR\": \"./local_cache/\",\n    \"PARAMETERS_DIR\": \"./parameters/\",\n    \"LOGS_DIR\": \"./logs/\",\n    \"SUBMISSION_DIR\": \"./\"\n}","metadata":{"trusted":true,"execution":{"execution_failed":"2025-09-24T12:30:17.537Z"}},"outputs":[],"execution_count":null},{"cell_type":"code","source":"import os\n\nparameters_dir = '/kaggle/working/parameters'\nif not os.path.isdir(parameters_dir):\n    os.mkdir(parameters_dir)","metadata":{"trusted":true,"execution":{"execution_failed":"2025-09-24T12:30:17.537Z"}},"outputs":[],"execution_count":null},{"cell_type":"code","source":"%%writefile /kaggle/working/parameters/kaggle_config.json\n\n{\n    \"data_loader_batch_size\": 8,\n    \"depth_estimation_batch_size\": 128,\n    \"transit_identification_window\": 127,\n    \"transit_identification_level_change_scaler\": 0.0,\n    \"transit_identification_trend_change_scaler\": 0.8,\n    \"transit_identification_noise_scaler\": 5.0,\n    \"window\": 127,\n    \"level_change_scaler\": 0.3,\n    \"trend_change_scaler\": 0.0001,\n    \"noise_scaler\": 3.0,\n    \"no_transit_window\": 127,\n    \"no_transit_level_change_scaler\": 0.05,\n    \"no_transit_trend_change_scaler\": 0.01,\n    \"no_transit_noise_scaler\": 3.0,\n    \"spectrum_data_window\": 128,\n    \"spectrum_smoothing_window\": 29,\n    \"spectrum_level_change_scaler\": 1.0,\n    \"spectrum_trend_change_scaler\": 0.0001,\n    \"spectrum_noise_scaler\": 1.3,\n    \"sigma_scale\": 1.1,\n    \"limb_darkening_epochs\": 100,\n    \"gain_epochs\": 60,\n    \"fine_tuning_epochs\": 50,\n    \"limb_darkening_extra_data\": 128,\n    \"limb_darkening_batch_size_1\": 32,\n    \"limb_darkening_batch_size_2\": 8,\n    \"gain_drift_batch_size\": 24,\n    \"limb_darkening_gradient_clipping_threshold\": 1,\n    \"limb_darkening_v_fgs1\": 0.025,\n    \"limb_darkening_v_airs\": 0.1,\n    \"limb_darkening_ridge_regularization\": 75.0,\n    \"limb_darkening_u_airs_regularization\": 200.0,\n    \"pca_threshold\": 0.993,\n    \"pca_distance_threshold\": 0.0015,\n    \"n_devices\": 1,\n    \"n_devices_limb_darkening\": 1,\n    \"standard_deviation_n_splits\": 5,\n    \"standard_deviation_n_repeats\": 3,\n    \"airs_mlp_config\": {\n        \"input_clipping_threshold\": 7.0,\n        \"n_hidden\": [256],\n        \"dropout\": [0.4],\n        \"log_scale\": -9.0,\n        \"batch_size\": 256,\n        \"n_epochs\": 5,\n        \"warmup_epochs\": 1,\n        \"learning_rate\": 0.0004,\n        \"weight_decay\": 1e-5,\n        \"gradient_clipping_threshold\": 0.15,\n        \"silent\": false,\n        \"seed\": 115,\n        \"input_shape\": [1, 11]\n    },\n    \"fgs1_mlp_config\": {\n        \"input_clipping_threshold\": 5.0,\n        \"n_hidden\": [32],\n        \"dropout\": [0.1],\n        \"log_scale\": -8.0,\n        \"batch_size\": 64,\n        \"n_epochs\": 150,\n        \"warmup_epochs\": 10,\n        \"learning_rate\": 0.0004,\n        \"weight_decay\": 1e-7,\n        \"gradient_clipping_threshold\": 0.1,\n        \"silent\": false,\n        \"seed\": 114,\n        \"input_shape\": [1, 7]\n    }\n}","metadata":{"trusted":true,"execution":{"execution_failed":"2025-09-24T12:30:17.537Z"}},"outputs":[],"execution_count":null},{"cell_type":"code","source":"","metadata":{"trusted":true},"outputs":[],"execution_count":null},{"cell_type":"code","source":"","metadata":{"trusted":true},"outputs":[],"execution_count":null},{"cell_type":"code","source":"! python src/generate_raw_data.py","metadata":{"trusted":true,"execution":{"execution_failed":"2025-09-24T12:30:17.538Z"}},"outputs":[],"execution_count":null},{"cell_type":"code","source":"! python src/generate_depth_estimation.py","metadata":{"trusted":true,"execution":{"execution_failed":"2025-09-24T12:30:17.538Z"}},"outputs":[],"execution_count":null},{"cell_type":"code","source":"! python src/generate_limb_darkening.py","metadata":{"trusted":true,"execution":{"execution_failed":"2025-09-24T12:30:17.538Z"}},"outputs":[],"execution_count":null},{"cell_type":"code","source":"! python src/generate_submission.py","metadata":{"trusted":true,"execution":{"execution_failed":"2025-09-24T12:30:17.538Z"}},"outputs":[],"execution_count":null},{"cell_type":"code","source":"","metadata":{"trusted":true},"outputs":[],"execution_count":null},{"cell_type":"code","source":"","metadata":{"trusted":true},"outputs":[],"execution_count":null}]}