Skip to content

Commit 8f19851

Browse files
Max HornPseudomanifold
Max Horn
authored andcommitted
Added synthetic data
1 parent bee6749 commit 8f19851

File tree

6 files changed

+4
-0
lines changed

6 files changed

+4
-0
lines changed

data/SYNTHETIC/Cycles_3/graphs.txt

1.14 MB
Binary file not shown.

data/SYNTHETIC/Cycles_3/labels.pt

8.55 KB
Binary file not shown.
431 Bytes
Binary file not shown.
431 Bytes
Binary file not shown.
Binary file not shown.

data/SYNTHETIC/datagen.py

+4
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
import pickle
55
import argparse
66
from tadasets.dimension import embed
7+
import os
8+
import pathlib
79

810
def generate_noCycles(Nsamples,d, **kwargs):
911
"""
@@ -213,6 +215,8 @@ def generate_cycles(Nsamples,d, min_cycle = 3,**kwargs):
213215
x_list += [x]
214216
edge_list += [edge_index]
215217

218+
219+
os.makedirs(f"./Cycles_{min_cycle}/", exist_ok=True)
216220

217221
with open(f"./Cycles_{min_cycle}/graphs.txt", "wb") as fp:
218222
pickle.dump([x_list, edge_list], fp)

0 commit comments

Comments
 (0)