Skip to content

Commit d215156

Browse files
Adding revamped analytics and ruffing files
1 parent 4e8a250 commit d215156

1 file changed

Lines changed: 12 additions & 9 deletions

File tree

results/final_revised_analytics_results.ipynb

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
" We do not recompute volatility from aggregated rows\n",
3232
" We read std_delta directly as produced by the experiment pipeline\n",
3333
" Strategy ordering and colors are fixed and reused across all plots using tab10\n",
34+
" Naming Convention: All strategies must use \"[Name] candidates\" format.\n",
3435
"\"\"\"\n",
3536
"\n",
3637
"from dataclasses import dataclass\n",
@@ -63,12 +64,13 @@
6364
"# Configuration and constants\n",
6465
"# ============================================================\n",
6566
"\n",
67+
"# UPDATED: Enforced strict \"[Name] candidates\" naming for all strategies\n",
6668
"STRATEGY_ORDER = [\n",
6769
" \"low candidates\",\n",
6870
" \"high candidates\",\n",
69-
" \"mixed\",\n",
70-
" \"random\",\n",
71-
" \"folder\",\n",
71+
" \"mixed candidates\",\n",
72+
" \"random candidates\",\n",
73+
" \"folder candidates\",\n",
7274
"]\n",
7375
"\n",
7476
"TYPE_ORDER = [\"automatic\", \"expert\"]\n",
@@ -581,6 +583,7 @@
581583
" print(\"\\nLoading and combining files\")\n",
582584
"\n",
583585
" all_dfs: List[pd.DataFrame] = []\n",
586+
" # UPDATED: Mapping all inputs to strict \"[Name] candidates\" format\n",
584587
" strategy_mapping = {\n",
585588
" \"low\": \"low candidates\",\n",
586589
" \"low candidates\": \"low candidates\",\n",
@@ -590,12 +593,12 @@
590593
" \"high candidates\": \"high candidates\",\n",
591594
" \"best\": \"high candidates\",\n",
592595
" \"best candidates\": \"high candidates\",\n",
593-
" \"mixed\": \"mixed\",\n",
594-
" \"mixed candidates\": \"mixed\",\n",
595-
" \"random\": \"random\",\n",
596-
" \"random candidates\": \"random\",\n",
597-
" \"folder\": \"folder\",\n",
598-
" \"folder candidates\": \"folder\",\n",
596+
" \"mixed\": \"mixed candidates\",\n",
597+
" \"mixed candidates\": \"mixed candidates\",\n",
598+
" \"random\": \"random candidates\",\n",
599+
" \"random candidates\": \"random candidates\",\n",
600+
" \"folder\": \"folder candidates\",\n",
601+
" \"folder candidates\": \"folder candidates\",\n",
599602
" }\n",
600603
"\n",
601604
" k = float(self.config.INSERTED_LINKS_K)\n",

0 commit comments

Comments
 (0)