indraroy
commited on
Commit
·
0c91760
1
Parent(s):
96a607b
path fixes
Browse files- isonetpp_loader.py +2 -1
isonetpp_loader.py
CHANGED
|
@@ -43,11 +43,12 @@ def _ensure_paths(
|
|
| 43 |
|
| 44 |
# Expected layout in your dataset repo:
|
| 45 |
# corpus/<name>_corpus_subgraphs.pkl
|
| 46 |
-
# splits/<mode>/<mode>_<name>_query_subgraphs.
|
| 47 |
# splits/<mode>/<mode>_<name>_rel_nx_is_subgraph_iso.pkl
|
| 48 |
query_fname = f"{prefix}_{dataset_name}_{'query_subgraphs' if '_' in dataset_name else 'query_subgraphs'}.pkl"
|
| 49 |
rel_fname = f"{prefix}_{dataset_name}_{'rel_nx_is_subgraph_iso' if '_' in dataset_name else 'rel_nx_is_subgraph_iso'}.pkl"
|
| 50 |
pairs = "80k" if dataset_size == "small" else "240k"
|
|
|
|
| 51 |
|
| 52 |
# Your actual saved names were like: train_aids240k_query_subgraphs.pkl (without extra underscore)
|
| 53 |
# So fix the minor formatting exactly:
|
|
|
|
| 43 |
|
| 44 |
# Expected layout in your dataset repo:
|
| 45 |
# corpus/<name>_corpus_subgraphs.pkl
|
| 46 |
+
# splits/<mode>/<mode>_<name>_query_subgraphs.pkls
|
| 47 |
# splits/<mode>/<mode>_<name>_rel_nx_is_subgraph_iso.pkl
|
| 48 |
query_fname = f"{prefix}_{dataset_name}_{'query_subgraphs' if '_' in dataset_name else 'query_subgraphs'}.pkl"
|
| 49 |
rel_fname = f"{prefix}_{dataset_name}_{'rel_nx_is_subgraph_iso' if '_' in dataset_name else 'rel_nx_is_subgraph_iso'}.pkl"
|
| 50 |
pairs = "80k" if dataset_size == "small" else "240k"
|
| 51 |
+
size_folder = "small_dataset" if dataset_size == "small" else "large_dataset"
|
| 52 |
|
| 53 |
# Your actual saved names were like: train_aids240k_query_subgraphs.pkl (without extra underscore)
|
| 54 |
# So fix the minor formatting exactly:
|