Run below code on Edge_data_numpy.ipynb
"""
name = "tgbl-flight"
dataset = LinkPropPredDataset(name=name, root="datasets", preprocess=True)
type(dataset)
""""
Throw below errors even file tgbl-flight_edgelist_v2 is located in such folder
File D:\Academic\M-DAS\My Research\TGB-main\tgb\linkproppred\dataset.py:103, in LinkPropPredDataset.init(self, name, root, meta_dict, preprocess)
100 raise FileNotFoundError(f"Directory not found at {self.root}")
102 if preprocess:
--> 103 self.pre_process()
105 self.ns_sampler = NegativeEdgeSampler(
106 dataset_name=self.name, strategy="hist_rnd"
107 )
File D:\Academic\M-DAS\My Research\TGB-main\tgb\linkproppred\dataset.py:243, in LinkPropPredDataset.pre_process(self)
236 """
237 Pre-process the dataset and generates the splits, must be run before dataset properties can be accessed
238 generates the edge data and different train, val, test splits
239 """
240 # TODO for link prediction, y =1 because these are all true edges, edge feat = weight + edge feat
241242 # check if path to file is valid
--> 243 df, edge_feat, node_feat = self.generate_processed_files()
244 sources = np.array(df["u"])
245 destinations = np.array(df["i"])
...
--> 195 raise FileNotFoundError(f"File not found at {self.meta_dict['fname']}")
197 if self.meta_dict["nodefile"] is not None:
198 if not osp.exists(self.meta_dict["nodefile"]):
FileNotFoundError: File not found at D:\Academic\M-DAS\My Research\TGB-main\tgb/datasets\tgbl_flight/tgbl-flight_edgelist_v2.csv
Run below code on Edge_data_numpy.ipynb """ name = "tgbl-flight" dataset = LinkPropPredDataset(name=name, root="datasets", preprocess=True) type(dataset) """" Throw below errors even file tgbl-flight_edgelist_v2 is located in such folder
FileNotFoundError Traceback (most recent call last) Cell In[10], line 1 ----> 1 dataset = LinkPropPredDataset(name=name, root="datasets", preprocess=True) 2 type(dataset)
File D:\Academic\M-DAS\My Research\TGB-main\tgb\linkproppred\dataset.py:103, in LinkPropPredDataset.init(self, name, root, meta_dict, preprocess) 100 raise FileNotFoundError(f"Directory not found at {self.root}") 102 if preprocess: --> 103 self.pre_process() 105 self.ns_sampler = NegativeEdgeSampler( 106 dataset_name=self.name, strategy="hist_rnd" 107 )
File D:\Academic\M-DAS\My Research\TGB-main\tgb\linkproppred\dataset.py:243, in LinkPropPredDataset.pre_process(self) 236 """ 237 Pre-process the dataset and generates the splits, must be run before dataset properties can be accessed 238 generates the edge data and different train, val, test splits 239 """ 240 # TODO for link prediction, y =1 because these are all true edges, edge feat = weight + edge feat 241 242 # check if path to file is valid --> 243 df, edge_feat, node_feat = self.generate_processed_files() 244 sources = np.array(df["u"]) 245 destinations = np.array(df["i"]) ... --> 195 raise FileNotFoundError(f"File not found at {self.meta_dict['fname']}") 197 if self.meta_dict["nodefile"] is not None: 198 if not osp.exists(self.meta_dict["nodefile"]):
FileNotFoundError: File not found at D:\Academic\M-DAS\My Research\TGB-main\tgb/datasets\tgbl_flight/tgbl-flight_edgelist_v2.csv