naos-ku commited on
Commit
9d9bd3c
·
1 Parent(s): 8f21869

re-generated dataset

Browse files
README.md CHANGED
@@ -100,16 +100,13 @@ Positive and negative graphs are approximately balanced across splits.
100
  Node counts depend on the underlying base generator and motif size:
101
 
102
  - `ba_shapes` (Barabási–Albert, `num_edges = 2`): 8–20 nodes.
 
103
  - `tree_cycle` (Prüfer trees + 6-cycle motif): 8–21 nodes.
 
104
  - `tree_grid` (Prüfer trees + 3×3 grid motif): 8–24 nodes.
 
105
 
106
- Observed frequencies across the full 2,000-example splits for each subset are shown in the per-subset histograms:
107
-
108
- ![BA shapes node counts](fig/ba_shapes/node_count_hist.pdf)
109
-
110
- ![Tree cycle node counts](fig/tree_cycle/node_count_hist.pdf)
111
-
112
- ![Tree grid node counts](fig/tree_grid/node_count_hist.pdf)
113
 
114
  ## Data Creation
115
 
 
100
  Node counts depend on the underlying base generator and motif size:
101
 
102
  - `ba_shapes` (Barabási–Albert, `num_edges = 2`): 8–20 nodes.
103
+ ![BA shapes node counts](fig/ba_shapes/node_count_hist.svg)
104
  - `tree_cycle` (Prüfer trees + 6-cycle motif): 8–21 nodes.
105
+ ![Tree cycle node counts](fig/tree_cycle/node_count_hist.svg)
106
  - `tree_grid` (Prüfer trees + 3×3 grid motif): 8–24 nodes.
107
+ ![Tree grid node counts](fig/tree_grid/node_count_hist.svg)
108
 
109
+ Observed frequencies across the full 2,000-example splits for each subset are shown in the per-subset histograms.
 
 
 
 
 
 
110
 
111
  ## Data Creation
112
 
data/ba_shapes/test.jsonl CHANGED
The diff for this file is too large to render. See raw diff
 
data/ba_shapes/train.jsonl CHANGED
The diff for this file is too large to render. See raw diff
 
data/ba_shapes/val.jsonl CHANGED
The diff for this file is too large to render. See raw diff
 
data/tree_cycle/test.jsonl CHANGED
The diff for this file is too large to render. See raw diff
 
data/tree_cycle/train.jsonl CHANGED
The diff for this file is too large to render. See raw diff
 
data/tree_cycle/val.jsonl CHANGED
The diff for this file is too large to render. See raw diff
 
data/tree_grid/test.jsonl CHANGED
The diff for this file is too large to render. See raw diff
 
data/tree_grid/train.jsonl CHANGED
The diff for this file is too large to render. See raw diff
 
data/tree_grid/val.jsonl CHANGED
The diff for this file is too large to render. See raw diff
 
fig/ba_shapes/node_count_hist.svg ADDED
fig/tree_cycle/node_count_hist.svg ADDED
fig/tree_grid/node_count_hist.svg ADDED
gen_all.sh ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ for subset in ba_shapes tree_cycle tree_grid; do
2
+ python generator.py --subset $subset
3
+ done
generator.py CHANGED
@@ -91,7 +91,7 @@ def visualize_graphs(pos_ds, neg_ds, subset: str, num_examples: int = 5):
91
  visualize_graph(neg_ds[i], filename=f"{OUT_DIR}/neg_graph_{i}.pdf")
92
  print("Saved example graph visualizations to 'fig/' directory.")
93
 
94
- plot_node_histograms(pos_ds, neg_ds, os.path.join(OUT_DIR, "node_count_hist.pdf"))
95
 
96
 
97
  def add_motif_nodes(example: Data):
 
91
  visualize_graph(neg_ds[i], filename=f"{OUT_DIR}/neg_graph_{i}.pdf")
92
  print("Saved example graph visualizations to 'fig/' directory.")
93
 
94
+ plot_node_histograms(pos_ds, neg_ds, os.path.join(OUT_DIR, "node_count_hist.svg"))
95
 
96
 
97
  def add_motif_nodes(example: Data):