cogdl.datasets.matlab_matrix

Module Contents

Classes

MatlabMatrix

networks from the http://leitang.net/code/social-dimension/data/ or http://snap.stanford.edu/node2vec/

BlogcatalogDataset

networks from the http://leitang.net/code/social-dimension/data/ or http://snap.stanford.edu/node2vec/

FlickrDataset

networks from the http://leitang.net/code/social-dimension/data/ or http://snap.stanford.edu/node2vec/

WikipediaDataset

networks from the http://leitang.net/code/social-dimension/data/ or http://snap.stanford.edu/node2vec/

PPIDataset

networks from the http://leitang.net/code/social-dimension/data/ or http://snap.stanford.edu/node2vec/

class cogdl.datasets.matlab_matrix.MatlabMatrix(root, name, url)[source]

Bases: cogdl.data.Dataset

networks from the http://leitang.net/code/social-dimension/data/ or http://snap.stanford.edu/node2vec/

Args:

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

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.

property processed_file_names(self)[source]

The name of the files to find in the self.processed_dir folder in order to skip the processing.

download(self)[source]

Downloads the dataset to the self.raw_dir folder.

get(self, idx)[source]

Gets the data object at index idx.

process(self)[source]

Processes the dataset to the self.processed_dir folder.

class cogdl.datasets.matlab_matrix.BlogcatalogDataset[source]

Bases: cogdl.datasets.matlab_matrix.MatlabMatrix

networks from the http://leitang.net/code/social-dimension/data/ or http://snap.stanford.edu/node2vec/

Args:

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

class cogdl.datasets.matlab_matrix.FlickrDataset[source]

Bases: cogdl.datasets.matlab_matrix.MatlabMatrix

networks from the http://leitang.net/code/social-dimension/data/ or http://snap.stanford.edu/node2vec/

Args:

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

class cogdl.datasets.matlab_matrix.WikipediaDataset[source]

Bases: cogdl.datasets.matlab_matrix.MatlabMatrix

networks from the http://leitang.net/code/social-dimension/data/ or http://snap.stanford.edu/node2vec/

Args:

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

class cogdl.datasets.matlab_matrix.PPIDataset[source]

Bases: cogdl.datasets.matlab_matrix.MatlabMatrix

networks from the http://leitang.net/code/social-dimension/data/ or http://snap.stanford.edu/node2vec/

Args:

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