Ace3Z commited on
Commit
8fca13a
·
verified ·
1 Parent(s): ecf48e1

Replace hardcoded paths with placeholders: compute_pooled_edge_homophily.py

Browse files
studies/homophily/paper_metrics/compute_pooled_edge_homophily.py CHANGED
@@ -5,7 +5,7 @@ paper's Appendix "Homophily of the Cell Graphs" (the "pooled edge homophily 0.76
5
  This value is NOT in tail_metrics.json (which stores only the per-graph macro-mean).
6
  It is recomputed here from the raw .pt graphs using the bundle's own pinned functions
7
  (homophily_metrics.edge_homophily + _strip_virtual_node, main_fat_tail.discover_graphs),
8
- so it matches the codebase exactly. Run on qolam in the mp_graph env.
9
  """
10
  import json, os, sys
11
  import torch
@@ -58,7 +58,7 @@ meta = {
58
  "recomputed from input_data/*.pt with the bundle's edge_homophily. "
59
  "Backs the paper's Appendix 'pooled edge homophily 0.76-0.83' (labelled datasets). "
60
  "Differs from tail_metrics.json's per-graph macro-mean (0.75-0.82).",
61
- "_reproduce": "python paper_metrics/compute_pooled_edge_homophily.py (mp_graph env, on qolam)",
62
  "_code_commit": "97e65d9 (homophily-heterophily-metrics)",
63
  "per_dataset": out,
64
  }
 
5
  This value is NOT in tail_metrics.json (which stores only the per-graph macro-mean).
6
  It is recomputed here from the raw .pt graphs using the bundle's own pinned functions
7
  (homophily_metrics.edge_homophily + _strip_virtual_node, main_fat_tail.discover_graphs),
8
+ so it matches the codebase exactly. Run on the compute cluster in the mp_graph env.
9
  """
10
  import json, os, sys
11
  import torch
 
58
  "recomputed from input_data/*.pt with the bundle's edge_homophily. "
59
  "Backs the paper's Appendix 'pooled edge homophily 0.76-0.83' (labelled datasets). "
60
  "Differs from tail_metrics.json's per-graph macro-mean (0.75-0.82).",
61
+ "_reproduce": "python paper_metrics/compute_pooled_edge_homophily.py (mp_graph env, on the compute cluster)",
62
  "_code_commit": "97e65d9 (homophily-heterophily-metrics)",
63
  "per_dataset": out,
64
  }