{ "cells": [ { "cell_type": "code", "id": "initial_id", "metadata": { "collapsed": true, "ExecuteTime": { "end_time": "2025-04-14T13:25:43.285053Z", "start_time": "2025-04-14T13:25:43.279088Z" } }, "source": "import optuna", "outputs": [], "execution_count": 6 }, { "metadata": { "ExecuteTime": { "end_time": "2025-04-14T13:25:43.644175Z", "start_time": "2025-04-14T13:25:43.584065Z" } }, "cell_type": "code", "source": [ "studies = {\n", " #\"PL\": \"/pnfs/psi.ch/cms/trivcat/store/user/gkrzmanc/jetclustering/results/train/Eval_eval_19March2025_pt1e-2_500particles_2025_04_01_11_57_07_994/clustering_tuning_11_sp_comp_only.log\",\n", " #\"PL_R20\": \"/pnfs/psi.ch/cms/trivcat/store/user/gkrzmanc/jetclustering/results/train/Eval_eval_19March2025_pt1e-2_500particles_2025_04_01_14_04_05_945/clustering_tuning_11_sp_comp_only.log\",\n", " #\"PL_FTPL\": \"/pnfs/psi.ch/cms/trivcat/store/user/gkrzmanc/jetclustering/results/train/Eval_eval_19March2025_pt1e-2_500particles_FT_PL_2025_04_01_18_23_46_933/clustering_tuning_11_sp_comp_only.log\",\n", " #\"R20\": \"/work/gkrzmanc/jetclustering/results/train/Eval_eval_19March2025_pt1e-2_500particles_NoQMinReprod_2025_04_04_10_31_53_462/clustering_tuning_11_sp_comp_only.log\",\n", " \"PLgluons\": \"/work/gkrzmanc/jetclustering/results/train/Eval_IRCLossDebug_Reproduce_GluonFix_2025_04_14_10_24_23_167/clustering_tuning_11_sp_comp_only.log\"\n", "}\n", "#studies = {\n", "# \"PL_IRC\": \"/work/gkrzmanc/jetclustering/results/train/Eval_IRCLossDebugW100PlusGhosts_2025_04_09_09_39_23_20/clustering_tuning_11_sp_comp_only.log\",\n", "# #\"GL_IRC\": \"/work/gkrzmanc/jetclustering/results/train/Eval_IRCLossDebugW100PlusGhosts_2025_04_09_09_39_27_409/clustering_tuning_11_sp_comp_only.log\",\n", "# \"scouting_IRC\": \"/work/gkrzmanc/jetclustering/results/train/Eval_IRCLossDebugW100PlusGhosts_2025_04_09_09_39_21_844/clustering_tuning_11_sp_comp_only.log\",\n", "#}\n", "studies = {key: optuna.load_study(study_name=\"clustering\", storage=optuna.storages.JournalStorage(\n", " optuna.storages.journal.JournalFileBackend(studies[key])\n", ")) for key in studies}" ], "id": "8f347dab4e47fecb", "outputs": [], "execution_count": 7 }, { "metadata": { "ExecuteTime": { "end_time": "2025-04-14T13:25:45.570519Z", "start_time": "2025-04-14T13:25:45.499259Z" } }, "cell_type": "code", "source": [ "\n", "# Visualize the study\n", "study = studies[\"PLgluons\"]\n", "print(study.best_params)\n", "# best value:\n", "print(study.best_value)\n", "suffix = \"{}-{}-{}\".format(study.best_params[\"min_cluster_size\"], study.best_params[\"min_samples\"], study.best_params[\"epsilon\"])\n", "print(suffix)\n", "optuna.visualization.plot_optimization_history(study)\n" ], "id": "34b0b005d1e3ac5a", "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "{'min_cluster_size': 3, 'min_samples': 1, 'epsilon': 0.393586795619727}\n", "0.3039183404675667\n", "3-1-0.393586795619727\n" ] }, { "data": { "application/vnd.plotly.v1+json": { "data": [ { "mode": "markers", "name": "Objective Value", "x": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292 ], "y": [ 0.2876344086021505, 0.293990344597969, 0.2813403640074843, 0.288351795904666, 0.29715805218547453, 0.2789984670413899, 0.29643153526970956, 0.2805398940714164, 0.28677337826453236, 0.2899180739006855, 0.2888777050830398, 0.29870560902754734, 0.2996031746031746, 0.2833870694043781, 0.27427979989649814, 0.2793391245103049, 0.0, 0.28348327957901887, 0.29494007989347537, 0.2774842338503494, 0.2847983802935718, 0.2805168310098606, 0.30024855012427504, 0.29730628533422016, 0.0, 0.2984084880636605, 0.29955364523061667, 0.2996031746031746, 0.29955364523061667, 0.2981263472061018, 0.2993219778402514, 0.29869053538869555, 0.29892294946147474, 0.29869053538869555, 0.29869053538869555, 0.2981263472061018, 0.2984084880636605, 0.3001156833581226, 0.3001156833581226, 0.28523825391536156, 0.29781601588352086, 0.29781601588352086, 0.29763284224466147, 0.28238039673278875, 0.29801324503311255, 0.29732868757259, 0.2970954356846473, 0.2973780285429804, 0.2910907577019151, 0.2970954356846473, 0.28761873021163137, 0.2970954356846473, 0.2970461334218387, 0.29801324503311255, 0.29806259314456035, 0.2908786610878661, 0.29082998661311915, 0.292007341898882, 0.29082998661311915, 0.292, 0.29195134144309276, 0.2920486747791298, 0.2920486747791298, 0.2959641255605382, 0.2920486747791298, 0.2959641255605382, 0.2959641255605382, 0.2960504480584136, 0.2981613384131191, 0.29715805218547453, 0.29715805218547453, 0.2978228352999834, 0.2986560477849676, 0.2972525653757034, 0.29799236767877885, 0.298987887838062, 0.2978723404255319, 0.29810568295114653, 0.29810568295114653, 0.2978723404255319, 0.2841197361745307, 0.29815522685723783, 0.28344056891296987, 0.29869053538869555, 0.0, 0.29645649642322414, 0.0, 0.0, 0.2957652550850284, 0.0, 0.2984084880636605, 0.29915520954116287, 0.29555666500249633, 0.29555666500249633, 0.2858587561098938, 0.29555666500249633, 0.29915520954116287, 0.29555666500249633, 0.29555666500249633, 0.29555666500249633, 0.29913964262078097, 0.29597605586963754, 0.29913964262078097, 0.29897248922770964, 0.29897248922770964, 0.2987744286187479, 0.29952010590766176, 0.29942100909842845, 0.2987744286187479, 0.2987744286187479, 0.2954960943992022, 0.2987744286187479, 0.2987744286187479, 0.2987744286187479, 0.2987744286187479, 0.2987744286187479, 0.2976466688763672, 0.2978793903247184, 0.29957109864731113, 0.29985155863433943, 0.30018142833580735, 0.29985155863433943, 0.29985155863433943, 0.29957109864731113, 0.29985155863433943, 0.29957109864731113, 0.3005112980372753, 0.30338927278710104, 0.30003307972213034, 0.30338927278710104, 0.30024772914946324, 0.2864828513786147, 0.2988923789056042, 0.2988923789056042, 0.2988923789056042, 0.2986111111111111, 0.29866049280635026, 0.29837909361561366, 0.29866049280635026, 0.2981325400760205, 0.2988923789056042, 0.29841374752148053, 0.2992724867724868, 0.29841374752148053, 0.2993219778402514, 0.29808327825512226, 0.2992724867724868, 0.29808327825512226, 0.2987442167878387, 0.30048037104522113, 0.30258181220194047, 0.3023026315789474, 0.3020730503455084, 0.3021227579397729, 0.30386831275720166, 0.300761841669427, 0.3020730503455084, 0.3021227579397729, 0.27663230240549824, 0.3021227579397729, 0.3026207351244437, 0.27663230240549824, 0.3039183404675667, 0.30048037104522113, 0.300761841669427, 0.30048037104522113, 0.3023829087921117, 0.30048037104522113, 0.3024823277987835, 0.30258181220194047, 0.30048037104522113, 0.30043060616098044, 0.30043060616098044, 0.30048037104522113, 0.30019880715705766, 0.30048037104522113, 0.30043060616098044, 0.30048037104522113, 0.3023829087921117, 0.3023829087921117, 0.3025624178712221, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.3025624178712221, 0.30177514792899407, 0.3015455442288721, 0.3015455442288721, 0.3021227579397729, 0.3020730503455084, 0.30281111293769525, 0.3020730503455084, 0.3021227579397729, 0.3021227579397729, 0.3021227579397729, 0.3024823277987835, 0.3020542317173377, 0.3024823277987835, 0.3020542317173377, 0.3023829087921117, 0.30258181220194047, 0.30210387902695596, 0.30210387902695596, 0.3024823277987835, 0.3027613412228797, 0.30223390275952694, 0.3025624178712221, 0.3025624178712221, 0.3027613412228797, 0.3027613412228797, 0.3024823277987835, 0.2885906040268456, 0.2885906040268456, 0.3027613412228797, 0.3024823277987835, 0.30258181220194047, 0.3024823277987835, 0.2746042670337233, 0.3027613412228797, 0.3027613412228797, 0.3024823277987835, 0.3020046007229708, 0.3025127278699294, 0.3020046007229708, 0.3025624178712221, 0.30258181220194047, 0.301954986035814, 0.30258181220194047, 0.0, 0.30258181220194047, 0.3026315789473684, 0.3020542317173377, 0.30258181220194047, 0.3020046007229708, 0.3020046007229708, 0.28532792427315756, 0.28542475933119404, 0.30258181220194047, 0.3027115858668858, 0.3027115858668858, 0.3027115858668858, 0.3027613412228797, 0.3027613412228797, 0.3026315789473684, 0.0, 0.3026315789473684, 0.0, 0.0, 0.0, 0.30258181220194047, 0.3026315789473684, 0.3026315789473684, 0.3026315789473684, 0.3026315789473684, 0.30245186769787724, 0.3027613412228797, 0.3027115858668858, 0.30235236058562265, 0.28787116255661804, 0.30281111293769525, 0.3027613412228797, 0.3027613412228797, 0.30281111293769525, 0.30281111293769525, 0.30281111293769525, 0.30281111293769525, 0.3020730503455084, 0.30202335910511596, 0.3027613412228797, 0.3027613412228797, 0.30281111293769525, 0.30281111293769525, 0.30281111293769525, 0.3027613412228797, 0.3024823277987835, 0.30281111293769525, 0.30281111293769525, 0.30281111293769525, 0.3027613412228797, 0.30281111293769525, 0.30281111293769525, 0.0, 0.0, 0.0, 0.0, 0.0, 0.29922557258197396, 0.0, 0.0 ], "type": "scatter" }, { "mode": "lines", "name": "Best Value", "x": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305 ], "y": [ 0.2876344086021505, 0.293990344597969, 0.293990344597969, 0.293990344597969, 0.29715805218547453, 0.29715805218547453, 0.29715805218547453, 0.29715805218547453, 0.29715805218547453, 0.29715805218547453, 0.29715805218547453, 0.29870560902754734, 0.2996031746031746, 0.2996031746031746, 0.2996031746031746, 0.2996031746031746, 0.2996031746031746, 0.2996031746031746, 0.2996031746031746, 0.2996031746031746, 0.2996031746031746, 0.2996031746031746, 0.30024855012427504, 0.30024855012427504, 0.30024855012427504, 0.30024855012427504, 0.30024855012427504, 0.30024855012427504, 0.30024855012427504, 0.30024855012427504, 0.30024855012427504, 0.30024855012427504, 0.30024855012427504, 0.30024855012427504, 0.30024855012427504, 0.30024855012427504, 0.30024855012427504, 0.30024855012427504, 0.30024855012427504, 0.30024855012427504, 0.30024855012427504, 0.30024855012427504, 0.30024855012427504, 0.30024855012427504, 0.30024855012427504, 0.30024855012427504, 0.30024855012427504, 0.30024855012427504, 0.30024855012427504, 0.30024855012427504, 0.30024855012427504, 0.30024855012427504, 0.30024855012427504, 0.30024855012427504, 0.30024855012427504, 0.30024855012427504, 0.30024855012427504, 0.30024855012427504, 0.30024855012427504, 0.30024855012427504, 0.30024855012427504, 0.30024855012427504, 0.30024855012427504, 0.30024855012427504, 0.30024855012427504, 0.30024855012427504, 0.30024855012427504, 0.30024855012427504, 0.30024855012427504, 0.30024855012427504, 0.30024855012427504, 0.30024855012427504, 0.30024855012427504, 0.30024855012427504, 0.30024855012427504, 0.30024855012427504, 0.30024855012427504, 0.30024855012427504, 0.30024855012427504, 0.30024855012427504, 0.30024855012427504, 0.30024855012427504, 0.30024855012427504, 0.30024855012427504, 0.30024855012427504, 0.30024855012427504, 0.30024855012427504, 0.30024855012427504, 0.30024855012427504, 0.30024855012427504, 0.30024855012427504, 0.30024855012427504, 0.30024855012427504, 0.30024855012427504, 0.30024855012427504, 0.30024855012427504, 0.30024855012427504, 0.30024855012427504, 0.30024855012427504, 0.30024855012427504, 0.30024855012427504, 0.30024855012427504, 0.30024855012427504, 0.30024855012427504, 0.30024855012427504, 0.30024855012427504, 0.30024855012427504, 0.30024855012427504, 0.30024855012427504, 0.30024855012427504, 0.30024855012427504, 0.30024855012427504, 0.30024855012427504, 0.30024855012427504, 0.30024855012427504, 0.30024855012427504, 0.30024855012427504, 0.30024855012427504, 0.30024855012427504, 0.30024855012427504, 0.30024855012427504, 0.30024855012427504, 0.30024855012427504, 0.30024855012427504, 0.30024855012427504, 0.30024855012427504, 0.3005112980372753, 0.30338927278710104, 0.30338927278710104, 0.30338927278710104, 0.30338927278710104, 0.30338927278710104, 0.30338927278710104, 0.30338927278710104, 0.30338927278710104, 0.30338927278710104, 0.30338927278710104, 0.30338927278710104, 0.30338927278710104, 0.30338927278710104, 0.30338927278710104, 0.30338927278710104, 0.30338927278710104, 0.30338927278710104, 0.30338927278710104, 0.30338927278710104, 0.30338927278710104, 0.30338927278710104, 0.30338927278710104, 0.30338927278710104, 0.30338927278710104, 0.30338927278710104, 0.30338927278710104, 0.30338927278710104, 0.30386831275720166, 0.30386831275720166, 0.30386831275720166, 0.30386831275720166, 0.30386831275720166, 0.30386831275720166, 0.30386831275720166, 0.30386831275720166, 0.3039183404675667, 0.3039183404675667, 0.3039183404675667, 0.3039183404675667, 0.3039183404675667, 0.3039183404675667, 0.3039183404675667, 0.3039183404675667, 0.3039183404675667, 0.3039183404675667, 0.3039183404675667, 0.3039183404675667, 0.3039183404675667, 0.3039183404675667, 0.3039183404675667, 0.3039183404675667, 0.3039183404675667, 0.3039183404675667, 0.3039183404675667, 0.3039183404675667, 0.3039183404675667, 0.3039183404675667, 0.3039183404675667, 0.3039183404675667, 0.3039183404675667, 0.3039183404675667, 0.3039183404675667, 0.3039183404675667, 0.3039183404675667, 0.3039183404675667, 0.3039183404675667, 0.3039183404675667, 0.3039183404675667, 0.3039183404675667, 0.3039183404675667, 0.3039183404675667, 0.3039183404675667, 0.3039183404675667, 0.3039183404675667, 0.3039183404675667, 0.3039183404675667, 0.3039183404675667, 0.3039183404675667, 0.3039183404675667, 0.3039183404675667, 0.3039183404675667, 0.3039183404675667, 0.3039183404675667, 0.3039183404675667, 0.3039183404675667, 0.3039183404675667, 0.3039183404675667, 0.3039183404675667, 0.3039183404675667, 0.3039183404675667, 0.3039183404675667, 0.3039183404675667, 0.3039183404675667, 0.3039183404675667, 0.3039183404675667, 0.3039183404675667, 0.3039183404675667, 0.3039183404675667, 0.3039183404675667, 0.3039183404675667, 0.3039183404675667, 0.3039183404675667, 0.3039183404675667, 0.3039183404675667, 0.3039183404675667, 0.3039183404675667, 0.3039183404675667, 0.3039183404675667, 0.3039183404675667, 0.3039183404675667, 0.3039183404675667, 0.3039183404675667, 0.3039183404675667, 0.3039183404675667, 0.3039183404675667, 0.3039183404675667, 0.3039183404675667, 0.3039183404675667, 0.3039183404675667, 0.3039183404675667, 0.3039183404675667, 0.3039183404675667, 0.3039183404675667, 0.3039183404675667, 0.3039183404675667, 0.3039183404675667, 0.3039183404675667, 0.3039183404675667, 0.3039183404675667, 0.3039183404675667, 0.3039183404675667, 0.3039183404675667, 0.3039183404675667, 0.3039183404675667, 0.3039183404675667, 0.3039183404675667, 0.3039183404675667, 0.3039183404675667, 0.3039183404675667, 0.3039183404675667, 0.3039183404675667, 0.3039183404675667, 0.3039183404675667, 0.3039183404675667, 0.3039183404675667, 0.3039183404675667, 0.3039183404675667, 0.3039183404675667, 0.3039183404675667, 0.3039183404675667, 0.3039183404675667, 0.3039183404675667, 0.3039183404675667, 0.3039183404675667, 0.3039183404675667, 0.3039183404675667, 0.3039183404675667, 0.3039183404675667, 0.3039183404675667, 0.3039183404675667, 0.3039183404675667, 0.3039183404675667, 0.3039183404675667, 0.3039183404675667, 0.3039183404675667, 0.3039183404675667, 0.3039183404675667, 0.3039183404675667, 0.3039183404675667, 0.3039183404675667, 0.3039183404675667, 0.3039183404675667, 0.3039183404675667, 0.3039183404675667, 0.3039183404675667, 0.3039183404675667, 0.3039183404675667, 0.3039183404675667, 0.3039183404675667 ], "type": "scatter" }, { "marker": { "color": "#cccccc" }, "mode": "markers", "name": "Infeasible Trial", "showlegend": false, "x": [], "y": [], "type": "scatter" } ], "layout": { "title": { "text": "Optimization History Plot" }, "xaxis": { "title": { "text": "Trial" } }, "yaxis": { "title": { "text": "Objective Value" } }, "template": { "data": { "histogram2dcontour": [ { "type": "histogram2dcontour", "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ] } ], "choropleth": [ { "type": "choropleth", "colorbar": { "outlinewidth": 0, "ticks": "" } } ], "histogram2d": [ { "type": "histogram2d", "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ] } ], "heatmap": [ { "type": "heatmap", "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ] } ], "heatmapgl": [ { "type": "heatmapgl", "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ] } ], "contourcarpet": [ { "type": "contourcarpet", "colorbar": { "outlinewidth": 0, "ticks": "" } } ], "contour": [ { "type": "contour", "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ] } ], "surface": [ { "type": "surface", "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ] } ], "mesh3d": [ { "type": "mesh3d", "colorbar": { "outlinewidth": 0, "ticks": "" } } ], "scatter": [ { "fillpattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 }, "type": "scatter" } ], "parcoords": [ { "type": "parcoords", "line": { "colorbar": { "outlinewidth": 0, "ticks": "" } } } ], "scatterpolargl": [ { "type": "scatterpolargl", "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } } } ], "bar": [ { "error_x": { "color": "#2a3f5f" }, "error_y": { "color": "#2a3f5f" }, "marker": { "line": { "color": "#E5ECF6", "width": 0.5 }, "pattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 } }, "type": "bar" } ], "scattergeo": [ { "type": "scattergeo", "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } } } ], "scatterpolar": [ { "type": "scatterpolar", "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } } } ], "histogram": [ { "marker": { "pattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 } }, "type": "histogram" } ], "scattergl": [ { "type": "scattergl", "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } } } ], "scatter3d": [ { "type": "scatter3d", "line": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } } } ], "scattermapbox": [ { "type": "scattermapbox", "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } } } ], "scatterternary": [ { "type": "scatterternary", "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } } } ], "scattercarpet": [ { "type": "scattercarpet", "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } } } ], "carpet": [ { "aaxis": { "endlinecolor": "#2a3f5f", "gridcolor": "white", "linecolor": "white", "minorgridcolor": "white", "startlinecolor": "#2a3f5f" }, "baxis": { "endlinecolor": "#2a3f5f", "gridcolor": "white", "linecolor": "white", "minorgridcolor": "white", "startlinecolor": "#2a3f5f" }, "type": "carpet" } ], "table": [ { "cells": { "fill": { "color": "#EBF0F8" }, "line": { "color": "white" } }, "header": { "fill": { "color": "#C8D4E3" }, "line": { "color": "white" } }, "type": "table" } ], "barpolar": [ { "marker": { "line": { "color": "#E5ECF6", "width": 0.5 }, "pattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 } }, "type": "barpolar" } ], "pie": [ { "automargin": true, "type": "pie" } ] }, "layout": { "autotypenumbers": "strict", "colorway": [ "#636efa", "#EF553B", "#00cc96", "#ab63fa", "#FFA15A", "#19d3f3", "#FF6692", "#B6E880", "#FF97FF", "#FECB52" ], "font": { "color": "#2a3f5f" }, "hovermode": "closest", "hoverlabel": { "align": "left" }, "paper_bgcolor": "white", "plot_bgcolor": "#E5ECF6", "polar": { "bgcolor": "#E5ECF6", "angularaxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" }, "radialaxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" } }, "ternary": { "bgcolor": "#E5ECF6", "aaxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" }, "baxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" }, "caxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" } }, "coloraxis": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "colorscale": { "sequential": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "sequentialminus": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "diverging": [ [ 0, "#8e0152" ], [ 0.1, "#c51b7d" ], [ 0.2, "#de77ae" ], [ 0.3, "#f1b6da" ], [ 0.4, "#fde0ef" ], [ 0.5, "#f7f7f7" ], [ 0.6, "#e6f5d0" ], [ 0.7, "#b8e186" ], [ 0.8, "#7fbc41" ], [ 0.9, "#4d9221" ], [ 1, "#276419" ] ] }, "xaxis": { "gridcolor": "white", "linecolor": "white", "ticks": "", "title": { "standoff": 15 }, "zerolinecolor": "white", "automargin": true, "zerolinewidth": 2 }, "yaxis": { "gridcolor": "white", "linecolor": "white", "ticks": "", "title": { "standoff": 15 }, "zerolinecolor": "white", "automargin": true, "zerolinewidth": 2 }, "scene": { "xaxis": { "backgroundcolor": "#E5ECF6", "gridcolor": "white", "linecolor": "white", "showbackground": true, "ticks": "", "zerolinecolor": "white", "gridwidth": 2 }, "yaxis": { "backgroundcolor": "#E5ECF6", "gridcolor": "white", "linecolor": "white", "showbackground": true, "ticks": "", "zerolinecolor": "white", "gridwidth": 2 }, "zaxis": { "backgroundcolor": "#E5ECF6", "gridcolor": "white", "linecolor": "white", "showbackground": true, "ticks": "", "zerolinecolor": "white", "gridwidth": 2 } }, "shapedefaults": { "line": { "color": "#2a3f5f" } }, "annotationdefaults": { "arrowcolor": "#2a3f5f", "arrowhead": 0, "arrowwidth": 1 }, "geo": { "bgcolor": "white", "landcolor": "#E5ECF6", "subunitcolor": "white", "showland": true, "showlakes": true, "lakecolor": "white" }, "title": { "x": 0.05 }, "mapbox": { "style": "light" } } } }, "config": { "plotlyServerURL": "https://plot.ly" } }, "text/html": [ "
" ] }, "metadata": {}, "output_type": "display_data" } ], "execution_count": 8 }, { "metadata": { "ExecuteTime": { "end_time": "2025-04-02T12:21:03.943158Z", "start_time": "2025-04-02T12:21:03.807388Z" } }, "cell_type": "code", "source": [ "\n", "# Visualize the study\n", "study = studies[\"PL\"]\n", "print(study.best_params)\n", "# best value:\n", "print(study.best_value)\n", "suffix = \"{}-{}-{}\".format(study.best_params[\"min_cluster_size\"], study.best_params[\"min_samples\"], study.best_params[\"epsilon\"])\n", "print(suffix)\n", "optuna.visualization.plot_optimization_history(study)\n" ], "id": "c01a0cab54a63489", "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "{'min_cluster_size': 2, 'min_samples': 1, 'epsilon': 0.3875578273817563}\n", "0.3050233039875712\n", "2-1-0.3875578273817563\n" ] }, { "data": { "application/vnd.plotly.v1+json": { "data": [ { "mode": "markers", "name": "Objective Value", "x": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 375, 376, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454 ], "y": [ 0.2547144028423066, 0.2595918367346939, 0.0, 0.27545551982851013, 0.0, 0.2750869681562751, 0.25573770491803277, 0.26760183436741297, 0.2642529046203729, 0.2376731301939058, 0.26068027210884354, 0.2595212187159956, 0.276931301790965, 0.26760183436741297, 0.26814135419476665, 0.2690752224319224, 0.2846541213888153, 0.2848067760719958, 0.2937794040773654, 0.2716778523489933, 0.27530798071772894, 0.25320600272851296, 0.2739946380697051, 0.25320600272851296, 0.27438370846730975, 0.25999456078324723, 0.2582402615091256, 0.26821370750134915, 0.2663779101245262, 0.26763990267639903, 0.0, 0.25730674679049437, 0.251782775644542, 0.2843501326259947, 0.2869242985706723, 0.2856385797562268, 0.2865466101694915, 0.0, 0.2874536791953415, 0.26897110450985684, 0.27287405812701826, 0.27604726100966703, 0.2764358561460011, 0.28873611845584346, 0.28986272439281946, 0.2822151224707135, 0.29091869060190073, 0.28115015974440893, 0.2694691457828079, 0.26799676462658395, 0.2945043386799895, 0.26138828633405636, 0.2648648648648649, 0.0, 0.0, 0.29637414608512874, 0.26806903991370007, 0.29877252546356753, 0.2989286647504573, 0.297727866283625, 0.2938239159001314, 0.2691065662002153, 0.0, 0.2691790040376851, 0.30194552529182883, 0.29691583899634083, 0.2921584054550223, 0.28548686654284955, 0.2859416445623342, 0.2804780876494024, 0.28548686654284955, 0.27948990435706694, 0.2804780876494024, 0.2916338840807763, 0.2916338840807763, 0.2951507208387943, 0.30049647243271493, 0.2961025372743918, 0.2996078431372549, 0.3002610966057441, 0.3002610966057441, 0.2996078431372549, 0.3003395142334813, 0.3003395142334813, 0.0, 0.0, 0.0, 0.0, 0.0, 0.29647058823529415, 0.29602510460251047, 0.30077922077922076, 0.3021022579807942, 0.2997645827883861, 0.29263157894736846, 0.2930171277997365, 0.3011422637590862, 0.3030617540217955, 0.3035806953814219, 0.30262133402543473, 0.3032191069574247, 0.30314041007007525, 0.3035019455252918, 0.3040207522697795, 0.25368248772504093, 0.0, 0.0, 0.2602331255082678, 0.0, 0.0, 0.25634033269702755, 0.3032191069574247, 0.0, 0.0, 0.3024162120031177, 0.3028571428571429, 0.3021806853582555, 0.30262133402543473, 0.30314041007007525, 0.3021806853582555, 0.30262133402543473, 0.30262133402543473, 0.3021806853582555, 0.3021806853582555, 0.261646803900325, 0.261646803900325, 0.29241306638566916, 0.2633144092998107, 0.30314041007007525, 0.2998430141287284, 0.2647932991083491, 0.2933122696155872, 0.2933122696155872, 0.2998430141287284, 0.2607752778530767, 0.2900158478605388, 0.2900158478605388, 0.3009355509355509, 0.3009355509355509, 0.3033445683173451, 0.3039419087136929, 0.3039419087136929, 0.3033445683173451, 0.3033445683173451, 0.2997645827883861, 0.29924143342924403, 0.26818058934847255, 0.0, 0.299163179916318, 0.299163179916318, 0.2997645827883861, 0.2601360544217687, 0.299163179916318, 0.0, 0.299163179916318, 0.0, 0.3018181818181818, 0.30414507772020727, 0.3043027475375843, 0.3018965965185762, 0.3038631060409645, 0.3018965965185762, 0.30314041007007525, 0.3018965965185762, 0.3032191069574247, 0.3045843045843046, 0.0, 0.0, 0.3043027475375843, 0.3035806953814219, 0.3032191069574247, 0.3045843045843046, 0.3043027475375843, 0.30186721991701243, 0.3036269430051813, 0.30194552529182883, 0.30194552529182883, 0.3036269430051813, 0.30186721991701243, 0.303784344219803, 0.303784344219803, 0.303784344219803, 0.303784344219803, 0.3043027475375843, 0.29908496732026146, 0.2996861924686193, 0.0, 0.0, 0.303784344219803, 0.3047421611816533, 0.3034232365145228, 0.30098598858329007, 0.3005450298468726, 0.3009079118028534, 0.3005450298468726, 0.3005450298468726, 0.3005450298468726, 0.3010641058915131, 0.30186721991701243, 0.30186721991701243, 0.30194552529182883, 0.2974385781495035, 0.2974385781495035, 0.29973890339425585, 0.29997386987196234, 0.29885057471264365, 0.29997386987196234, 0.3000522739153162, 0.29973890339425585, 0.29997386987196234, 0.30450543759709997, 0.3045843045843046, 0.3045843045843046, 0.3045843045843046, 0.3045843045843046, 0.3047421611816533, 0.3034232365145228, 0.3047421611816533, 0.3038631060409645, 0.3047421611816533, 0.3043027475375843, 0.3047421611816533, 0.3043027475375843, 0.3047421611816533, 0.30466321243523314, 0.2650081124932396, 0.2676740420939018, 0.2668106940318661, 0.3047421611816533, 0.2687853487745758, 0.3034232365145228, 0.3047421611816533, 0.2683189655172414, 0.3034232365145228, 0.3043027475375843, 0.3034232365145228, 0.2686084142394822, 0.3050233039875712, 0.30450543759709997, 0.3045843045843046, 0.3045843045843046, 0.30450543759709997, 0.3045843045843046, 0.30450543759709997, 0.30450543759709997, 0.3045843045843046, 0.30450543759709997, 0.0, 0.3045843045843046, 0.30450543759709997, 0.30450543759709997, 0.30450543759709997, 0.30450543759709997, 0.30450543759709997, 0.30450543759709997, 0.30466321243523314, 0.2703723691311387, 0.29075585988938635, 0.30117647058823527, 0.30117647058823527, 0.29997386987196234, 0.30117647058823527, 0.28069241011984025, 0.29908496732026146, 0.0, 0.0, 0.0, 0.3027475375842405, 0.28999211977935385, 0.3028260305937257, 0.28819353142256116, 0.3043816437645839, 0.3047421611816533, 0.3047421611816533, 0.30466321243523314, 0.3047421611816533, 0.30194552529182883, 0.30186721991701243, 0.3043816437645839, 0.3043816437645839, 0.3043816437645839, 0.30194552529182883, 0.30186721991701243, 0.29895287958115185, 0.2984293193717278, 0.3047421611816533, 0.0, 0.25639629831246596, 0.0, 0.2987964416535845, 0.2945938887437973, 0.25876596901331883, 0.2697599136768276, 0.2732885906040269, 0.2995295347621537, 0.26986264476164823, 0.30049647243271493, 0.2739946380697051, 0.2693965517241379, 0.2594506391079684, 0.30041797283176597, 0.30049647243271493, 0.30041797283176597, 0.2966256866335339, 0.29618001046572473, 0.3003395142334813, 0.0, 0.27661851257356873, 0.30466321243523314, 0.30077922077922076, 0.3008573655494933, 0.3033445683173451, 0.3033445683173451, 0.3033445683173451, 0.3034232365145228, 0.3033445683173451, 0.30370562321845035, 0.0, 0.0, 0.30028773214752813, 0.2719439956919763, 0.27715355805243447, 0.2776143353837925, 0.2776143353837925, 0.26627059141236836, 0.3003663003663003, 0.2662355160334142, 0.2984060621897047, 0.299163179916318, 0.29908496732026146, 0.30194552529182883, 0.30194552529182883, 0.30450543759709997, 0.3045843045843046, 0.3045843045843046, 0.3045843045843046, 0.3045843045843046, 0.29973890339425585, 0.3003395142334813, 0.3003395142334813, 0.30041797283176597, 0.0, 0.0, 0.2965481171548117, 0.30049647243271493, 0.2989286647504573, 0.2996078431372549, 0.2793803418803419, 0.3034232365145228, 0.30370562321845035, 0.3036269430051813, 0.29739583333333336, 0.30098598858329007, 0.3036269430051813, 0.2986472424557752, 0.303784344219803, 0.2683189655172414, 0.0, 0.0, 0.0, 0.0, 0.30370562321845035, 0.30370562321845035, 0.3033445683173451, 0.3034232365145228, 0.3034232365145228, 0.2577896138482024, 0.30450543759709997, 0.299163179916318, 0.2772117962466488, 0.29997386987196234, 0.2998955067920585, 0.26374221500135386, 0.30057501306847884, 0.2603260869565217, 0.29374671571203365, 0.30186721991701243, 0.2597826086956522, 0.30186721991701243, 0.30186721991701243, 0.30186721991701243, 0.3047421611816533, 0.2930171277997365, 0.29256721138639963, 0.3034232365145228, 0.2650081124932396, 0.30049647243271493, 0.28488063660477453, 0.30446058091286304, 0.30117647058823527, 0.2601360544217687, 0.3006535947712418, 0.3043816437645839, 0.0, 0.0, 0.30370562321845035, 0.303784344219803, 0.3028260305937257, 0.30370562321845035, 0.3033445683173451, 0.3034232365145228, 0.3027475375842405, 0.3028260305937257, 0.3033445683173451, 0.3028260305937257, 0.30450543759709997, 0.3035806953814219, 0.2996861924686193, 0.29895287958115185, 0.27960438385458436, 0.0, 0.2993980633342057, 0.2998430141287284, 0.2993730407523511, 0.29908496732026146, 0.29981718464351004, 0.29973890339425585, 0.3045843045843046, 0.30466321243523314, 0.26724371111712203, 0.30466321243523314, 0.30070111659309273, 0.0, 0.2666307568004309, 0.29050865233350814, 0.3039419087136929, 0.3034232365145228, 0.3012987012987013, 0.290956749672346, 0.30370562321845035, 0.30370562321845035, 0.3027475375842405, 0.0, 0.2672064777327935, 0.30041797283176597, 0.2938239159001314, 0.30057501306847884, 0.3002610966057441, 0.2890295358649789, 0.29885057471264365, 0.0, 0.0, 0.0, 0.0, 0.2669183068212456, 0.3043816437645839, 0.26630727762803236, 0.3043816437645839, 0.30446058091286304, 0.30466321243523314, 0.30466321243523314, 0.30466321243523314 ], "type": "scatter" }, { "mode": "lines", "name": "Best Value", "x": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459 ], "y": [ 0.2547144028423066, 0.2595918367346939, 0.2595918367346939, 0.27545551982851013, 0.27545551982851013, 0.27545551982851013, 0.27545551982851013, 0.27545551982851013, 0.27545551982851013, 0.27545551982851013, 0.27545551982851013, 0.27545551982851013, 0.276931301790965, 0.276931301790965, 0.276931301790965, 0.276931301790965, 0.2846541213888153, 0.2848067760719958, 0.2937794040773654, 0.2937794040773654, 0.2937794040773654, 0.2937794040773654, 0.2937794040773654, 0.2937794040773654, 0.2937794040773654, 0.2937794040773654, 0.2937794040773654, 0.2937794040773654, 0.2937794040773654, 0.2937794040773654, 0.2937794040773654, 0.2937794040773654, 0.2937794040773654, 0.2937794040773654, 0.2937794040773654, 0.2937794040773654, 0.2937794040773654, 0.2937794040773654, 0.2937794040773654, 0.2937794040773654, 0.2937794040773654, 0.2937794040773654, 0.2937794040773654, 0.2937794040773654, 0.2937794040773654, 0.2937794040773654, 0.2937794040773654, 0.2937794040773654, 0.2937794040773654, 0.2937794040773654, 0.2945043386799895, 0.2945043386799895, 0.2945043386799895, 0.2945043386799895, 0.2945043386799895, 0.29637414608512874, 0.29637414608512874, 0.29877252546356753, 0.2989286647504573, 0.2989286647504573, 0.2989286647504573, 0.2989286647504573, 0.2989286647504573, 0.2989286647504573, 0.30194552529182883, 0.30194552529182883, 0.30194552529182883, 0.30194552529182883, 0.30194552529182883, 0.30194552529182883, 0.30194552529182883, 0.30194552529182883, 0.30194552529182883, 0.30194552529182883, 0.30194552529182883, 0.30194552529182883, 0.30194552529182883, 0.30194552529182883, 0.30194552529182883, 0.30194552529182883, 0.30194552529182883, 0.30194552529182883, 0.30194552529182883, 0.30194552529182883, 0.30194552529182883, 0.30194552529182883, 0.30194552529182883, 0.30194552529182883, 0.30194552529182883, 0.30194552529182883, 0.30194552529182883, 0.30194552529182883, 0.3021022579807942, 0.3021022579807942, 0.3021022579807942, 0.3021022579807942, 0.3021022579807942, 0.3030617540217955, 0.3035806953814219, 0.3035806953814219, 0.3035806953814219, 0.3035806953814219, 0.3035806953814219, 0.3040207522697795, 0.3040207522697795, 0.3040207522697795, 0.3040207522697795, 0.3040207522697795, 0.3040207522697795, 0.3040207522697795, 0.3040207522697795, 0.3040207522697795, 0.3040207522697795, 0.3040207522697795, 0.3040207522697795, 0.3040207522697795, 0.3040207522697795, 0.3040207522697795, 0.3040207522697795, 0.3040207522697795, 0.3040207522697795, 0.3040207522697795, 0.3040207522697795, 0.3040207522697795, 0.3040207522697795, 0.3040207522697795, 0.3040207522697795, 0.3040207522697795, 0.3040207522697795, 0.3040207522697795, 0.3040207522697795, 0.3040207522697795, 0.3040207522697795, 0.3040207522697795, 0.3040207522697795, 0.3040207522697795, 0.3040207522697795, 0.3040207522697795, 0.3040207522697795, 0.3040207522697795, 0.3040207522697795, 0.3040207522697795, 0.3040207522697795, 0.3040207522697795, 0.3040207522697795, 0.3040207522697795, 0.3040207522697795, 0.3040207522697795, 0.3040207522697795, 0.3040207522697795, 0.3040207522697795, 0.3040207522697795, 0.3040207522697795, 0.3040207522697795, 0.3040207522697795, 0.3040207522697795, 0.3040207522697795, 0.30414507772020727, 0.3043027475375843, 0.3043027475375843, 0.3043027475375843, 0.3043027475375843, 0.3043027475375843, 0.3043027475375843, 0.3043027475375843, 0.3045843045843046, 0.3045843045843046, 0.3045843045843046, 0.3045843045843046, 0.3045843045843046, 0.3045843045843046, 0.3045843045843046, 0.3045843045843046, 0.3045843045843046, 0.3045843045843046, 0.3045843045843046, 0.3045843045843046, 0.3045843045843046, 0.3045843045843046, 0.3045843045843046, 0.3045843045843046, 0.3045843045843046, 0.3045843045843046, 0.3045843045843046, 0.3045843045843046, 0.3045843045843046, 0.3045843045843046, 0.3045843045843046, 0.3045843045843046, 0.3047421611816533, 0.3047421611816533, 0.3047421611816533, 0.3047421611816533, 0.3047421611816533, 0.3047421611816533, 0.3047421611816533, 0.3047421611816533, 0.3047421611816533, 0.3047421611816533, 0.3047421611816533, 0.3047421611816533, 0.3047421611816533, 0.3047421611816533, 0.3047421611816533, 0.3047421611816533, 0.3047421611816533, 0.3047421611816533, 0.3047421611816533, 0.3047421611816533, 0.3047421611816533, 0.3047421611816533, 0.3047421611816533, 0.3047421611816533, 0.3047421611816533, 0.3047421611816533, 0.3047421611816533, 0.3047421611816533, 0.3047421611816533, 0.3047421611816533, 0.3047421611816533, 0.3047421611816533, 0.3047421611816533, 0.3047421611816533, 0.3047421611816533, 0.3047421611816533, 0.3047421611816533, 0.3047421611816533, 0.3047421611816533, 0.3047421611816533, 0.3047421611816533, 0.3047421611816533, 0.3047421611816533, 0.3047421611816533, 0.3047421611816533, 0.3047421611816533, 0.3047421611816533, 0.3047421611816533, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712, 0.3050233039875712 ], "type": "scatter" }, { "marker": { "color": "#cccccc" }, "mode": "markers", "name": "Infeasible Trial", "showlegend": false, "x": [], "y": [], "type": "scatter" } ], "layout": { "title": { "text": "Optimization History Plot" }, "xaxis": { "title": { "text": "Trial" } }, "yaxis": { "title": { "text": "Objective Value" } }, "template": { "data": { "histogram2dcontour": [ { "type": "histogram2dcontour", "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ] } ], "choropleth": [ { "type": "choropleth", "colorbar": { "outlinewidth": 0, "ticks": "" } } ], "histogram2d": [ { "type": "histogram2d", "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ] } ], "heatmap": [ { "type": "heatmap", "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ] } ], "heatmapgl": [ { "type": "heatmapgl", "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ] } ], "contourcarpet": [ { "type": "contourcarpet", "colorbar": { "outlinewidth": 0, "ticks": "" } } ], "contour": [ { "type": "contour", "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ] } ], "surface": [ { "type": "surface", "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ] } ], "mesh3d": [ { "type": "mesh3d", "colorbar": { "outlinewidth": 0, "ticks": "" } } ], "scatter": [ { "fillpattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 }, "type": "scatter" } ], "parcoords": [ { "type": "parcoords", "line": { "colorbar": { "outlinewidth": 0, "ticks": "" } } } ], "scatterpolargl": [ { "type": "scatterpolargl", "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } } } ], "bar": [ { "error_x": { "color": "#2a3f5f" }, "error_y": { "color": "#2a3f5f" }, "marker": { "line": { "color": "#E5ECF6", "width": 0.5 }, "pattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 } }, "type": "bar" } ], "scattergeo": [ { "type": "scattergeo", "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } } } ], "scatterpolar": [ { "type": "scatterpolar", "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } } } ], "histogram": [ { "marker": { "pattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 } }, "type": "histogram" } ], "scattergl": [ { "type": "scattergl", "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } } } ], "scatter3d": [ { "type": "scatter3d", "line": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } } } ], "scattermapbox": [ { "type": "scattermapbox", "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } } } ], "scatterternary": [ { "type": "scatterternary", "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } } } ], "scattercarpet": [ { "type": "scattercarpet", "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } } } ], "carpet": [ { "aaxis": { "endlinecolor": "#2a3f5f", "gridcolor": "white", "linecolor": "white", "minorgridcolor": "white", "startlinecolor": "#2a3f5f" }, "baxis": { "endlinecolor": "#2a3f5f", "gridcolor": "white", "linecolor": "white", "minorgridcolor": "white", "startlinecolor": "#2a3f5f" }, "type": "carpet" } ], "table": [ { "cells": { "fill": { "color": "#EBF0F8" }, "line": { "color": "white" } }, "header": { "fill": { "color": "#C8D4E3" }, "line": { "color": "white" } }, "type": "table" } ], "barpolar": [ { "marker": { "line": { "color": "#E5ECF6", "width": 0.5 }, "pattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 } }, "type": "barpolar" } ], "pie": [ { "automargin": true, "type": "pie" } ] }, "layout": { "autotypenumbers": "strict", "colorway": [ "#636efa", "#EF553B", "#00cc96", "#ab63fa", "#FFA15A", "#19d3f3", "#FF6692", "#B6E880", "#FF97FF", "#FECB52" ], "font": { "color": "#2a3f5f" }, "hovermode": "closest", "hoverlabel": { "align": "left" }, "paper_bgcolor": "white", "plot_bgcolor": "#E5ECF6", "polar": { "bgcolor": "#E5ECF6", "angularaxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" }, "radialaxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" } }, "ternary": { "bgcolor": "#E5ECF6", "aaxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" }, "baxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" }, "caxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" } }, "coloraxis": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "colorscale": { "sequential": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "sequentialminus": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "diverging": [ [ 0, "#8e0152" ], [ 0.1, "#c51b7d" ], [ 0.2, "#de77ae" ], [ 0.3, "#f1b6da" ], [ 0.4, "#fde0ef" ], [ 0.5, "#f7f7f7" ], [ 0.6, "#e6f5d0" ], [ 0.7, "#b8e186" ], [ 0.8, "#7fbc41" ], [ 0.9, "#4d9221" ], [ 1, "#276419" ] ] }, "xaxis": { "gridcolor": "white", "linecolor": "white", "ticks": "", "title": { "standoff": 15 }, "zerolinecolor": "white", "automargin": true, "zerolinewidth": 2 }, "yaxis": { "gridcolor": "white", "linecolor": "white", "ticks": "", "title": { "standoff": 15 }, "zerolinecolor": "white", "automargin": true, "zerolinewidth": 2 }, "scene": { "xaxis": { "backgroundcolor": "#E5ECF6", "gridcolor": "white", "linecolor": "white", "showbackground": true, "ticks": "", "zerolinecolor": "white", "gridwidth": 2 }, "yaxis": { "backgroundcolor": "#E5ECF6", "gridcolor": "white", "linecolor": "white", "showbackground": true, "ticks": "", "zerolinecolor": "white", "gridwidth": 2 }, "zaxis": { "backgroundcolor": "#E5ECF6", "gridcolor": "white", "linecolor": "white", "showbackground": true, "ticks": "", "zerolinecolor": "white", "gridwidth": 2 } }, "shapedefaults": { "line": { "color": "#2a3f5f" } }, "annotationdefaults": { "arrowcolor": "#2a3f5f", "arrowhead": 0, "arrowwidth": 1 }, "geo": { "bgcolor": "white", "landcolor": "#E5ECF6", "subunitcolor": "white", "showland": true, "showlakes": true, "lakecolor": "white" }, "title": { "x": 0.05 }, "mapbox": { "style": "light" } } } }, "config": { "plotlyServerURL": "https://plot.ly" } }, "text/html": [ "
" ] }, "metadata": {}, "output_type": "display_data" } ], "execution_count": 10 }, { "metadata": { "ExecuteTime": { "end_time": "2025-04-02T12:19:46.100812136Z", "start_time": "2025-04-01T13:19:52.111359Z" } }, "cell_type": "code", "source": "optuna.visualization.plot_contour(study, params=[\"min_cluster_size\", \"min_samples\"])\n", "id": "9f4f8415f559acf2", "outputs": [ { "data": { "application/vnd.plotly.v1+json": { "data": [ { "colorbar": { "title": { "text": "Objective Value" } }, "colorscale": [ [ 0.0, "rgb(247,251,255)" ], [ 0.125, "rgb(222,235,247)" ], [ 0.25, "rgb(198,219,239)" ], [ 0.375, "rgb(158,202,225)" ], [ 0.5, "rgb(107,174,214)" ], [ 0.625, "rgb(66,146,198)" ], [ 0.75, "rgb(33,113,181)" ], [ 0.875, "rgb(8,81,156)" ], [ 1.0, "rgb(8,48,107)" ] ], "connectgaps": true, "contours": { "coloring": "heatmap" }, "hoverinfo": "none", "line": { "smoothing": 1.3 }, "reversescale": false, "x": [ 1.1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 17, 18, 20, 20.9 ], "y": [ -0.5, 0, 1, 2, 3, 4, 5, 6, 7, 9, 10, 10.5 ], "z": [ [ null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null ], [ null, 0.0, 0.0, 0.0, null, 0.0, 0.0, null, null, 0.0, null, 0.0, null, null, null, null, 0.0, null, null ], [ null, 0.3035806953814219, 0.30049647243271493, 0.29637414608512874, null, 0.27545551982851013, 0.26806903991370007, null, null, null, 0.2648648648648649, null, null, null, null, 0.2691790040376851, null, 0.25320600272851296, null ], [ null, 0.29691583899634083, 0.29877252546356753, 0.27438370846730975, 0.2859416445623342, null, null, null, 0.2376731301939058, null, null, null, 0.2690752224319224, null, null, null, null, null, null ], [ null, 0.276931301790965, 0.28986272439281946, 0.29091869060190073, 0.2822151224707135, null, null, null, null, null, null, null, null, 0.26814135419476665, null, null, null, null, null ], [ null, 0.26763990267639903, null, null, 0.28115015974440893, null, null, 0.2694691457828079, null, null, null, null, null, null, 0.26760183436741297, null, null, null, null ], [ null, null, null, 0.26897110450985684, null, 0.2764358561460011, null, 0.251782775644542, null, null, null, null, null, null, null, null, null, null, null ], [ null, null, 0.26068027210884354, null, null, 0.2750869681562751, null, null, null, 0.2595212187159956, null, null, null, null, null, null, null, null, null ], [ null, null, 0.26760183436741297, null, null, null, null, null, null, 0.25573770491803277, null, 0.26138828633405636, null, null, null, null, null, null, null ], [ null, null, null, null, null, null, 0.2547144028423066, null, null, null, null, null, null, null, null, 0.2642529046203729, null, null, null ], [ null, null, null, null, null, null, 0.25730674679049437, null, null, null, null, null, null, null, null, null, null, null, null ], [ null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null ] ], "type": "contour" }, { "marker": { "color": "black", "line": { "color": "Gray", "width": 2.0 } }, "mode": "markers", "name": "Feasible Trial", "showlegend": false, "x": [ 7, 8, 6, 6, 10, 6, 10, 3, 17, 9, 3, 10, 2, 15, 14, 13, 2, 2, 2, 2, 4, 20, 4, 20, 4, 5, 5, 5, 2, 2, 2, 7, 8, 3, 3, 3, 3, 7, 4, 4, 6, 6, 6, 3, 3, 5, 4, 5, 8, 8, 4, 12, 11, 12, 4, 4, 7, 3, 3, 3, 4, 17, 18, 17, 2, 2, 2, 5, 5, 5, 5, 5, 5, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 2, 2, 3, 4, 4, 2, 2, 2, 2 ], "y": [ 9, 4, 0, 1, 0, 6, 7, 7, 9, 2, 6, 6, 3, 4, 3, 2, 2, 2, 1, 3, 1, 1, 1, 1, 2, 2, 2, 4, 4, 4, 0, 10, 5, 3, 3, 3, 3, 0, 3, 5, 5, 5, 5, 3, 3, 3, 3, 4, 4, 4, 1, 7, 1, 0, 0, 1, 1, 2, 1, 2, 1, 1, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "type": "scatter" }, { "marker": { "color": "#cccccc", "line": { "color": "Gray", "width": 2.0 } }, "mode": "markers", "name": "Infeasible Trial", "showlegend": false, "x": [], "y": [], "type": "scatter" } ], "layout": { "title": { "text": "Contour Plot" }, "template": { "data": { "histogram2dcontour": [ { "type": "histogram2dcontour", "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ] } ], "choropleth": [ { "type": "choropleth", "colorbar": { "outlinewidth": 0, "ticks": "" } } ], "histogram2d": [ { "type": "histogram2d", "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ] } ], "heatmap": [ { "type": "heatmap", "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ] } ], "heatmapgl": [ { "type": "heatmapgl", "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ] } ], "contourcarpet": [ { "type": "contourcarpet", "colorbar": { "outlinewidth": 0, "ticks": "" } } ], "contour": [ { "type": "contour", "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ] } ], "surface": [ { "type": "surface", "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ] } ], "mesh3d": [ { "type": "mesh3d", "colorbar": { "outlinewidth": 0, "ticks": "" } } ], "scatter": [ { "fillpattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 }, "type": "scatter" } ], "parcoords": [ { "type": "parcoords", "line": { "colorbar": { "outlinewidth": 0, "ticks": "" } } } ], "scatterpolargl": [ { "type": "scatterpolargl", "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } } } ], "bar": [ { "error_x": { "color": "#2a3f5f" }, "error_y": { "color": "#2a3f5f" }, "marker": { "line": { "color": "#E5ECF6", "width": 0.5 }, "pattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 } }, "type": "bar" } ], "scattergeo": [ { "type": "scattergeo", "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } } } ], "scatterpolar": [ { "type": "scatterpolar", "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } } } ], "histogram": [ { "marker": { "pattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 } }, "type": "histogram" } ], "scattergl": [ { "type": "scattergl", "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } } } ], "scatter3d": [ { "type": "scatter3d", "line": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } } } ], "scattermapbox": [ { "type": "scattermapbox", "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } } } ], "scatterternary": [ { "type": "scatterternary", "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } } } ], "scattercarpet": [ { "type": "scattercarpet", "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } } } ], "carpet": [ { "aaxis": { "endlinecolor": "#2a3f5f", "gridcolor": "white", "linecolor": "white", "minorgridcolor": "white", "startlinecolor": "#2a3f5f" }, "baxis": { "endlinecolor": "#2a3f5f", "gridcolor": "white", "linecolor": "white", "minorgridcolor": "white", "startlinecolor": "#2a3f5f" }, "type": "carpet" } ], "table": [ { "cells": { "fill": { "color": "#EBF0F8" }, "line": { "color": "white" } }, "header": { "fill": { "color": "#C8D4E3" }, "line": { "color": "white" } }, "type": "table" } ], "barpolar": [ { "marker": { "line": { "color": "#E5ECF6", "width": 0.5 }, "pattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 } }, "type": "barpolar" } ], "pie": [ { "automargin": true, "type": "pie" } ] }, "layout": { "autotypenumbers": "strict", "colorway": [ "#636efa", "#EF553B", "#00cc96", "#ab63fa", "#FFA15A", "#19d3f3", "#FF6692", "#B6E880", "#FF97FF", "#FECB52" ], "font": { "color": "#2a3f5f" }, "hovermode": "closest", "hoverlabel": { "align": "left" }, "paper_bgcolor": "white", "plot_bgcolor": "#E5ECF6", "polar": { "bgcolor": "#E5ECF6", "angularaxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" }, "radialaxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" } }, "ternary": { "bgcolor": "#E5ECF6", "aaxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" }, "baxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" }, "caxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" } }, "coloraxis": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "colorscale": { "sequential": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "sequentialminus": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "diverging": [ [ 0, "#8e0152" ], [ 0.1, "#c51b7d" ], [ 0.2, "#de77ae" ], [ 0.3, "#f1b6da" ], [ 0.4, "#fde0ef" ], [ 0.5, "#f7f7f7" ], [ 0.6, "#e6f5d0" ], [ 0.7, "#b8e186" ], [ 0.8, "#7fbc41" ], [ 0.9, "#4d9221" ], [ 1, "#276419" ] ] }, "xaxis": { "gridcolor": "white", "linecolor": "white", "ticks": "", "title": { "standoff": 15 }, "zerolinecolor": "white", "automargin": true, "zerolinewidth": 2 }, "yaxis": { "gridcolor": "white", "linecolor": "white", "ticks": "", "title": { "standoff": 15 }, "zerolinecolor": "white", "automargin": true, "zerolinewidth": 2 }, "scene": { "xaxis": { "backgroundcolor": "#E5ECF6", "gridcolor": "white", "linecolor": "white", "showbackground": true, "ticks": "", "zerolinecolor": "white", "gridwidth": 2 }, "yaxis": { "backgroundcolor": "#E5ECF6", "gridcolor": "white", "linecolor": "white", "showbackground": true, "ticks": "", "zerolinecolor": "white", "gridwidth": 2 }, "zaxis": { "backgroundcolor": "#E5ECF6", "gridcolor": "white", "linecolor": "white", "showbackground": true, "ticks": "", "zerolinecolor": "white", "gridwidth": 2 } }, "shapedefaults": { "line": { "color": "#2a3f5f" } }, "annotationdefaults": { "arrowcolor": "#2a3f5f", "arrowhead": 0, "arrowwidth": 1 }, "geo": { "bgcolor": "white", "landcolor": "#E5ECF6", "subunitcolor": "white", "showland": true, "showlakes": true, "lakecolor": "white" }, "title": { "x": 0.05 }, "mapbox": { "style": "light" } } }, "xaxis": { "title": { "text": "min_cluster_size" }, "range": [ 1.1, 20.9 ] }, "yaxis": { "title": { "text": "min_samples" }, "range": [ -0.5, 10.5 ] } }, "config": { "plotlyServerURL": "https://plot.ly" } }, "text/html": [ "
" ] }, "metadata": {}, "output_type": "display_data" } ], "execution_count": 7 }, { "metadata": { "ExecuteTime": { "end_time": "2025-01-20T14:00:42.825689Z", "start_time": "2025-01-20T14:00:42.793582Z" } }, "cell_type": "code", "source": [ "# visualize the study\n", "study = studies[\"Identity_rinv_03_m_900\"]\n", "print(study.best_params)\n", "print(study.best_value)\n", "\n", "optuna.visualization.plot_optimization_history(study)\n" ], "id": "64a387a752d949a6", "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "{'min_cluster_size': 9, 'min_samples': 2, 'epsilon': 0.05112552955378122}\n", "0.7000755330893034\n" ] }, { "data": { "application/vnd.plotly.v1+json": { "data": [ { "mode": "markers", "name": "Objective Value", "x": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93 ], "y": [ 0.6445299873644618, 0.4659474915518586, 0.5471884451577063, 0.34944822166797634, 0.48621376695160357, 0.6363041408852929, 0.4162038114876775, 0.6145268054147535, 0.5070031545741325, 0.540342828802579, 0.529184832042154, 0.5376531853191556, 0.5274842098680508, 0.576738499159407, 0.5830690412295682, 0.5463091814330334, 0.5794507111329082, 0.4694970607446114, 0.3157675339562997, 0.2979170440137656, 0.48722349969232753, 0.6563702028951462, 0.6055815067672775, 0.6145451292602201, 0.653686899832614, 0.6524001293394868, 0.6468578832675658, 0.6468578832675658, 0.6280325048935287, 0.6379136818424013, 0.6280511314767031, 0.5915595220087733, 0.6683768656716418, 0.6431301075900995, 0.6742863807330087, 0.6797168574674474, 0.6536501540649443, 0.6830453879941435, 0.6830453879941435, 0.6830453879941435, 0.6830453879941435, 0.6830253872507394, 0.6830253872507394, 0.6763164026095061, 0.7000755330893034, 0.6784781237800667, 0.6860039260496325, 0.6783580072670491, 0.6782154437372404, 0.6782154437372404, 0.6941686065356396, 0.6913558731265249, 0.27532152908903057, 0.2965673462275658, 0.6914161220043572, 0.6914362072972345, 0.6907569859989542, 0.6854841046744139, 0.6884732492387995, 0.6937702265372169, 0.5909804395073653, 0.6093811350388112, 0.6341084808501746, 0.6341084808501746, 0.6926747447872986, 0.680678873977468, 0.6822740524781341, 0.668419668682619, 0.6445450270397366, 0.6445299873644618, 0.48843800322061187, 0.4900888145192431, 0.6705834448257809, 0.5629210372512227, 0.6842886669965941, 0.6696358396646581, 0.6843269678621332, 0.6636230611647643, 0.5458451383916062, 0.3117822203317737, 0.28272743714957493, 0.29302292160666815, 0.5880674054956733, 0.6887213685126123, 0.6884732492387995, 0.6887213685126123, 0.6887998141047985, 0.6520120753832175, 0.6744809890366223, 0.6372401592215834, 0.6518443658413341, 0.6578209791877869, 0.6804879479209431, 0.6168062200956939 ], "type": "scatter" }, { "mode": "lines", "name": "Best Value", "x": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96 ], "y": [ 0.6445299873644618, 0.6445299873644618, 0.6445299873644618, 0.6445299873644618, 0.6445299873644618, 0.6445299873644618, 0.6445299873644618, 0.6445299873644618, 0.6445299873644618, 0.6445299873644618, 0.6445299873644618, 0.6445299873644618, 0.6445299873644618, 0.6445299873644618, 0.6445299873644618, 0.6445299873644618, 0.6445299873644618, 0.6445299873644618, 0.6445299873644618, 0.6445299873644618, 0.6445299873644618, 0.6563702028951462, 0.6563702028951462, 0.6563702028951462, 0.6563702028951462, 0.6563702028951462, 0.6563702028951462, 0.6563702028951462, 0.6563702028951462, 0.6563702028951462, 0.6563702028951462, 0.6563702028951462, 0.6683768656716418, 0.6683768656716418, 0.6742863807330087, 0.6797168574674474, 0.6797168574674474, 0.6830453879941435, 0.6830453879941435, 0.6830453879941435, 0.6830453879941435, 0.6830453879941435, 0.6830453879941435, 0.6830453879941435, 0.7000755330893034, 0.7000755330893034, 0.7000755330893034, 0.7000755330893034, 0.7000755330893034, 0.7000755330893034, 0.7000755330893034, 0.7000755330893034, 0.7000755330893034, 0.7000755330893034, 0.7000755330893034, 0.7000755330893034, 0.7000755330893034, 0.7000755330893034, 0.7000755330893034, 0.7000755330893034, 0.7000755330893034, 0.7000755330893034, 0.7000755330893034, 0.7000755330893034, 0.7000755330893034, 0.7000755330893034, 0.7000755330893034, 0.7000755330893034, 0.7000755330893034, 0.7000755330893034, 0.7000755330893034, 0.7000755330893034, 0.7000755330893034, 0.7000755330893034, 0.7000755330893034, 0.7000755330893034, 0.7000755330893034, 0.7000755330893034, 0.7000755330893034, 0.7000755330893034, 0.7000755330893034, 0.7000755330893034, 0.7000755330893034, 0.7000755330893034, 0.7000755330893034, 0.7000755330893034, 0.7000755330893034, 0.7000755330893034, 0.7000755330893034, 0.7000755330893034, 0.7000755330893034, 0.7000755330893034, 0.7000755330893034, 0.7000755330893034, 0.7000755330893034, 0.7000755330893034, 0.7000755330893034 ], "type": "scatter" }, { "marker": { "color": "#cccccc" }, "mode": "markers", "name": "Infeasible Trial", "showlegend": false, "x": [], "y": [], "type": "scatter" } ], "layout": { "title": { "text": "Optimization History Plot" }, "xaxis": { "title": { "text": "Trial" } }, "yaxis": { "title": { "text": "Objective Value" } }, "template": { "data": { "histogram2dcontour": [ { "type": "histogram2dcontour", "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ] } ], "choropleth": [ { "type": "choropleth", "colorbar": { "outlinewidth": 0, "ticks": "" } } ], "histogram2d": [ { "type": "histogram2d", "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ] } ], "heatmap": [ { "type": "heatmap", "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ] } ], "heatmapgl": [ { "type": "heatmapgl", "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ] } ], "contourcarpet": [ { "type": "contourcarpet", "colorbar": { "outlinewidth": 0, "ticks": "" } } ], "contour": [ { "type": "contour", "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ] } ], "surface": [ { "type": "surface", "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ] } ], "mesh3d": [ { "type": "mesh3d", "colorbar": { "outlinewidth": 0, "ticks": "" } } ], "scatter": [ { "fillpattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 }, "type": "scatter" } ], "parcoords": [ { "type": "parcoords", "line": { "colorbar": { "outlinewidth": 0, "ticks": "" } } } ], "scatterpolargl": [ { "type": "scatterpolargl", "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } } } ], "bar": [ { "error_x": { "color": "#2a3f5f" }, "error_y": { "color": "#2a3f5f" }, "marker": { "line": { "color": "#E5ECF6", "width": 0.5 }, "pattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 } }, "type": "bar" } ], "scattergeo": [ { "type": "scattergeo", "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } } } ], "scatterpolar": [ { "type": "scatterpolar", "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } } } ], "histogram": [ { "marker": { "pattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 } }, "type": "histogram" } ], "scattergl": [ { "type": "scattergl", "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } } } ], "scatter3d": [ { "type": "scatter3d", "line": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } } } ], "scattermapbox": [ { "type": "scattermapbox", "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } } } ], "scatterternary": [ { "type": "scatterternary", "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } } } ], "scattercarpet": [ { "type": "scattercarpet", "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } } } ], "carpet": [ { "aaxis": { "endlinecolor": "#2a3f5f", "gridcolor": "white", "linecolor": "white", "minorgridcolor": "white", "startlinecolor": "#2a3f5f" }, "baxis": { "endlinecolor": "#2a3f5f", "gridcolor": "white", "linecolor": "white", "minorgridcolor": "white", "startlinecolor": "#2a3f5f" }, "type": "carpet" } ], "table": [ { "cells": { "fill": { "color": "#EBF0F8" }, "line": { "color": "white" } }, "header": { "fill": { "color": "#C8D4E3" }, "line": { "color": "white" } }, "type": "table" } ], "barpolar": [ { "marker": { "line": { "color": "#E5ECF6", "width": 0.5 }, "pattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 } }, "type": "barpolar" } ], "pie": [ { "automargin": true, "type": "pie" } ] }, "layout": { "autotypenumbers": "strict", "colorway": [ "#636efa", "#EF553B", "#00cc96", "#ab63fa", "#FFA15A", "#19d3f3", "#FF6692", "#B6E880", "#FF97FF", "#FECB52" ], "font": { "color": "#2a3f5f" }, "hovermode": "closest", "hoverlabel": { "align": "left" }, "paper_bgcolor": "white", "plot_bgcolor": "#E5ECF6", "polar": { "bgcolor": "#E5ECF6", "angularaxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" }, "radialaxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" } }, "ternary": { "bgcolor": "#E5ECF6", "aaxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" }, "baxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" }, "caxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" } }, "coloraxis": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "colorscale": { "sequential": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "sequentialminus": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "diverging": [ [ 0, "#8e0152" ], [ 0.1, "#c51b7d" ], [ 0.2, "#de77ae" ], [ 0.3, "#f1b6da" ], [ 0.4, "#fde0ef" ], [ 0.5, "#f7f7f7" ], [ 0.6, "#e6f5d0" ], [ 0.7, "#b8e186" ], [ 0.8, "#7fbc41" ], [ 0.9, "#4d9221" ], [ 1, "#276419" ] ] }, "xaxis": { "gridcolor": "white", "linecolor": "white", "ticks": "", "title": { "standoff": 15 }, "zerolinecolor": "white", "automargin": true, "zerolinewidth": 2 }, "yaxis": { "gridcolor": "white", "linecolor": "white", "ticks": "", "title": { "standoff": 15 }, "zerolinecolor": "white", "automargin": true, "zerolinewidth": 2 }, "scene": { "xaxis": { "backgroundcolor": "#E5ECF6", "gridcolor": "white", "linecolor": "white", "showbackground": true, "ticks": "", "zerolinecolor": "white", "gridwidth": 2 }, "yaxis": { "backgroundcolor": "#E5ECF6", "gridcolor": "white", "linecolor": "white", "showbackground": true, "ticks": "", "zerolinecolor": "white", "gridwidth": 2 }, "zaxis": { "backgroundcolor": "#E5ECF6", "gridcolor": "white", "linecolor": "white", "showbackground": true, "ticks": "", "zerolinecolor": "white", "gridwidth": 2 } }, "shapedefaults": { "line": { "color": "#2a3f5f" } }, "annotationdefaults": { "arrowcolor": "#2a3f5f", "arrowhead": 0, "arrowwidth": 1 }, "geo": { "bgcolor": "white", "landcolor": "#E5ECF6", "subunitcolor": "white", "showland": true, "showlakes": true, "lakecolor": "white" }, "title": { "x": 0.05 }, "mapbox": { "style": "light" } } } }, "config": { "plotlyServerURL": "https://plot.ly" } }, "text/html": [ "
" ] }, "metadata": {}, "output_type": "display_data" } ], "execution_count": 59 }, { "metadata": { "ExecuteTime": { "end_time": "2025-01-20T14:00:42.918625Z", "start_time": "2025-01-20T14:00:42.893260Z" } }, "cell_type": "code", "source": "optuna.visualization.plot_contour(study, params=[\"min_cluster_size\", \"min_samples\"])\n", "id": "58174d74f894b680", "outputs": [ { "data": { "application/vnd.plotly.v1+json": { "data": [ { "colorbar": { "title": { "text": "Objective Value" } }, "colorscale": [ [ 0.0, "rgb(247,251,255)" ], [ 0.125, "rgb(222,235,247)" ], [ 0.25, "rgb(198,219,239)" ], [ 0.375, "rgb(158,202,225)" ], [ 0.5, "rgb(107,174,214)" ], [ 0.625, "rgb(66,146,198)" ], [ 0.75, "rgb(33,113,181)" ], [ 0.875, "rgb(8,81,156)" ], [ 1.0, "rgb(8,48,107)" ] ], "connectgaps": true, "contours": { "coloring": "heatmap" }, "hoverinfo": "none", "line": { "smoothing": 1.3 }, "reversescale": false, "x": [ 3.75, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 17, 18, 20, 21, 25, 26, 27, 28, 30, 31.25 ], "y": [ 0.5999999999999999, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 14, 15, 17, 18, 19, 20, 22, 23, 24, 27, 29, 30, 31.4 ], "z": [ [ null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null ], [ null, 0.2979170440137656, 0.6784781237800667, 0.3117822203317737, null, 0.7000755330893034, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null ], [ null, null, 0.6941686065356396, null, 0.6518443658413341, 0.6887998141047985, 0.6937702265372169, null, null, null, null, null, null, 0.6520120753832175, 0.6372401592215834, null, 0.5909804395073653, null, null, null, null, null ], [ null, null, null, null, 0.6914362072972345, 0.6887213685126123, 0.6854841046744139, 0.5458451383916062, null, null, null, null, null, null, null, null, null, null, null, 0.5471884451577063, 0.2965673462275658, null ], [ null, null, 0.6860039260496325, null, 0.6843269678621332, null, null, 0.6636230611647643, 0.6705834448257809, null, null, null, null, null, null, null, null, null, null, null, null, null ], [ null, 0.6830453879941435, null, null, 0.6797168574674474, 0.6763164026095061, null, 0.6683768656716418, null, null, null, null, null, null, null, null, null, null, null, null, null, null ], [ null, 0.6536501540649443, null, null, 0.6744809890366223, null, null, null, null, null, null, 0.6431301075900995, null, null, null, null, null, 0.540342828802579, null, null, null, null ], [ null, null, null, null, 0.668419668682619, null, null, null, null, null, 0.6445450270397366, null, null, null, null, null, null, null, null, null, null, null ], [ null, null, null, 0.6363041408852929, null, null, null, null, null, null, null, null, 0.6145451292602201, 0.6055815067672775, null, null, null, null, null, null, null, null ], [ null, 0.6563702028951462, null, 0.653686899832614, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 0.5070031545741325, null, null, null ], [ null, null, null, 0.6468578832675658, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null ], [ null, null, null, 0.6379136818424013, null, null, null, null, 0.6280511314767031, null, null, null, null, null, null, null, null, null, null, null, null, null ], [ null, null, null, null, null, null, null, 0.5830690412295682, null, 0.576738499159407, null, null, null, null, null, 0.5463091814330334, null, null, null, null, null, null ], [ null, null, 0.6168062200956939, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null ], [ null, null, null, null, null, null, null, 0.5915595220087733, null, null, null, null, null, null, null, null, null, null, null, null, null, null ], [ null, null, null, null, null, 0.5880674054956733, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null ], [ null, null, null, 0.34944822166797634, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null ], [ null, 0.4659474915518586, null, null, null, null, null, null, 0.5629210372512227, null, null, null, null, null, null, null, null, null, null, null, null, null ], [ null, null, null, null, null, 0.4162038114876775, null, null, null, null, null, 0.5376531853191556, null, null, null, null, null, null, null, null, null, null ], [ null, null, null, null, null, null, null, null, null, 0.529184832042154, null, null, null, null, null, null, null, null, null, null, null, null ], [ null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 0.48621376695160357, null, null, null, null, null, null ], [ null, null, null, null, null, null, null, null, null, 0.4900888145192431, 0.48843800322061187, null, null, null, null, null, null, null, null, null, null, null ], [ null, 0.48722349969232753, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null ], [ null, null, null, null, null, 0.4694970607446114, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null ], [ null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null ] ], "type": "contour" }, { "marker": { "color": "black", "line": { "color": "Gray", "width": 2.0 } }, "mode": "markers", "name": "Feasible Trial", "showlegend": false, "x": [ 14, 5, 28, 7, 21, 7, 9, 17, 27, 26, 13, 15, 21, 13, 11, 21, 10, 9, 9, 5, 5, 5, 18, 17, 7, 7, 7, 7, 12, 7, 12, 11, 11, 15, 8, 8, 5, 5, 5, 5, 5, 5, 5, 9, 9, 6, 6, 6, 6, 6, 6, 8, 8, 30, 8, 8, 8, 10, 9, 10, 25, 10, 10, 10, 10, 10, 9, 8, 14, 14, 14, 13, 12, 12, 8, 12, 8, 11, 11, 7, 7, 7, 9, 9, 9, 9, 9, 18, 8, 20, 8, 6, 6, 6 ], "y": [ 8, 20, 4, 19, 24, 9, 22, 9, 10, 7, 23, 22, 14, 14, 14, 14, 4, 30, 4, 2, 29, 10, 9, 9, 10, 10, 11, 11, 12, 12, 12, 17, 6, 7, 7, 6, 7, 6, 6, 6, 6, 6, 6, 6, 2, 2, 5, 2, 2, 2, 3, 4, 4, 4, 4, 4, 4, 4, 4, 3, 3, 3, 3, 3, 3, 3, 3, 8, 8, 8, 27, 27, 5, 20, 5, 5, 5, 5, 4, 2, 2, 2, 18, 4, 4, 4, 3, 3, 7, 3, 3, 3, 5, 15 ], "type": "scatter" }, { "marker": { "color": "#cccccc", "line": { "color": "Gray", "width": 2.0 } }, "mode": "markers", "name": "Infeasible Trial", "showlegend": false, "x": [], "y": [], "type": "scatter" } ], "layout": { "title": { "text": "Contour Plot" }, "template": { "data": { "histogram2dcontour": [ { "type": "histogram2dcontour", "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ] } ], "choropleth": [ { "type": "choropleth", "colorbar": { "outlinewidth": 0, "ticks": "" } } ], "histogram2d": [ { "type": "histogram2d", "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ] } ], "heatmap": [ { "type": "heatmap", "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ] } ], "heatmapgl": [ { "type": "heatmapgl", "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ] } ], "contourcarpet": [ { "type": "contourcarpet", "colorbar": { "outlinewidth": 0, "ticks": "" } } ], "contour": [ { "type": "contour", "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ] } ], "surface": [ { "type": "surface", "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ] } ], "mesh3d": [ { "type": "mesh3d", "colorbar": { "outlinewidth": 0, "ticks": "" } } ], "scatter": [ { "fillpattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 }, "type": "scatter" } ], "parcoords": [ { "type": "parcoords", "line": { "colorbar": { "outlinewidth": 0, "ticks": "" } } } ], "scatterpolargl": [ { "type": "scatterpolargl", "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } } } ], "bar": [ { "error_x": { "color": "#2a3f5f" }, "error_y": { "color": "#2a3f5f" }, "marker": { "line": { "color": "#E5ECF6", "width": 0.5 }, "pattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 } }, "type": "bar" } ], "scattergeo": [ { "type": "scattergeo", "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } } } ], "scatterpolar": [ { "type": "scatterpolar", "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } } } ], "histogram": [ { "marker": { "pattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 } }, "type": "histogram" } ], "scattergl": [ { "type": "scattergl", "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } } } ], "scatter3d": [ { "type": "scatter3d", "line": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } } } ], "scattermapbox": [ { "type": "scattermapbox", "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } } } ], "scatterternary": [ { "type": "scatterternary", "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } } } ], "scattercarpet": [ { "type": "scattercarpet", "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } } } ], "carpet": [ { "aaxis": { "endlinecolor": "#2a3f5f", "gridcolor": "white", "linecolor": "white", "minorgridcolor": "white", "startlinecolor": "#2a3f5f" }, "baxis": { "endlinecolor": "#2a3f5f", "gridcolor": "white", "linecolor": "white", "minorgridcolor": "white", "startlinecolor": "#2a3f5f" }, "type": "carpet" } ], "table": [ { "cells": { "fill": { "color": "#EBF0F8" }, "line": { "color": "white" } }, "header": { "fill": { "color": "#C8D4E3" }, "line": { "color": "white" } }, "type": "table" } ], "barpolar": [ { "marker": { "line": { "color": "#E5ECF6", "width": 0.5 }, "pattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 } }, "type": "barpolar" } ], "pie": [ { "automargin": true, "type": "pie" } ] }, "layout": { "autotypenumbers": "strict", "colorway": [ "#636efa", "#EF553B", "#00cc96", "#ab63fa", "#FFA15A", "#19d3f3", "#FF6692", "#B6E880", "#FF97FF", "#FECB52" ], "font": { "color": "#2a3f5f" }, "hovermode": "closest", "hoverlabel": { "align": "left" }, "paper_bgcolor": "white", "plot_bgcolor": "#E5ECF6", "polar": { "bgcolor": "#E5ECF6", "angularaxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" }, "radialaxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" } }, "ternary": { "bgcolor": "#E5ECF6", "aaxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" }, "baxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" }, "caxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" } }, "coloraxis": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "colorscale": { "sequential": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "sequentialminus": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "diverging": [ [ 0, "#8e0152" ], [ 0.1, "#c51b7d" ], [ 0.2, "#de77ae" ], [ 0.3, "#f1b6da" ], [ 0.4, "#fde0ef" ], [ 0.5, "#f7f7f7" ], [ 0.6, "#e6f5d0" ], [ 0.7, "#b8e186" ], [ 0.8, "#7fbc41" ], [ 0.9, "#4d9221" ], [ 1, "#276419" ] ] }, "xaxis": { "gridcolor": "white", "linecolor": "white", "ticks": "", "title": { "standoff": 15 }, "zerolinecolor": "white", "automargin": true, "zerolinewidth": 2 }, "yaxis": { "gridcolor": "white", "linecolor": "white", "ticks": "", "title": { "standoff": 15 }, "zerolinecolor": "white", "automargin": true, "zerolinewidth": 2 }, "scene": { "xaxis": { "backgroundcolor": "#E5ECF6", "gridcolor": "white", "linecolor": "white", "showbackground": true, "ticks": "", "zerolinecolor": "white", "gridwidth": 2 }, "yaxis": { "backgroundcolor": "#E5ECF6", "gridcolor": "white", "linecolor": "white", "showbackground": true, "ticks": "", "zerolinecolor": "white", "gridwidth": 2 }, "zaxis": { "backgroundcolor": "#E5ECF6", "gridcolor": "white", "linecolor": "white", "showbackground": true, "ticks": "", "zerolinecolor": "white", "gridwidth": 2 } }, "shapedefaults": { "line": { "color": "#2a3f5f" } }, "annotationdefaults": { "arrowcolor": "#2a3f5f", "arrowhead": 0, "arrowwidth": 1 }, "geo": { "bgcolor": "white", "landcolor": "#E5ECF6", "subunitcolor": "white", "showland": true, "showlakes": true, "lakecolor": "white" }, "title": { "x": 0.05 }, "mapbox": { "style": "light" } } }, "xaxis": { "title": { "text": "min_cluster_size" }, "range": [ 3.75, 31.25 ] }, "yaxis": { "title": { "text": "min_samples" }, "range": [ 0.5999999999999999, 31.4 ] } }, "config": { "plotlyServerURL": "https://plot.ly" } }, "text/html": [ "
" ] }, "metadata": {}, "output_type": "display_data" } ], "execution_count": 60 }, { "metadata": { "ExecuteTime": { "end_time": "2025-01-20T14:00:43.012657Z", "start_time": "2025-01-20T14:00:42.972008Z" } }, "cell_type": "code", "source": "optuna.visualization.plot_contour(study, params=[\"min_cluster_size\", \"epsilon\"])\n", "id": "61970be4f9dd0a52", "outputs": [ { "data": { "application/vnd.plotly.v1+json": { "data": [ { "colorbar": { "title": { "text": "Objective Value" } }, "colorscale": [ [ 0.0, "rgb(247,251,255)" ], [ 0.125, "rgb(222,235,247)" ], [ 0.25, "rgb(198,219,239)" ], [ 0.375, "rgb(158,202,225)" ], [ 0.5, "rgb(107,174,214)" ], [ 0.625, "rgb(66,146,198)" ], [ 0.75, "rgb(33,113,181)" ], [ 0.875, "rgb(8,81,156)" ], [ 1.0, "rgb(8,48,107)" ] ], "connectgaps": true, "contours": { "coloring": "heatmap" }, "hoverinfo": "none", "line": { "smoothing": 1.3 }, "reversescale": false, "x": [ -0.012855098919541005, 0.011263226459545889, 0.013630020043986453, 0.016267773234105474, 0.021950029012550436, 0.024475439353389312, 0.03165932986472511, 0.03217219010617994, 0.03688430433046225, 0.03822246814313676, 0.03835485739579715, 0.040659430256419084, 0.044199192523817155, 0.04674681612215488, 0.04887132738158265, 0.048925942003726935, 0.0498549420385372, 0.0501456146084194, 0.05112552955378122, 0.0588572002048303, 0.059404290631778746, 0.059829787975593754, 0.061566946451765414, 0.061646551459528305, 0.065927942967217, 0.06745441862837374, 0.07046370761739812, 0.07212971495510849, 0.0738655530336822, 0.07487733826147724, 0.07576805408845919, 0.07691518490732062, 0.07801971683099954, 0.07832420100059283, 0.07879644717236631, 0.07939422235829016, 0.08255193716329551, 0.08370767472015733, 0.08478156596751255, 0.08495103643694721, 0.08741522054151135, 0.08804265742891054, 0.09015577481282054, 0.09180152733901467, 0.09184301968320846, 0.09331486853054542, 0.09462503601614727, 0.09697004508260854, 0.10076362835567448, 0.10126559533240051, 0.10311931998174755, 0.10688635236122257, 0.10692189484879672, 0.10740470761531976, 0.10839412662529492, 0.10943578005466859, 0.11481090354070173, 0.11618914824591976, 0.1206650228048842, 0.12142261524707477, 0.12143616224311836, 0.12368284060442458, 0.12956336281064562, 0.13257255926566458, 0.13842115118156287, 0.1391491625488669, 0.13951950351144252, 0.14098675841298333, 0.14846569510331847, 0.14883554516436837, 0.15113619842976073, 0.16172706734587736, 0.1617298963589536, 0.17485511719664615, 0.17568436953783512, 0.17958865484802544, 0.19529504930173058, 0.20065989932586775, 0.20789625836006717, 0.21735492024391928, 0.2295971014499739, 0.2534115610265647, 0.25698704515514065, 0.2670911045647954, 0.2923162374391224, 0.3247276298158274, 0.33451471526946835, 0.34541128204946103, 0.35368454660132287, 0.3866894133473552, 0.394601513604858, 0.4439544855483355, 0.48049991966967187, 0.48951533793958846, 0.49362973404128374, 0.5177480594203706 ], "y": [ 3.75, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 17, 18, 20, 21, 25, 26, 27, 28, 30, 31.25 ], "z": [ [ null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null ], [ null, null, null, null, null, null, null, 0.6830253872507394, null, 0.6830253872507394, null, null, 0.6830453879941435, 0.6830453879941435, null, 0.6830453879941435, 0.6830453879941435, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 0.48722349969232753, 0.6563702028951462, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 0.6536501540649443, null, null, null, null, null, null, null, null, null, null, null, null, 0.2979170440137656, null, null, null, 0.4659474915518586, null, null, null, null, null ], [ null, null, 0.6782154437372404, 0.6782154437372404, 0.6783580072670491, null, 0.6784781237800667, null, 0.6860039260496325, null, null, null, null, null, null, null, null, null, null, null, null, 0.6168062200956939, null, null, null, null, null, null, null, null, null, null, null, 0.6941686065356396, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 0.6804879479209431, null, null, null, null, 0.6578209791877869, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null ], [ null, 0.6379136818424013, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 0.653686899832614, null, 0.6468578832675658, null, null, null, 0.6468578832675658, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 0.6524001293394868, null, null, null, null, null, null, 0.6363041408852929, null, null, null, null, null, null, null, null, 0.3117822203317737, null, null, 0.29302292160666815, 0.28272743714957493, null, null, null, 0.34944822166797634, null, null ], [ null, null, null, null, null, null, null, null, null, null, null, null, null, null, 0.6797168574674474, null, null, 0.6742863807330087, null, null, null, null, 0.6842886669965941, null, 0.6843269678621332, null, null, null, null, null, 0.6907569859989542, null, null, null, null, null, 0.6913558731265249, null, 0.6914161220043572, 0.6914362072972345, null, null, null, null, null, null, null, null, null, null, null, null, 0.6744809890366223, null, null, null, null, null, null, null, null, 0.668419668682619, null, null, null, null, null, null, null, null, 0.6518443658413341, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 0.27532152908903057, null, null, null ], [ null, null, null, null, null, null, null, null, null, null, 0.6763164026095061, null, null, null, null, null, null, null, 0.7000755330893034, 0.5880674054956733, null, null, null, null, null, null, null, 0.6884732492387995, 0.6884732492387995, null, null, 0.6887213685126123, null, null, null, 0.6887213685126123, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 0.6887998141047985, null, null, null, 0.6822740524781341, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 0.4694970607446114, null, null, null, null, null, null, null, null, 0.3157675339562997, null, null, null, 0.4162038114876775, null, null, null, null ], [ null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 0.6854841046744139, null, null, null, null, null, 0.6937702265372169, null, null, null, null, 0.6926747447872986, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 0.680678873977468, null, null, null, null, null, null, null, null, null, null, 0.6341084808501746, 0.6341084808501746, null, 0.6093811350388112, null, null, 0.5794507111329082, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null ], [ null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 0.5915595220087733, null, null, null, null, null, 0.6683768656716418, null, null, null, null, null, null, null, null, 0.6636230611647643, null, null, null, null, null, null, null, null, null, null, null, null, null, 0.5458451383916062, null, 0.5830690412295682, null, null, null, null, null, null, null, null, null, null, null, null, null, null ], [ null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 0.6280325048935287, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 0.6705834448257809, null, 0.5629210372512227, null, null, null, null, null, null, null, null, null, 0.6696358396646581, null, null, 0.6280511314767031, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null ], [ null, null, null, null, null, 0.529184832042154, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 0.4900888145192431, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 0.576738499159407, null, null, null, null, null, null, null, null, null, null, null, null, null ], [ null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 0.6445299873644618, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 0.48843800322061187, null, null, null, null, 0.6445299873644618, null, null, null, null, null, null, null, null, null, null, null, 0.6445450270397366, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null ], [ null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 0.6431301075900995, null, null, null, null, null, null, null, null, null, null, null, null, 0.5376531853191556, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null ], [ null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 0.6145268054147535, 0.6145451292602201, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null ], [ null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 0.6520120753832175, null, null, null, null, null, null, null, null, null, null, 0.6055815067672775, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null ], [ null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 0.6372401592215834, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null ], [ null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 0.5463091814330334, null, null, 0.5274842098680508, 0.48621376695160357, null, null, null, null, null, null, null, null, null, null, null ], [ null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 0.5909804395073653, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null ], [ null, null, null, null, null, null, null, null, null, null, null, 0.540342828802579, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null ], [ null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 0.5070031545741325, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null ], [ null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 0.5471884451577063, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null ], [ null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 0.2965673462275658, null ], [ null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null ] ], "type": "contour" }, { "marker": { "color": "black", "line": { "color": "Gray", "width": 2.0 } }, "mode": "markers", "name": "Feasible Trial", "showlegend": false, "x": [ 0.059404290631778746, 0.394601513604858, 0.08370767472015733, 0.48951533793958846, 0.2923162374391224, 0.19529504930173058, 0.4439544855483355, 0.13951950351144252, 0.17958865484802544, 0.040659430256419084, 0.024475439353389312, 0.12956336281064562, 0.2670911045647954, 0.25698704515514065, 0.2534115610265647, 0.2295971014499739, 0.20065989932586775, 0.20789625836006717, 0.34541128204946103, 0.33451471526946835, 0.09697004508260854, 0.10076362835567448, 0.13842115118156287, 0.14098675841298333, 0.061646551459528305, 0.14883554516436837, 0.06745441862837374, 0.07487733826147724, 0.07046370761739812, 0.011263226459545889, 0.11618914824591976, 0.10311931998174755, 0.11481090354070173, 0.10126559533240051, 0.0501456146084194, 0.04887132738158265, 0.17485511719664615, 0.04674681612215488, 0.044199192523817155, 0.048925942003726935, 0.0498549420385372, 0.03217219010617994, 0.03822246814313676, 0.03835485739579715, 0.05112552955378122, 0.03165932986472511, 0.03688430433046225, 0.021950029012550436, 0.016267773234105474, 0.013630020043986453, 0.07832420100059283, 0.08255193716329551, 0.48049991966967187, 0.49362973404128374, 0.08478156596751255, 0.08495103643694721, 0.07576805408845919, 0.07879644717236631, 0.07212971495510849, 0.08741522054151135, 0.07801971683099954, 0.17568436953783512, 0.1617298963589536, 0.16172706734587736, 0.09331486853054542, 0.12143616224311836, 0.12142261524707477, 0.12368284060442458, 0.1206650228048842, 0.09462503601614727, 0.08804265742891054, 0.09180152733901467, 0.09015577481282054, 0.09184301968320846, 0.061566946451765414, 0.10839412662529492, 0.065927942967217, 0.1391491625488669, 0.21735492024391928, 0.3247276298158274, 0.3866894133473552, 0.35368454660132287, 0.0588572002048303, 0.07691518490732062, 0.0738655530336822, 0.07939422235829016, 0.10943578005466859, 0.10740470761531976, 0.10692189484879672, 0.10688635236122257, 0.15113619842976073, 0.14846569510331847, 0.13257255926566458, 0.059829787975593754 ], "y": [ 14, 5, 28, 7, 21, 7, 9, 17, 27, 26, 13, 15, 21, 13, 11, 21, 10, 9, 9, 5, 5, 5, 18, 17, 7, 7, 7, 7, 12, 7, 12, 11, 11, 15, 8, 8, 5, 5, 5, 5, 5, 5, 5, 9, 9, 6, 6, 6, 6, 6, 6, 8, 8, 30, 8, 8, 8, 10, 9, 10, 25, 10, 10, 10, 10, 10, 9, 8, 14, 14, 14, 13, 12, 12, 8, 12, 8, 11, 11, 7, 7, 7, 9, 9, 9, 9, 9, 18, 8, 20, 8, 6, 6, 6 ], "type": "scatter" }, { "marker": { "color": "#cccccc", "line": { "color": "Gray", "width": 2.0 } }, "mode": "markers", "name": "Infeasible Trial", "showlegend": false, "x": [], "y": [], "type": "scatter" } ], "layout": { "title": { "text": "Contour Plot" }, "template": { "data": { "histogram2dcontour": [ { "type": "histogram2dcontour", "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ] } ], "choropleth": [ { "type": "choropleth", "colorbar": { "outlinewidth": 0, "ticks": "" } } ], "histogram2d": [ { "type": "histogram2d", "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ] } ], "heatmap": [ { "type": "heatmap", "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ] } ], "heatmapgl": [ { "type": "heatmapgl", "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ] } ], "contourcarpet": [ { "type": "contourcarpet", "colorbar": { "outlinewidth": 0, "ticks": "" } } ], "contour": [ { "type": "contour", "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ] } ], "surface": [ { "type": "surface", "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ] } ], "mesh3d": [ { "type": "mesh3d", "colorbar": { "outlinewidth": 0, "ticks": "" } } ], "scatter": [ { "fillpattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 }, "type": "scatter" } ], "parcoords": [ { "type": "parcoords", "line": { "colorbar": { "outlinewidth": 0, "ticks": "" } } } ], "scatterpolargl": [ { "type": "scatterpolargl", "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } } } ], "bar": [ { "error_x": { "color": "#2a3f5f" }, "error_y": { "color": "#2a3f5f" }, "marker": { "line": { "color": "#E5ECF6", "width": 0.5 }, "pattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 } }, "type": "bar" } ], "scattergeo": [ { "type": "scattergeo", "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } } } ], "scatterpolar": [ { "type": "scatterpolar", "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } } } ], "histogram": [ { "marker": { "pattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 } }, "type": "histogram" } ], "scattergl": [ { "type": "scattergl", "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } } } ], "scatter3d": [ { "type": "scatter3d", "line": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } } } ], "scattermapbox": [ { "type": "scattermapbox", "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } } } ], "scatterternary": [ { "type": "scatterternary", "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } } } ], "scattercarpet": [ { "type": "scattercarpet", "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } } } ], "carpet": [ { "aaxis": { "endlinecolor": "#2a3f5f", "gridcolor": "white", "linecolor": "white", "minorgridcolor": "white", "startlinecolor": "#2a3f5f" }, "baxis": { "endlinecolor": "#2a3f5f", "gridcolor": "white", "linecolor": "white", "minorgridcolor": "white", "startlinecolor": "#2a3f5f" }, "type": "carpet" } ], "table": [ { "cells": { "fill": { "color": "#EBF0F8" }, "line": { "color": "white" } }, "header": { "fill": { "color": "#C8D4E3" }, "line": { "color": "white" } }, "type": "table" } ], "barpolar": [ { "marker": { "line": { "color": "#E5ECF6", "width": 0.5 }, "pattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 } }, "type": "barpolar" } ], "pie": [ { "automargin": true, "type": "pie" } ] }, "layout": { "autotypenumbers": "strict", "colorway": [ "#636efa", "#EF553B", "#00cc96", "#ab63fa", "#FFA15A", "#19d3f3", "#FF6692", "#B6E880", "#FF97FF", "#FECB52" ], "font": { "color": "#2a3f5f" }, "hovermode": "closest", "hoverlabel": { "align": "left" }, "paper_bgcolor": "white", "plot_bgcolor": "#E5ECF6", "polar": { "bgcolor": "#E5ECF6", "angularaxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" }, "radialaxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" } }, "ternary": { "bgcolor": "#E5ECF6", "aaxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" }, "baxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" }, "caxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" } }, "coloraxis": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "colorscale": { "sequential": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "sequentialminus": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "diverging": [ [ 0, "#8e0152" ], [ 0.1, "#c51b7d" ], [ 0.2, "#de77ae" ], [ 0.3, "#f1b6da" ], [ 0.4, "#fde0ef" ], [ 0.5, "#f7f7f7" ], [ 0.6, "#e6f5d0" ], [ 0.7, "#b8e186" ], [ 0.8, "#7fbc41" ], [ 0.9, "#4d9221" ], [ 1, "#276419" ] ] }, "xaxis": { "gridcolor": "white", "linecolor": "white", "ticks": "", "title": { "standoff": 15 }, "zerolinecolor": "white", "automargin": true, "zerolinewidth": 2 }, "yaxis": { "gridcolor": "white", "linecolor": "white", "ticks": "", "title": { "standoff": 15 }, "zerolinecolor": "white", "automargin": true, "zerolinewidth": 2 }, "scene": { "xaxis": { "backgroundcolor": "#E5ECF6", "gridcolor": "white", "linecolor": "white", "showbackground": true, "ticks": "", "zerolinecolor": "white", "gridwidth": 2 }, "yaxis": { "backgroundcolor": "#E5ECF6", "gridcolor": "white", "linecolor": "white", "showbackground": true, "ticks": "", "zerolinecolor": "white", "gridwidth": 2 }, "zaxis": { "backgroundcolor": "#E5ECF6", "gridcolor": "white", "linecolor": "white", "showbackground": true, "ticks": "", "zerolinecolor": "white", "gridwidth": 2 } }, "shapedefaults": { "line": { "color": "#2a3f5f" } }, "annotationdefaults": { "arrowcolor": "#2a3f5f", "arrowhead": 0, "arrowwidth": 1 }, "geo": { "bgcolor": "white", "landcolor": "#E5ECF6", "subunitcolor": "white", "showland": true, "showlakes": true, "lakecolor": "white" }, "title": { "x": 0.05 }, "mapbox": { "style": "light" } } }, "xaxis": { "title": { "text": "epsilon" }, "range": [ -0.012855098919541005, 0.5177480594203706 ] }, "yaxis": { "title": { "text": "min_cluster_size" }, "range": [ 3.75, 31.25 ] } }, "config": { "plotlyServerURL": "https://plot.ly" } }, "text/html": [ "
" ] }, "metadata": {}, "output_type": "display_data" } ], "execution_count": 61 }, { "metadata": { "ExecuteTime": { "end_time": "2025-01-20T14:00:43.132879Z", "start_time": "2025-01-20T14:00:43.091696Z" } }, "cell_type": "code", "source": [ "# visualize the study\n", "study = studies[\"LGATr_L_cos_sim\"]\n", "print(study.best_params)\n", "# Best value:\n", "print(study.best_value)\n", "optuna.visualization.plot_optimization_history(study)\n" ], "id": "fe06d322540f8aa7", "outputs": [ { "ename": "KeyError", "evalue": "'LGATr_L_cos_sim'", "output_type": "error", "traceback": [ "\u001B[0;31m---------------------------------------------------------------------------\u001B[0m", "\u001B[0;31mKeyError\u001B[0m Traceback (most recent call last)", "Cell \u001B[0;32mIn[62], line 2\u001B[0m\n\u001B[1;32m 1\u001B[0m \u001B[38;5;66;03m# visualize the study\u001B[39;00m\n\u001B[0;32m----> 2\u001B[0m study \u001B[38;5;241m=\u001B[39m \u001B[43mstudies\u001B[49m\u001B[43m[\u001B[49m\u001B[38;5;124;43m\"\u001B[39;49m\u001B[38;5;124;43mLGATr_L_cos_sim\u001B[39;49m\u001B[38;5;124;43m\"\u001B[39;49m\u001B[43m]\u001B[49m\n\u001B[1;32m 3\u001B[0m \u001B[38;5;28mprint\u001B[39m(study\u001B[38;5;241m.\u001B[39mbest_params)\n\u001B[1;32m 4\u001B[0m \u001B[38;5;66;03m# Best value:\u001B[39;00m\n", "\u001B[0;31mKeyError\u001B[0m: 'LGATr_L_cos_sim'" ] } ], "execution_count": 62 }, { "metadata": { "ExecuteTime": { "end_time": "2025-01-20T14:00:47.873330Z", "start_time": "2025-01-20T14:00:47.851270Z" } }, "cell_type": "code", "source": [ "# visualize the study\n", "study = studies[\"LGATr_cos_sim\"]\n", "print(study.best_params)\n", "# Best value:\n", "print(study.best_value)\n", "optuna.visualization.plot_optimization_history(study)\n" ], "id": "ce72217e1d2486e", "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "{'min_cluster_size': 9, 'min_samples': 2, 'epsilon': 0.291086113355078}\n", "0.3893832582148773\n" ] }, { "data": { "application/vnd.plotly.v1+json": { "data": [ { "mode": "markers", "name": "Objective Value", "x": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 26, 27 ], "y": [ 0.3893832582148773, 0.035740442361212835, 0.17813146299793184, 0.0235491181397182, 0.21915648403626328, 0.017705242334322455, 0.12193986782090666, 0.04383615021187473, 0.08281770585435508, 0.037333854573885855, 0.012108580219343953, 0.35401672826298386, 0.35401672826298386, 0.35401672826298386, 0.3849649541708388, 0.14311960316002204, 0.1477340420657105, 0.1477340420657105, 0.20768789443488242, 0.20768789443488242, 0.2735049938893337, 0.11591227251516566, 0.35401672826298386, 0.35401672826298386, 0.29263420724094885, 0.15145702018817941, 0.3009427720807145 ], "type": "scatter" }, { "mode": "lines", "name": "Best Value", "x": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28 ], "y": [ 0.3893832582148773, 0.3893832582148773, 0.3893832582148773, 0.3893832582148773, 0.3893832582148773, 0.3893832582148773, 0.3893832582148773, 0.3893832582148773, 0.3893832582148773, 0.3893832582148773, 0.3893832582148773, 0.3893832582148773, 0.3893832582148773, 0.3893832582148773, 0.3893832582148773, 0.3893832582148773, 0.3893832582148773, 0.3893832582148773, 0.3893832582148773, 0.3893832582148773, 0.3893832582148773, 0.3893832582148773, 0.3893832582148773, 0.3893832582148773, 0.3893832582148773, 0.3893832582148773, 0.3893832582148773, 0.3893832582148773, 0.3893832582148773 ], "type": "scatter" }, { "marker": { "color": "#cccccc" }, "mode": "markers", "name": "Infeasible Trial", "showlegend": false, "x": [], "y": [], "type": "scatter" } ], "layout": { "title": { "text": "Optimization History Plot" }, "xaxis": { "title": { "text": "Trial" } }, "yaxis": { "title": { "text": "Objective Value" } }, "template": { "data": { "histogram2dcontour": [ { "type": "histogram2dcontour", "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ] } ], "choropleth": [ { "type": "choropleth", "colorbar": { "outlinewidth": 0, "ticks": "" } } ], "histogram2d": [ { "type": "histogram2d", "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ] } ], "heatmap": [ { "type": "heatmap", "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ] } ], "heatmapgl": [ { "type": "heatmapgl", "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ] } ], "contourcarpet": [ { "type": "contourcarpet", "colorbar": { "outlinewidth": 0, "ticks": "" } } ], "contour": [ { "type": "contour", "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ] } ], "surface": [ { "type": "surface", "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ] } ], "mesh3d": [ { "type": "mesh3d", "colorbar": { "outlinewidth": 0, "ticks": "" } } ], "scatter": [ { "fillpattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 }, "type": "scatter" } ], "parcoords": [ { "type": "parcoords", "line": { "colorbar": { "outlinewidth": 0, "ticks": "" } } } ], "scatterpolargl": [ { "type": "scatterpolargl", "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } } } ], "bar": [ { "error_x": { "color": "#2a3f5f" }, "error_y": { "color": "#2a3f5f" }, "marker": { "line": { "color": "#E5ECF6", "width": 0.5 }, "pattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 } }, "type": "bar" } ], "scattergeo": [ { "type": "scattergeo", "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } } } ], "scatterpolar": [ { "type": "scatterpolar", "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } } } ], "histogram": [ { "marker": { "pattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 } }, "type": "histogram" } ], "scattergl": [ { "type": "scattergl", "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } } } ], "scatter3d": [ { "type": "scatter3d", "line": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } } } ], "scattermapbox": [ { "type": "scattermapbox", "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } } } ], "scatterternary": [ { "type": "scatterternary", "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } } } ], "scattercarpet": [ { "type": "scattercarpet", "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } } } ], "carpet": [ { "aaxis": { "endlinecolor": "#2a3f5f", "gridcolor": "white", "linecolor": "white", "minorgridcolor": "white", "startlinecolor": "#2a3f5f" }, "baxis": { "endlinecolor": "#2a3f5f", "gridcolor": "white", "linecolor": "white", "minorgridcolor": "white", "startlinecolor": "#2a3f5f" }, "type": "carpet" } ], "table": [ { "cells": { "fill": { "color": "#EBF0F8" }, "line": { "color": "white" } }, "header": { "fill": { "color": "#C8D4E3" }, "line": { "color": "white" } }, "type": "table" } ], "barpolar": [ { "marker": { "line": { "color": "#E5ECF6", "width": 0.5 }, "pattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 } }, "type": "barpolar" } ], "pie": [ { "automargin": true, "type": "pie" } ] }, "layout": { "autotypenumbers": "strict", "colorway": [ "#636efa", "#EF553B", "#00cc96", "#ab63fa", "#FFA15A", "#19d3f3", "#FF6692", "#B6E880", "#FF97FF", "#FECB52" ], "font": { "color": "#2a3f5f" }, "hovermode": "closest", "hoverlabel": { "align": "left" }, "paper_bgcolor": "white", "plot_bgcolor": "#E5ECF6", "polar": { "bgcolor": "#E5ECF6", "angularaxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" }, "radialaxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" } }, "ternary": { "bgcolor": "#E5ECF6", "aaxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" }, "baxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" }, "caxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" } }, "coloraxis": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "colorscale": { "sequential": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "sequentialminus": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "diverging": [ [ 0, "#8e0152" ], [ 0.1, "#c51b7d" ], [ 0.2, "#de77ae" ], [ 0.3, "#f1b6da" ], [ 0.4, "#fde0ef" ], [ 0.5, "#f7f7f7" ], [ 0.6, "#e6f5d0" ], [ 0.7, "#b8e186" ], [ 0.8, "#7fbc41" ], [ 0.9, "#4d9221" ], [ 1, "#276419" ] ] }, "xaxis": { "gridcolor": "white", "linecolor": "white", "ticks": "", "title": { "standoff": 15 }, "zerolinecolor": "white", "automargin": true, "zerolinewidth": 2 }, "yaxis": { "gridcolor": "white", "linecolor": "white", "ticks": "", "title": { "standoff": 15 }, "zerolinecolor": "white", "automargin": true, "zerolinewidth": 2 }, "scene": { "xaxis": { "backgroundcolor": "#E5ECF6", "gridcolor": "white", "linecolor": "white", "showbackground": true, "ticks": "", "zerolinecolor": "white", "gridwidth": 2 }, "yaxis": { "backgroundcolor": "#E5ECF6", "gridcolor": "white", "linecolor": "white", "showbackground": true, "ticks": "", "zerolinecolor": "white", "gridwidth": 2 }, "zaxis": { "backgroundcolor": "#E5ECF6", "gridcolor": "white", "linecolor": "white", "showbackground": true, "ticks": "", "zerolinecolor": "white", "gridwidth": 2 } }, "shapedefaults": { "line": { "color": "#2a3f5f" } }, "annotationdefaults": { "arrowcolor": "#2a3f5f", "arrowhead": 0, "arrowwidth": 1 }, "geo": { "bgcolor": "white", "landcolor": "#E5ECF6", "subunitcolor": "white", "showland": true, "showlakes": true, "lakecolor": "white" }, "title": { "x": 0.05 }, "mapbox": { "style": "light" } } } }, "config": { "plotlyServerURL": "https://plot.ly" } }, "text/html": [ "
" ] }, "metadata": {}, "output_type": "display_data" } ], "execution_count": 63 }, { "metadata": { "ExecuteTime": { "end_time": "2025-01-20T14:00:48.152022Z", "start_time": "2025-01-20T14:00:48.114242Z" } }, "cell_type": "code", "source": [ "# visualize the study\n", "study = studies[\"LGATr_qd_norm\"]\n", "print(study.best_params)\n", "# Best value:\n", "print(study.best_value)\n", "optuna.visualization.plot_optimization_history(study)\n" ], "id": "9d31914104d982bd", "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "{'min_cluster_size': 8, 'min_samples': 3, 'epsilon': 0.09454847291075721}\n", "0.7531938948558508\n" ] }, { "data": { "application/vnd.plotly.v1+json": { "data": [ { "mode": "markers", "name": "Objective Value", "x": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 182, 184, 185, 186, 188, 189, 190, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 206, 207, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235 ], "y": [ 0.7281221513217867, 0.5625920471281296, 0.6974308812106216, 0.6192373363688104, 0.713149811981514, 0.7205494224820502, 0.32300611389709416, 0.6176796573106071, 0.656228847229171, 0.7056665424632406, 0.7044825996773451, 0.7342309215364597, 0.35713080168776373, 0.7159283154121865, 0.6859764013501428, 0.33129463217958793, 0.36762928139691065, 0.7126640045636051, 0.6859800127086823, 0.6813913043478261, 0.6813913043478261, 0.6828703033112199, 0.6846372111876773, 0.6813913043478261, 0.6914459700120642, 0.7011836011207044, 0.7383534875817734, 0.7354879018516414, 0.7383534875817734, 0.7376607158062044, 0.7372302107263393, 0.7097380945595485, 0.737762138539686, 0.7398951989803144, 0.737753306465346, 0.738625417870701, 0.7399099328745009, 0.7369287539029237, 0.7398618033529679, 0.7394004707750773, 0.7386789240721826, 0.7382432240669788, 0.735386799148332, 0.7305430057113631, 0.7247219846022241, 0.7316990029258871, 0.7371736662883087, 0.7325007096224807, 0.7319815982279774, 0.7318375461516615, 0.7345085015186352, 0.7352072685973878, 0.7321042449072493, 0.7304189435336976, 0.7239775094899678, 0.7303828091646507, 0.7269202258082911, 0.6834905111188729, 0.7462323635027003, 0.6310361273399309, 0.7385459999434022, 0.7384894020431843, 0.7442426989207717, 0.7494838070994201, 0.7484374558104019, 0.7467429477738756, 0.7458299113590666, 0.7493567813622097, 0.7455550829434284, 0.7497524962520861, 0.7499929288643755, 0.7336520402936657, 0.7395883605393896, 0.7456195066628862, 0.7428279560738912, 0.7446820579726587, 0.4600645161290323, 0.7427631765473052, 0.7483633271928581, 0.7472808337829779, 0.7473051174401453, 0.7476105391531239, 0.7409124314545763, 0.7471098674354844, 0.7480065599728553, 0.7517264802445376, 0.7471098674354844, 0.746030388551555, 0.7446315729276871, 0.7475860502101556, 0.7472164478742488, 0.7475017793594305, 0.7467288656274889, 0.7513940388915621, 0.7514529142921625, 0.7481697147864431, 0.7511572767302699, 0.7292852087756547, 0.751079624036806, 0.7499505942802293, 0.7499717673630718, 0.7295023931575518, 0.7498588368153586, 0.7500917431192661, 0.7499788285109386, 0.751093428144135, 0.7476941302569599, 0.7497459062676454, 0.7519013013351361, 0.7519576361895104, 0.7520117457718045, 0.7519576361895104, 0.7520630897056753, 0.7517153748411689, 0.7518801228065234, 0.7517153748411689, 0.7519128151557074, 0.747715220579939, 0.7515812062344702, 0.7518449664807616, 0.7502743464925856, 0.7518877493519667, 0.7497046413502109, 0.7518170037748607, 0.747994483069215, 0.7515708207714632, 0.7493952860437644, 0.7513033676201213, 0.7513809040694397, 0.7513173838306987, 0.7512893498294958, 0.7511485667578003, 0.7514301011638065, 0.7511837655016911, 0.7512965050732808, 0.7497605229052797, 0.7499154357875746, 0.7507253725457056, 0.7500493305144468, 0.7481337502464859, 0.7490486794261071, 0.7397299057218085, 0.7424499491007804, 0.7484607128735242, 0.7490697936633217, 0.7404052983131438, 0.7481337502464859, 0.7481900898616862, 0.7512263884973217, 0.7484111515973222, 0.7486162882638654, 0.7511842995713964, 0.7486374290474712, 0.7513675069080246, 0.751205209889769, 0.3512135427289415, 0.7518678282443825, 0.750662531716944, 0.7518818189506921, 0.7489157983666572, 0.746129242265561, 0.7518890267283185, 0.7502251238180999, 0.7479436619718309, 0.7478795051709075, 0.7503447499507501, 0.37595190380761523, 0.39262335936202025, 0.7479436619718309, 0.7514562008708929, 0.7501829028082616, 0.7515127523610247, 0.7515134370579915, 0.7514208963664639, 0.7518516424492565, 0.7517878847838991, 0.7515199502304669, 0.7515905556341016, 0.7517013526106232, 0.4716950736218063, 0.7490566573041677, 0.4988451194431261, 0.46786549988780973, 0.7504229164317131, 0.752496473906911, 0.7170317900088543, 0.752080336238752, 0.7518371961560203, 0.7113963771216658, 0.7523422508183768, 0.7522433545911168, 0.7196824762285486, 0.7529890613075553, 0.7526577697353539, 0.7531938948558508, 0.7529185629081041, 0.7512148265340716, 0.7518394271699601, 0.7512288829877395, 0.7501201209688815, 0.7498728166864508, 0.7486226089904785, 0.7513824624760185, 0.7504087500704741, 0.7503875968992247, 0.7517478574650429, 0.751113617141246, 0.7511067249400818, 0.7516221858601817, 0.7498091549096665, 0.7499363885669051, 0.7505216263463599, 0.7508495695514272, 0.39929504871479404, 0.6091800896209277, 0.7503381424706943, 0.7521685254027262, 0.7515295046378528, 0.7519945871275128, 0.7513496707086125, 0.7511023176936124, 0.7523220688292256, 0.7524562394127612, 0.7522583559168925, 0.7520203447301497, 0.7410363075529898 ], "type": "scatter" }, { "mode": "lines", "name": "Best Value", "x": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238 ], "y": [ 0.7281221513217867, 0.7281221513217867, 0.7281221513217867, 0.7281221513217867, 0.7281221513217867, 0.7281221513217867, 0.7281221513217867, 0.7281221513217867, 0.7281221513217867, 0.7281221513217867, 0.7281221513217867, 0.7342309215364597, 0.7342309215364597, 0.7342309215364597, 0.7342309215364597, 0.7342309215364597, 0.7342309215364597, 0.7342309215364597, 0.7342309215364597, 0.7342309215364597, 0.7342309215364597, 0.7342309215364597, 0.7342309215364597, 0.7342309215364597, 0.7342309215364597, 0.7342309215364597, 0.7383534875817734, 0.7383534875817734, 0.7383534875817734, 0.7383534875817734, 0.7383534875817734, 0.7383534875817734, 0.7383534875817734, 0.7398951989803144, 0.7398951989803144, 0.7398951989803144, 0.7399099328745009, 0.7399099328745009, 0.7399099328745009, 0.7399099328745009, 0.7399099328745009, 0.7399099328745009, 0.7399099328745009, 0.7399099328745009, 0.7399099328745009, 0.7399099328745009, 0.7399099328745009, 0.7399099328745009, 0.7399099328745009, 0.7399099328745009, 0.7399099328745009, 0.7399099328745009, 0.7399099328745009, 0.7399099328745009, 0.7399099328745009, 0.7399099328745009, 0.7399099328745009, 0.7399099328745009, 0.7462323635027003, 0.7462323635027003, 0.7462323635027003, 0.7462323635027003, 0.7462323635027003, 0.7494838070994201, 0.7494838070994201, 0.7494838070994201, 0.7494838070994201, 0.7494838070994201, 0.7494838070994201, 0.7497524962520861, 0.7499929288643755, 0.7499929288643755, 0.7499929288643755, 0.7499929288643755, 0.7499929288643755, 0.7499929288643755, 0.7499929288643755, 0.7499929288643755, 0.7499929288643755, 0.7499929288643755, 0.7499929288643755, 0.7499929288643755, 0.7499929288643755, 0.7499929288643755, 0.7499929288643755, 0.7517264802445376, 0.7517264802445376, 0.7517264802445376, 0.7517264802445376, 0.7517264802445376, 0.7517264802445376, 0.7517264802445376, 0.7517264802445376, 0.7517264802445376, 0.7517264802445376, 0.7517264802445376, 0.7517264802445376, 0.7517264802445376, 0.7517264802445376, 0.7517264802445376, 0.7517264802445376, 0.7517264802445376, 0.7517264802445376, 0.7517264802445376, 0.7517264802445376, 0.7517264802445376, 0.7517264802445376, 0.7517264802445376, 0.7519013013351361, 0.7519576361895104, 0.7520117457718045, 0.7520117457718045, 0.7520630897056753, 0.7520630897056753, 0.7520630897056753, 0.7520630897056753, 0.7520630897056753, 0.7520630897056753, 0.7520630897056753, 0.7520630897056753, 0.7520630897056753, 0.7520630897056753, 0.7520630897056753, 0.7520630897056753, 0.7520630897056753, 0.7520630897056753, 0.7520630897056753, 0.7520630897056753, 0.7520630897056753, 0.7520630897056753, 0.7520630897056753, 0.7520630897056753, 0.7520630897056753, 0.7520630897056753, 0.7520630897056753, 0.7520630897056753, 0.7520630897056753, 0.7520630897056753, 0.7520630897056753, 0.7520630897056753, 0.7520630897056753, 0.7520630897056753, 0.7520630897056753, 0.7520630897056753, 0.7520630897056753, 0.7520630897056753, 0.7520630897056753, 0.7520630897056753, 0.7520630897056753, 0.7520630897056753, 0.7520630897056753, 0.7520630897056753, 0.7520630897056753, 0.7520630897056753, 0.7520630897056753, 0.7520630897056753, 0.7520630897056753, 0.7520630897056753, 0.7520630897056753, 0.7520630897056753, 0.7520630897056753, 0.7520630897056753, 0.7520630897056753, 0.7520630897056753, 0.7520630897056753, 0.7520630897056753, 0.7520630897056753, 0.7520630897056753, 0.7520630897056753, 0.7520630897056753, 0.7520630897056753, 0.7520630897056753, 0.7520630897056753, 0.7520630897056753, 0.7520630897056753, 0.7520630897056753, 0.7520630897056753, 0.7520630897056753, 0.7520630897056753, 0.7520630897056753, 0.7520630897056753, 0.7520630897056753, 0.7520630897056753, 0.7520630897056753, 0.7520630897056753, 0.7520630897056753, 0.7520630897056753, 0.7520630897056753, 0.752496473906911, 0.752496473906911, 0.752496473906911, 0.752496473906911, 0.752496473906911, 0.752496473906911, 0.752496473906911, 0.752496473906911, 0.752496473906911, 0.7529890613075553, 0.7529890613075553, 0.7531938948558508, 0.7531938948558508, 0.7531938948558508, 0.7531938948558508, 0.7531938948558508, 0.7531938948558508, 0.7531938948558508, 0.7531938948558508, 0.7531938948558508, 0.7531938948558508, 0.7531938948558508, 0.7531938948558508, 0.7531938948558508, 0.7531938948558508, 0.7531938948558508, 0.7531938948558508, 0.7531938948558508, 0.7531938948558508, 0.7531938948558508, 0.7531938948558508, 0.7531938948558508, 0.7531938948558508, 0.7531938948558508, 0.7531938948558508, 0.7531938948558508, 0.7531938948558508, 0.7531938948558508, 0.7531938948558508, 0.7531938948558508, 0.7531938948558508, 0.7531938948558508, 0.7531938948558508, 0.7531938948558508, 0.7531938948558508, 0.7531938948558508, 0.7531938948558508, 0.7531938948558508, 0.7531938948558508, 0.7531938948558508, 0.7531938948558508 ], "type": "scatter" }, { "marker": { "color": "#cccccc" }, "mode": "markers", "name": "Infeasible Trial", "showlegend": false, "x": [], "y": [], "type": "scatter" } ], "layout": { "title": { "text": "Optimization History Plot" }, "xaxis": { "title": { "text": "Trial" } }, "yaxis": { "title": { "text": "Objective Value" } }, "template": { "data": { "histogram2dcontour": [ { "type": "histogram2dcontour", "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ] } ], "choropleth": [ { "type": "choropleth", "colorbar": { "outlinewidth": 0, "ticks": "" } } ], "histogram2d": [ { "type": "histogram2d", "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ] } ], "heatmap": [ { "type": "heatmap", "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ] } ], "heatmapgl": [ { "type": "heatmapgl", "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ] } ], "contourcarpet": [ { "type": "contourcarpet", "colorbar": { "outlinewidth": 0, "ticks": "" } } ], "contour": [ { "type": "contour", "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ] } ], "surface": [ { "type": "surface", "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ] } ], "mesh3d": [ { "type": "mesh3d", "colorbar": { "outlinewidth": 0, "ticks": "" } } ], "scatter": [ { "fillpattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 }, "type": "scatter" } ], "parcoords": [ { "type": "parcoords", "line": { "colorbar": { "outlinewidth": 0, "ticks": "" } } } ], "scatterpolargl": [ { "type": "scatterpolargl", "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } } } ], "bar": [ { "error_x": { "color": "#2a3f5f" }, "error_y": { "color": "#2a3f5f" }, "marker": { "line": { "color": "#E5ECF6", "width": 0.5 }, "pattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 } }, "type": "bar" } ], "scattergeo": [ { "type": "scattergeo", "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } } } ], "scatterpolar": [ { "type": "scatterpolar", "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } } } ], "histogram": [ { "marker": { "pattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 } }, "type": "histogram" } ], "scattergl": [ { "type": "scattergl", "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } } } ], "scatter3d": [ { "type": "scatter3d", "line": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } } } ], "scattermapbox": [ { "type": "scattermapbox", "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } } } ], "scatterternary": [ { "type": "scatterternary", "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } } } ], "scattercarpet": [ { "type": "scattercarpet", "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } } } ], "carpet": [ { "aaxis": { "endlinecolor": "#2a3f5f", "gridcolor": "white", "linecolor": "white", "minorgridcolor": "white", "startlinecolor": "#2a3f5f" }, "baxis": { "endlinecolor": "#2a3f5f", "gridcolor": "white", "linecolor": "white", "minorgridcolor": "white", "startlinecolor": "#2a3f5f" }, "type": "carpet" } ], "table": [ { "cells": { "fill": { "color": "#EBF0F8" }, "line": { "color": "white" } }, "header": { "fill": { "color": "#C8D4E3" }, "line": { "color": "white" } }, "type": "table" } ], "barpolar": [ { "marker": { "line": { "color": "#E5ECF6", "width": 0.5 }, "pattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 } }, "type": "barpolar" } ], "pie": [ { "automargin": true, "type": "pie" } ] }, "layout": { "autotypenumbers": "strict", "colorway": [ "#636efa", "#EF553B", "#00cc96", "#ab63fa", "#FFA15A", "#19d3f3", "#FF6692", "#B6E880", "#FF97FF", "#FECB52" ], "font": { "color": "#2a3f5f" }, "hovermode": "closest", "hoverlabel": { "align": "left" }, "paper_bgcolor": "white", "plot_bgcolor": "#E5ECF6", "polar": { "bgcolor": "#E5ECF6", "angularaxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" }, "radialaxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" } }, "ternary": { "bgcolor": "#E5ECF6", "aaxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" }, "baxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" }, "caxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" } }, "coloraxis": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "colorscale": { "sequential": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "sequentialminus": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "diverging": [ [ 0, "#8e0152" ], [ 0.1, "#c51b7d" ], [ 0.2, "#de77ae" ], [ 0.3, "#f1b6da" ], [ 0.4, "#fde0ef" ], [ 0.5, "#f7f7f7" ], [ 0.6, "#e6f5d0" ], [ 0.7, "#b8e186" ], [ 0.8, "#7fbc41" ], [ 0.9, "#4d9221" ], [ 1, "#276419" ] ] }, "xaxis": { "gridcolor": "white", "linecolor": "white", "ticks": "", "title": { "standoff": 15 }, "zerolinecolor": "white", "automargin": true, "zerolinewidth": 2 }, "yaxis": { "gridcolor": "white", "linecolor": "white", "ticks": "", "title": { "standoff": 15 }, "zerolinecolor": "white", "automargin": true, "zerolinewidth": 2 }, "scene": { "xaxis": { "backgroundcolor": "#E5ECF6", "gridcolor": "white", "linecolor": "white", "showbackground": true, "ticks": "", "zerolinecolor": "white", "gridwidth": 2 }, "yaxis": { "backgroundcolor": "#E5ECF6", "gridcolor": "white", "linecolor": "white", "showbackground": true, "ticks": "", "zerolinecolor": "white", "gridwidth": 2 }, "zaxis": { "backgroundcolor": "#E5ECF6", "gridcolor": "white", "linecolor": "white", "showbackground": true, "ticks": "", "zerolinecolor": "white", "gridwidth": 2 } }, "shapedefaults": { "line": { "color": "#2a3f5f" } }, "annotationdefaults": { "arrowcolor": "#2a3f5f", "arrowhead": 0, "arrowwidth": 1 }, "geo": { "bgcolor": "white", "landcolor": "#E5ECF6", "subunitcolor": "white", "showland": true, "showlakes": true, "lakecolor": "white" }, "title": { "x": 0.05 }, "mapbox": { "style": "light" } } } }, "config": { "plotlyServerURL": "https://plot.ly" } }, "text/html": [ "
" ] }, "metadata": {}, "output_type": "display_data" } ], "execution_count": 64 }, { "metadata": { "ExecuteTime": { "end_time": "2025-01-21T09:42:08.901011Z", "start_time": "2025-01-21T09:42:08.853074Z" } }, "cell_type": "code", "source": [ "\n", "# Visualize the study\n", "study = studies[\"lgatr_no_coords_loss\"]\n", "print(study.best_params)\n", "# best value:\n", "print(study.best_value)\n", "suffix = \"{}-{}-{}\".format(study.best_params[\"min_cluster_size\"], study.best_params[\"min_samples\"], study.best_params[\"epsilon\"])\n", "print(suffix)\n", "optuna.visualization.plot_optimization_history(study)\n" ], "id": "bc127cb3f4324232", "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "{'min_cluster_size': 5, 'min_samples': 19, 'epsilon': 0.17149658495077644}\n", "0.7360948769849189\n", "5-19-0.17149658495077644\n" ] }, { "data": { "application/vnd.plotly.v1+json": { "data": [ { "mode": "markers", "name": "Objective Value", "x": [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 100 ], "y": [ 0.7265052337354897, 0.7298445743618994, 0.7309347564124635, 0.7345016554401188, 0.7289177193581428, 0.7352278881509563, 0.7279573266394729, 0.7356570809701598, 0.7239190797302657, 0.7331905781584582, 0.7344292133553268, 0.7296147211040828, 0.7349579592418412, 0.7345777373093558, 0.7011484176382922, 0.695823780363932, 0.7356210454312261, 0.7232410611303345, 0.7318376375283675, 0.7318376375283675, 0.6956672243696994, 0.6956672243696994, 0.7326017820817694, 0.730130855945165, 0.7287958115183245, 0.7287958115183245, 0.734475496613353, 0.734806629834254, 0.7357474571925127, 0.7355033289705799, 0.7345809322759171, 0.7345809322759171, 0.7345809322759171, 0.7326026146029572, 0.7251100817750328, 0.7297120232432278, 0.7273505248744866, 0.7356904755121227, 0.7356904755121227, 0.7349829351535836, 0.7349829351535836, 0.735201251600057, 0.735201251600057, 0.7328443913809768, 0.732980117358856, 0.7216677628756899, 0.7331156556109297, 0.7331519404267506, 0.732980117358856, 0.7330716107401781, 0.7342747111681642, 0.7342747111681642, 0.7342747111681642, 0.7342747111681642, 0.7350925291295407, 0.7350925291295407, 0.735061236115067, 0.7351607290567329, 0.7350753711566409, 0.7298580927434444, 0.7355033289705799, 0.7355033289705799, 0.7290497946908796, 0.7291178766588603, 0.7360948769849189, 0.7354316341658114, 0.7357474571925127, 0.7356223664730669, 0.7357474571925127, 0.7357474571925127, 0.7357474571925127, 0.7357474571925127, 0.7343149260957481, 0.7343149260957481, 0.7349627812794113, 0.7343149260957481, 0.7343149260957481, 0.7349627812794113, 0.7343149260957481, 0.7143019425195956, 0.7349033472087587, 0.735061236115067, 0.734806629834254, 0.7317169998582165, 0.7343176581036102, 0.7340310562539105, 0.7356223664730669, 0.7356223664730669, 0.7356223664730669, 0.7353912746326461, 0.7357973990417522, 0.7339753665018718, 0.7357973990417522, 0.7357973990417522, 0.7357973990417522, 0.7342315283617951, 0.7357973990417522, 0.7357973990417522, 0.7357973990417522 ], "type": "scatter" }, { "mode": "lines", "name": "Best Value", "x": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105 ], "y": [ null, 0.7265052337354897, 0.7298445743618994, 0.7309347564124635, 0.7345016554401188, 0.7345016554401188, 0.7352278881509563, 0.7352278881509563, 0.7356570809701598, 0.7356570809701598, 0.7356570809701598, 0.7356570809701598, 0.7356570809701598, 0.7356570809701598, 0.7356570809701598, 0.7356570809701598, 0.7356570809701598, 0.7356570809701598, 0.7356570809701598, 0.7356570809701598, 0.7356570809701598, 0.7356570809701598, 0.7356570809701598, 0.7356570809701598, 0.7356570809701598, 0.7356570809701598, 0.7356570809701598, 0.7356570809701598, 0.7356570809701598, 0.7357474571925127, 0.7357474571925127, 0.7357474571925127, 0.7357474571925127, 0.7357474571925127, 0.7357474571925127, 0.7357474571925127, 0.7357474571925127, 0.7357474571925127, 0.7357474571925127, 0.7357474571925127, 0.7357474571925127, 0.7357474571925127, 0.7357474571925127, 0.7357474571925127, 0.7357474571925127, 0.7357474571925127, 0.7357474571925127, 0.7357474571925127, 0.7357474571925127, 0.7357474571925127, 0.7357474571925127, 0.7357474571925127, 0.7357474571925127, 0.7357474571925127, 0.7357474571925127, 0.7357474571925127, 0.7357474571925127, 0.7357474571925127, 0.7357474571925127, 0.7357474571925127, 0.7357474571925127, 0.7357474571925127, 0.7357474571925127, 0.7357474571925127, 0.7357474571925127, 0.7360948769849189, 0.7360948769849189, 0.7360948769849189, 0.7360948769849189, 0.7360948769849189, 0.7360948769849189, 0.7360948769849189, 0.7360948769849189, 0.7360948769849189, 0.7360948769849189, 0.7360948769849189, 0.7360948769849189, 0.7360948769849189, 0.7360948769849189, 0.7360948769849189, 0.7360948769849189, 0.7360948769849189, 0.7360948769849189, 0.7360948769849189, 0.7360948769849189, 0.7360948769849189, 0.7360948769849189, 0.7360948769849189, 0.7360948769849189, 0.7360948769849189, 0.7360948769849189, 0.7360948769849189, 0.7360948769849189, 0.7360948769849189, 0.7360948769849189, 0.7360948769849189, 0.7360948769849189, 0.7360948769849189, 0.7360948769849189, 0.7360948769849189, 0.7360948769849189, 0.7360948769849189, 0.7360948769849189, 0.7360948769849189, 0.7360948769849189, 0.7360948769849189 ], "type": "scatter" }, { "marker": { "color": "#cccccc" }, "mode": "markers", "name": "Infeasible Trial", "showlegend": false, "x": [], "y": [], "type": "scatter" } ], "layout": { "title": { "text": "Optimization History Plot" }, "xaxis": { "title": { "text": "Trial" } }, "yaxis": { "title": { "text": "Objective Value" } }, "template": { "data": { "histogram2dcontour": [ { "type": "histogram2dcontour", "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ] } ], "choropleth": [ { "type": "choropleth", "colorbar": { "outlinewidth": 0, "ticks": "" } } ], "histogram2d": [ { "type": "histogram2d", "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ] } ], "heatmap": [ { "type": "heatmap", "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ] } ], "heatmapgl": [ { "type": "heatmapgl", "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ] } ], "contourcarpet": [ { "type": "contourcarpet", "colorbar": { "outlinewidth": 0, "ticks": "" } } ], "contour": [ { "type": "contour", "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ] } ], "surface": [ { "type": "surface", "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ] } ], "mesh3d": [ { "type": "mesh3d", "colorbar": { "outlinewidth": 0, "ticks": "" } } ], "scatter": [ { "fillpattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 }, "type": "scatter" } ], "parcoords": [ { "type": "parcoords", "line": { "colorbar": { "outlinewidth": 0, "ticks": "" } } } ], "scatterpolargl": [ { "type": "scatterpolargl", "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } } } ], "bar": [ { "error_x": { "color": "#2a3f5f" }, "error_y": { "color": "#2a3f5f" }, "marker": { "line": { "color": "#E5ECF6", "width": 0.5 }, "pattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 } }, "type": "bar" } ], "scattergeo": [ { "type": "scattergeo", "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } } } ], "scatterpolar": [ { "type": "scatterpolar", "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } } } ], "histogram": [ { "marker": { "pattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 } }, "type": "histogram" } ], "scattergl": [ { "type": "scattergl", "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } } } ], "scatter3d": [ { "type": "scatter3d", "line": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } } } ], "scattermapbox": [ { "type": "scattermapbox", "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } } } ], "scatterternary": [ { "type": "scatterternary", "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } } } ], "scattercarpet": [ { "type": "scattercarpet", "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } } } ], "carpet": [ { "aaxis": { "endlinecolor": "#2a3f5f", "gridcolor": "white", "linecolor": "white", "minorgridcolor": "white", "startlinecolor": "#2a3f5f" }, "baxis": { "endlinecolor": "#2a3f5f", "gridcolor": "white", "linecolor": "white", "minorgridcolor": "white", "startlinecolor": "#2a3f5f" }, "type": "carpet" } ], "table": [ { "cells": { "fill": { "color": "#EBF0F8" }, "line": { "color": "white" } }, "header": { "fill": { "color": "#C8D4E3" }, "line": { "color": "white" } }, "type": "table" } ], "barpolar": [ { "marker": { "line": { "color": "#E5ECF6", "width": 0.5 }, "pattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 } }, "type": "barpolar" } ], "pie": [ { "automargin": true, "type": "pie" } ] }, "layout": { "autotypenumbers": "strict", "colorway": [ "#636efa", "#EF553B", "#00cc96", "#ab63fa", "#FFA15A", "#19d3f3", "#FF6692", "#B6E880", "#FF97FF", "#FECB52" ], "font": { "color": "#2a3f5f" }, "hovermode": "closest", "hoverlabel": { "align": "left" }, "paper_bgcolor": "white", "plot_bgcolor": "#E5ECF6", "polar": { "bgcolor": "#E5ECF6", "angularaxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" }, "radialaxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" } }, "ternary": { "bgcolor": "#E5ECF6", "aaxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" }, "baxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" }, "caxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" } }, "coloraxis": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "colorscale": { "sequential": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "sequentialminus": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "diverging": [ [ 0, "#8e0152" ], [ 0.1, "#c51b7d" ], [ 0.2, "#de77ae" ], [ 0.3, "#f1b6da" ], [ 0.4, "#fde0ef" ], [ 0.5, "#f7f7f7" ], [ 0.6, "#e6f5d0" ], [ 0.7, "#b8e186" ], [ 0.8, "#7fbc41" ], [ 0.9, "#4d9221" ], [ 1, "#276419" ] ] }, "xaxis": { "gridcolor": "white", "linecolor": "white", "ticks": "", "title": { "standoff": 15 }, "zerolinecolor": "white", "automargin": true, "zerolinewidth": 2 }, "yaxis": { "gridcolor": "white", "linecolor": "white", "ticks": "", "title": { "standoff": 15 }, "zerolinecolor": "white", "automargin": true, "zerolinewidth": 2 }, "scene": { "xaxis": { "backgroundcolor": "#E5ECF6", "gridcolor": "white", "linecolor": "white", "showbackground": true, "ticks": "", "zerolinecolor": "white", "gridwidth": 2 }, "yaxis": { "backgroundcolor": "#E5ECF6", "gridcolor": "white", "linecolor": "white", "showbackground": true, "ticks": "", "zerolinecolor": "white", "gridwidth": 2 }, "zaxis": { "backgroundcolor": "#E5ECF6", "gridcolor": "white", "linecolor": "white", "showbackground": true, "ticks": "", "zerolinecolor": "white", "gridwidth": 2 } }, "shapedefaults": { "line": { "color": "#2a3f5f" } }, "annotationdefaults": { "arrowcolor": "#2a3f5f", "arrowhead": 0, "arrowwidth": 1 }, "geo": { "bgcolor": "white", "landcolor": "#E5ECF6", "subunitcolor": "white", "showland": true, "showlakes": true, "lakecolor": "white" }, "title": { "x": 0.05 }, "mapbox": { "style": "light" } } } }, "config": { "plotlyServerURL": "https://plot.ly" } }, "text/html": [ "
" ] }, "metadata": {}, "output_type": "display_data" } ], "execution_count": 4 }, { "metadata": {}, "cell_type": "code", "outputs": [], "execution_count": null, "source": "", "id": "554fd6477e5feec9" }, { "metadata": {}, "cell_type": "code", "outputs": [], "execution_count": null, "source": "", "id": "f8590170a7ea9216" } ], "metadata": { "kernelspec": { "display_name": "Python 3", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 2 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython2", "version": "2.7.6" } }, "nbformat": 4, "nbformat_minor": 5 }