indraroy
commited on
Commit
·
96a607b
1
Parent(s):
1dac47f
path fixes
Browse files- README.md +3 -3
- isonetpp_loader.py +3 -3
README.md
CHANGED
|
@@ -78,7 +78,7 @@ import pickle
|
|
| 78 |
|
| 79 |
path = hf_hub_download(
|
| 80 |
"structlearning/isonetpp-benchmark",
|
| 81 |
-
filename="corpus/aids240k_corpus_subgraphs.pkl",
|
| 82 |
repo_type="dataset"
|
| 83 |
)
|
| 84 |
with open(path, "rb") as f:
|
|
@@ -93,14 +93,14 @@ import pickle
|
|
| 93 |
|
| 94 |
queries = pickle.load(open(
|
| 95 |
hf_hub_download("structlearning/isonetpp-benchmark",
|
| 96 |
-
filename="splits/train/train_aids240k_query_subgraphs.pkl",
|
| 97 |
repo_type="dataset"),
|
| 98 |
"rb"
|
| 99 |
))
|
| 100 |
|
| 101 |
labels = pickle.load(open(
|
| 102 |
hf_hub_download("structlearning/isonetpp-benchmark",
|
| 103 |
-
filename="splits/train/train_aids240k_rel_nx_is_subgraph_iso.pkl",
|
| 104 |
repo_type="dataset"),
|
| 105 |
"rb"
|
| 106 |
))
|
|
|
|
| 78 |
|
| 79 |
path = hf_hub_download(
|
| 80 |
"structlearning/isonetpp-benchmark",
|
| 81 |
+
filename="large_dataset/corpus/aids240k_corpus_subgraphs.pkl",
|
| 82 |
repo_type="dataset"
|
| 83 |
)
|
| 84 |
with open(path, "rb") as f:
|
|
|
|
| 93 |
|
| 94 |
queries = pickle.load(open(
|
| 95 |
hf_hub_download("structlearning/isonetpp-benchmark",
|
| 96 |
+
filename="large_dataset/splits/train/train_aids240k_query_subgraphs.pkl",
|
| 97 |
repo_type="dataset"),
|
| 98 |
"rb"
|
| 99 |
))
|
| 100 |
|
| 101 |
labels = pickle.load(open(
|
| 102 |
hf_hub_download("structlearning/isonetpp-benchmark",
|
| 103 |
+
filename="large_dataset/splits/train/train_aids240k_rel_nx_is_subgraph_iso.pkl",
|
| 104 |
repo_type="dataset"),
|
| 105 |
"rb"
|
| 106 |
))
|
isonetpp_loader.py
CHANGED
|
@@ -51,9 +51,9 @@ def _ensure_paths(
|
|
| 51 |
|
| 52 |
# Your actual saved names were like: train_aids240k_query_subgraphs.pkl (without extra underscore)
|
| 53 |
# So fix the minor formatting exactly:
|
| 54 |
-
query_fname = f"{prefix}_{dataset_name}{pairs}_query_subgraphs.pkl"
|
| 55 |
-
rel_fname = f"{prefix}_{dataset_name}{pairs}_rel_nx_is_subgraph_iso.pkl"
|
| 56 |
-
corpus_fname = f"{dataset_name}{pairs}_corpus_subgraphs.pkl"
|
| 57 |
|
| 58 |
|
| 59 |
|
|
|
|
| 51 |
|
| 52 |
# Your actual saved names were like: train_aids240k_query_subgraphs.pkl (without extra underscore)
|
| 53 |
# So fix the minor formatting exactly:
|
| 54 |
+
query_fname = f"{size_folder}/{prefix}_{dataset_name}{pairs}_query_subgraphs.pkl"
|
| 55 |
+
rel_fname = f"{size_folder}/{prefix}_{dataset_name}{pairs}_rel_nx_is_subgraph_iso.pkl"
|
| 56 |
+
corpus_fname = f"{size_folder}/{dataset_name}{pairs}_corpus_subgraphs.pkl"
|
| 57 |
|
| 58 |
|
| 59 |
|