datasets.gatne

Module Contents

Classes

GatneDataset

The network datasets “Amazon”, “Twitter” and “YouTube” from the

AmazonDataset

The network datasets “Amazon”, “Twitter” and “YouTube” from the

TwitterDataset

The network datasets “Amazon”, “Twitter” and “YouTube” from the

YouTubeDataset

The network datasets “Amazon”, “Twitter” and “YouTube” from the

Functions

read_gatne_data(folder)

datasets.gatne.read_gatne_data(folder)[source]
class datasets.gatne.GatneDataset(root, name)[source]

Bases: cogdl.data.Dataset

The network datasets “Amazon”, “Twitter” and “YouTube” from the “Representation Learning for Attributed Multiplex Heterogeneous Network” paper.

Args:

root (string): Root directory where the dataset should be saved. name (string): The name of the dataset ("Amazon",

"Twitter", "YouTube").

url = https://github.com/THUDM/GATNE/raw/master/data[source]
property raw_file_names(self)[source]
property processed_file_names(self)[source]
get(self, idx)[source]
download(self)[source]
process(self)[source]
__repr__(self)[source]
class datasets.gatne.AmazonDataset[source]

Bases: datasets.gatne.GatneDataset

The network datasets “Amazon”, “Twitter” and “YouTube” from the “Representation Learning for Attributed Multiplex Heterogeneous Network” paper.

Args:

root (string): Root directory where the dataset should be saved. name (string): The name of the dataset ("Amazon",

"Twitter", "YouTube").

class datasets.gatne.TwitterDataset[source]

Bases: datasets.gatne.GatneDataset

The network datasets “Amazon”, “Twitter” and “YouTube” from the “Representation Learning for Attributed Multiplex Heterogeneous Network” paper.

Args:

root (string): Root directory where the dataset should be saved. name (string): The name of the dataset ("Amazon",

"Twitter", "YouTube").

class datasets.gatne.YouTubeDataset[source]

Bases: datasets.gatne.GatneDataset

The network datasets “Amazon”, “Twitter” and “YouTube” from the “Representation Learning for Attributed Multiplex Heterogeneous Network” paper.

Args:

root (string): Root directory where the dataset should be saved. name (string): The name of the dataset ("Amazon",

"Twitter", "YouTube").