Datasets:
re-generated dataset
Browse files- README.md +4 -7
- data/ba_shapes/test.jsonl +0 -0
- data/ba_shapes/train.jsonl +0 -0
- data/ba_shapes/val.jsonl +0 -0
- data/tree_cycle/test.jsonl +0 -0
- data/tree_cycle/train.jsonl +0 -0
- data/tree_cycle/val.jsonl +0 -0
- data/tree_grid/test.jsonl +0 -0
- data/tree_grid/train.jsonl +0 -0
- data/tree_grid/val.jsonl +0 -0
- fig/ba_shapes/node_count_hist.svg +1538 -0
- fig/tree_cycle/node_count_hist.svg +1539 -0
- fig/tree_grid/node_count_hist.svg +1539 -0
- gen_all.sh +3 -0
- generator.py +1 -1
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 |
-

|
| 109 |
-
|
| 110 |
-

|
| 111 |
-
|
| 112 |
-

|
| 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 |
+

|
| 104 |
- `tree_cycle` (Prüfer trees + 6-cycle motif): 8–21 nodes.
|
| 105 |
+

|
| 106 |
- `tree_grid` (Prüfer trees + 3×3 grid motif): 8–24 nodes.
|
| 107 |
+

|
| 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.
|
| 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):
|