Datasets:
x listlengths 6 64 | edge_index listlengths 2 2 | graph stringclasses 8
values | domain stringclasses 3
values | center int64 10 169k | pairs listlengths 6 64 | labels listlengths 6 64 |
|---|---|---|---|---|---|---|
[
[
2.239924430847168,
2.785067319869995,
-0.5454692244529724,
-1.088472604751587,
-1.46379816532135,
-0.8379843235015869,
0.7695873975753784,
-3.32000732421875,
-3.405988931655884,
-1.9018809795379639,
0.3884795010089874,
0.12476115673780441,
-0.41883429884910583,
... | [
[
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
2,
2,
2,
2,
3,
3,
3,
3,
3,
3,
4,
4,
4,
5,
5,
5,
5,
5,
5,... | pubmed | citation | 8,981 | [
[
5,
57
],
[
10,
24
],
[
3,
8
],
[
3,
42
],
[
0,
10
],
[
11,
20
],
[
15,
29
],
[
1,
55
],
[
4,
8
],
[
9,
30
],
[
5,
40
],
[
5,
8
],
[
7,
62
],
[
44,
58
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
[
0.9706634283065796,
-0.9067411422729492,
4.486965656280518,
0.6296483278274536,
-0.5528001189231873,
-0.1390836238861084,
-0.5667597055435181,
0.8793005347251892,
-0.7954611778259277,
0.12902869284152985,
0.6339623332023621,
-0.24192692339420319,
-0.713448286056... | [
[
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,... | wikipedia_chameleon | page_links | 1,470 | [
[
4,
9
],
[
2,
24
],
[
8,
24
],
[
4,
17
],
[
52,
60
],
[
2,
37
],
[
11,
30
],
[
1,
17
],
[
5,
30
],
[
7,
9
],
[
35,
37
],
[
8,
47
],
[
5,
24
],
[
2,
4
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... |
[[0.22982637584209442,-0.8182108998298645,0.14643961191177368,-1.7512797117233276,2.5784270763397217(...TRUNCATED) | [[0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,(...TRUNCATED) | wikics | page_links | 10,440 | [[3,16],[2,53],[5,29],[21,52],[2,37],[2,63],[37,55],[21,34],[2,33],[10,34],[12,34],[3,49],[4,29],[2,(...TRUNCATED) | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[[-1.8386633396148682,-0.43614187836647034,2.7071971893310547,-0.5997968912124634,1.4019412994384766(...TRUNCATED) | [[0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,(...TRUNCATED) | tolokers | social | 5,731 | [[1,7],[31,37],[2,62],[14,57],[21,38],[11,37],[23,63],[3,4],[13,33],[42,51],[11,36],[25,63],[9,38],[(...TRUNCATED) | [1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0(...TRUNCATED) |
[[1.0508310794830322,1.4943231344223022,1.712407112121582,1.5457508563995361,-0.14438246190547943,-0(...TRUNCATED) | [[0,0,0,0,0,0,0,1,1,1,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,(...TRUNCATED) | cora | citation | 2,424 | [[7,17],[4,23],[4,17],[4,9],[7,18],[2,7],[4,16],[11,48],[4,36],[7,26],[43,52],[7,35],[3,5],[6,8],[3,(...TRUNCATED) | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[[-0.5445353984832764,1.678249478340149,-0.6015528440475464,0.36019495129585266,0.20795072615146637,(...TRUNCATED) | [[0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,(...TRUNCATED) | ogbn_arxiv | citation | 144,592 | [[3,58],[2,23],[1,35],[15,43],[12,62],[3,57],[22,48],[34,41],[15,18],[13,40],[3,51],[18,43],[43,62],(...TRUNCATED) | [1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0(...TRUNCATED) |
[[-1.0646305084228516,-0.015165773220360279,-0.25504666566848755,-0.4364924728870392,0.0133773852139(...TRUNCATED) | [[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,(...TRUNCATED) | reddit | social | 8,959 | [[17,49],[2,39],[18,49],[24,42],[10,40],[7,25],[5,30],[2,43],[13,58],[18,47],[18,61],[0,21],[0,8],[1(...TRUNCATED) | [1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0(...TRUNCATED) |
[[-0.6936750411987305,1.1531625986099243,0.6650192737579346,1.091781497001648,0.13948746025562286,-0(...TRUNCATED) | [[0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,5,5,5,6,7,7,7,7,7,7,(...TRUNCATED) | ogbn_arxiv | citation | 128,090 | [[0,6],[10,29],[6,48],[12,14],[10,50],[1,3],[8,31],[7,48],[3,5],[6,7],[7,12],[7,37],[3,57],[10,26],[(...TRUNCATED) | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[[0.08863367140293121,2.6619436740875244,-3.347897529602051,-0.18837222456932068,-0.1378580778837204(...TRUNCATED) | [[0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,(...TRUNCATED) | wikipedia_crocodile | page_links | 2,804 | [[8,19],[5,62],[4,32],[3,52],[2,43],[10,22],[10,54],[2,44],[7,47],[1,2],[8,24],[7,22],[4,63],[10,18](...TRUNCATED) | [1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0(...TRUNCATED) |
[[0.7990526556968689,1.5899684429168701,-0.5092960596084595,-0.9482559561729431,-0.6165204048156738,(...TRUNCATED) | [[0,0,0,1,1,1,1,1,1,1,1,1,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,(...TRUNCATED) | pubmed | citation | 8,828 | [[9,19],[12,28],[3,16],[1,53],[3,25],[3,55],[3,5],[46,50],[1,45],[1,52],[3,41],[2,30],[7,21],[16,45](...TRUNCATED) | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
Khaos Link Prediction Subgraphs
Subgraphs with held-out edges for link prediction across citation, page-link and social graphs. Each sample hides some real edges and pairs them with an equal number of non-edges; a model must tell which candidate pairs are true links.
This dataset was built for the graph_link_prediction artifact of Khaos, a local-first library of pre-trained models for domain-specific tasks. It is part of the v1 release.
Sources
| Source | License | How it is used |
|---|---|---|
| Shchur et al. gnn-benchmark (Cora, CiteSeer, PubMed) | MIT (repository); data from McCallum et al. and Sen et al., research use | citation graphs |
| Open Graph Benchmark ogbn-arxiv | ODC-BY 1.0 | 169k-paper arXiv citation graph |
| WikiCS | MIT (repository), Wikipedia CC BY-SA text-derived features | hyperlinks between computer-science Wikipedia pages |
| MUSAE Wikipedia page networks (chameleon, squirrel, crocodile) | GPL-3.0 (MUSAE repository) | hyperlinks between Wikipedia articles on three topics |
| GADBench Reddit, Weibo, Tolokers via JaySuryavanshi/graph-anomaly-* | MIT (Hugging Face cards); original datasets by Kumar et al., Zhao et al. and Platonov et al. | social graphs with real anomalous accounts |
How it was built
- Same graphs and 64-column features as
graph_node_embedding. Subgraphs are ego networks of at most 64 nodes with at least 8 edges. - 15% of the edges of each subgraph (between 3 and 32) are removed from
edge_indexand become positive pairs. An equal number of random non-adjacent node pairs are the negatives. - 500 / 60 / 60 subgraphs per graph for train / validation / test from an 80/10/10 node split. The held-out graphs (citeseer, wikipedia_squirrel, weibo) give 120 each to
test_unseen_graph.
Columns
| Column | Description |
|---|---|
x |
(n, 64) float32 node features. |
edge_index |
(2, E) int32 visible edges (held-out edges removed), local ids. |
pairs |
(P, 2) int32 candidate node pairs, local ids. |
labels |
(P,) 1 for a held-out true edge, 0 for a sampled non-edge. |
graph |
Source graph. |
domain |
social, citation or page_links. |
center |
Global id of the center node. |
Splits
| Split | Rows |
|---|---|
train |
4,000 |
validation |
480 |
test |
480 |
test_unseen_graph |
360 |
Files are stored as data/<split>.parquet.
Intended use
Training and evaluating graph_link_prediction with binary cross-entropy over pairs; report AUROC and average precision, including on test_unseen_graph.
Limitations
- Negatives are uniformly random pairs, which are easier than hard negatives from real workflows.
- Within a 64-node subgraph some positives have no path left to the other endpoint after removal.
License
The sources carry different terms: ogbn-arxiv is ODC-BY 1.0, the repositories packaging Cora, CiteSeer, PubMed and WikiCS are MIT, the MUSAE Wikipedia networks are GPL-3.0, and the GADBench copies are MIT. Because of the GPL-3.0 sources, treat the combined dataset as GPL-3.0 compatible and research-use, and check upstream terms before commercial use.
- Downloads last month
- -