easygraph.datasets.hypergraph.hypergraph_dataset_base module#
- class easygraph.datasets.hypergraph.hypergraph_dataset_base.BaseData(name: str, data_root=None)[source]#
Bases:
objectThe Base Class of all datasets.
self._content = { 'item': { 'upon': [ {'filename': 'part1.pkl', 'md5': 'xxxxx',}, {'filename': 'part2.pkl', 'md5': 'xxxxx',}, ], 'loader': loader_function, 'preprocess': [datapipe1, datapipe2], }, ... }
- property content#
Return the content of the dataset.
- fetch_files(files: List[Dict[str, str]])[source]#
Download and check the files if they are not exist.
- Parameters:
files (
List[Dict[str, str]]) – The files to download, each element in the list is a dict with at lease two keys:filenameandmd5. If extra keybk_urlis provided, it will be used to download the file from the backup url.