indraroy
commited on
Commit
·
4c92666
1
Parent(s):
73d6f53
naming fix
Browse files- isonetpp_loader.py +6 -3
isonetpp_loader.py
CHANGED
|
@@ -47,12 +47,15 @@ def _ensure_paths(
|
|
| 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 |
|
| 51 |
# Your actual saved names were like: train_aids240k_query_subgraphs.pkl (without extra underscore)
|
| 52 |
# So fix the minor formatting exactly:
|
| 53 |
-
query_fname
|
| 54 |
-
rel_fname
|
| 55 |
-
corpus_fname = f"{dataset_name}_corpus_subgraphs.pkl"
|
|
|
|
|
|
|
| 56 |
|
| 57 |
# Where files are in repo
|
| 58 |
repo_query_path = f"splits/{mode}/{query_fname}"
|
|
|
|
| 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:
|
| 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 |
|
| 60 |
# Where files are in repo
|
| 61 |
repo_query_path = f"splits/{mode}/{query_fname}"
|