You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
r"""The Tencent2k dataset is a social network dataset for vertex classification task.
71
+
It is a subset of TencentBiGraph dataset.
72
+
The nodes are social network users.
73
+
Nodes are connected by a hyperedge if the corresponding users join the same social communities.
74
+
75
+
The content of the Tencent2k dataset includes the following:
76
+
77
+
- ``num_classes``: The number of classes: :math:`2`.
78
+
- ``num_vertices``: The number of vertices: :math:`2,146`.
79
+
- ``num_edges``: The number of edges: :math:`6,378`.
80
+
- ``dim_features``: The dimension of features: :math:`8`.
81
+
- ``features``: The vertex feature matrix. ``torch.Tensor`` with size :math:`(2,146 \times 8)`.
82
+
- ``edge_list``: The edge list. ``List`` with length :math:`6,378`.
83
+
- ``labels``: The label list. ``torch.LongTensor`` with size :math:`(2,146, )`.
84
+
- ``train_mask``: The train mask. ``torch.BoolTensor`` with size :math:`(2,146, )`.
85
+
- ``val_mask``: The validation mask. ``torch.BoolTensor`` with size :math:`(2,146, )`.
86
+
- ``test_mask``: The test mask. ``torch.BoolTensor`` with size :math:`(2,146, )`.
87
+
88
+
Args:
89
+
``data_root`` (``str``, optional): The ``data_root`` has stored the data. If set to ``None``, this function will auto-download from server and save into the default direction ``~/.dhg/datasets/``. Defaults to ``None``.
0 commit comments