cogdl.datasets.gtn_data
¶
Module Contents¶
Classes¶
The network datasets “ACM”, “DBLP” and “IMDB” from the |
|
The network datasets “ACM”, “DBLP” and “IMDB” from the |
|
The network datasets “ACM”, “DBLP” and “IMDB” from the |
|
The network datasets “ACM”, “DBLP” and “IMDB” from the |
Functions¶
|
Unpacks the given archive file to the same directory, then (by default) |
-
cogdl.datasets.gtn_data.
untar
(path, fname, deleteTar=True)[source]¶ Unpacks the given archive file to the same directory, then (by default) deletes the archive file.
-
class
cogdl.datasets.gtn_data.
GTNDataset
(root, name)[source]¶ Bases:
cogdl.data.Dataset
The network datasets “ACM”, “DBLP” and “IMDB” from the “Graph Transformer Networks” paper.
- Args:
root (string): Root directory where the dataset should be saved. name (string): The name of the dataset (
"gtn-acm"
,"gtn-dblp"
,"gtn-imdb"
).
-
property
raw_file_names
(self)[source]¶ The name of the files to find in the
self.raw_dir
folder in order to skip the download.
-
class
cogdl.datasets.gtn_data.
ACM_GTNDataset
[source]¶ Bases:
cogdl.datasets.gtn_data.GTNDataset
The network datasets “ACM”, “DBLP” and “IMDB” from the “Graph Transformer Networks” paper.
- Args:
root (string): Root directory where the dataset should be saved. name (string): The name of the dataset (
"gtn-acm"
,"gtn-dblp"
,"gtn-imdb"
).
-
class
cogdl.datasets.gtn_data.
DBLP_GTNDataset
[source]¶ Bases:
cogdl.datasets.gtn_data.GTNDataset
The network datasets “ACM”, “DBLP” and “IMDB” from the “Graph Transformer Networks” paper.
- Args:
root (string): Root directory where the dataset should be saved. name (string): The name of the dataset (
"gtn-acm"
,"gtn-dblp"
,"gtn-imdb"
).
-
class
cogdl.datasets.gtn_data.
IMDB_GTNDataset
[source]¶ Bases:
cogdl.datasets.gtn_data.GTNDataset
The network datasets “ACM”, “DBLP” and “IMDB” from the “Graph Transformer Networks” paper.
- Args:
root (string): Root directory where the dataset should be saved. name (string): The name of the dataset (
"gtn-acm"
,"gtn-dblp"
,"gtn-imdb"
).