easygraph.datasets.dynamic.email_eu module#
- class easygraph.datasets.dynamic.email_eu.Email_Eu(raw_dir=None, force_reload=False, verbose=True, transform=None, save_dir='./')[source]#
Bases:
EasyGraphDataset
- Attributes:
hash
Hash value for the dataset and the setting.
name
Name of the dataset.
raw_dir
Raw file directory contains the input data folder.
raw_path
Directory contains the input data files.
save_dir
Directory to save the processed dataset.
- save_name
save_path
Path to save the processed dataset.
url
Get url to download the raw dataset.
verbose
Whether to print information.
Methods
download
()Overwrite to realize your own logic of downloading data.
Overwrite to realize your own logic of deciding whether there exists a cached dataset.
load
()Overwrite to realize your own logic of loading the saved dataset from files.
process
()Loads input data from data directory and transfer to target graph for better analysis
save
()Overwrite to realize your own logic of saving the processed dataset into files.
- download()[source]#
Overwrite to realize your own logic of downloading data.
It is recommended to download the to the
self.raw_dir
folder. Can be ignored if the dataset is already inself.raw_dir
.
- has_cache()[source]#
Overwrite to realize your own logic of deciding whether there exists a cached dataset.
By default False.
- load()[source]#
Overwrite to realize your own logic of loading the saved dataset from files.
It is recommended to use
dgl.data.utils.load_graphs
to load dgl graph from files and usedgl.data.utils.load_info
to load extra information into python dict object.
- process()[source]#
Loads input data from data directory and transfer to target graph for better analysis
- property save_name#
- property url#
Get url to download the raw dataset.