Karate Club dataset for Node Classification
Zachary’s karate club is a social network of a university karate club, described in the paper “An Information Flow Model for Conflict and Fission in Small Groups” by Wayne W. Zachary. The network became a popular example of community structure in networks after its use by Michelle Girvan and Mark Newman in 2002. Official website: http://konect.cc/networks/ucidata-zachary/
Karate Club dataset statistics:
Number of Classes: 2
transform (callable, optional) – A transform that takes in a
DGLGraphobject and returns a transformed version. The
DGLGraphobject will be transformed before every access.
>>> dataset = KarateClubDataset() >>> num_classes = dataset.num_classes >>> g = dataset >>> labels = g.ndata['label']
Get graph object
idx (int) – Item index, KarateClubDataset has only one graph object
graph structure and labels.
ndata['label']: ground truth labels
- Return type