graph_node_embedding v1
Browse files- README.md +77 -0
- data/test.parquet +3 -0
- data/test_unseen_graph.parquet +3 -0
- data/train.parquet +3 -0
- data/validation.parquet +3 -0
README.md
ADDED
|
@@ -0,0 +1,77 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: other
|
| 3 |
+
pretty_name: Khaos Node Embedding Subgraphs (social, citation, page links)
|
| 4 |
+
size_categories:
|
| 5 |
+
- 1K<n<10K
|
| 6 |
+
task_categories:
|
| 7 |
+
- graph-ml
|
| 8 |
+
- feature-extraction
|
| 9 |
+
tags:
|
| 10 |
+
- khaos
|
| 11 |
+
- graph
|
| 12 |
+
- graph
|
| 13 |
+
- node-embedding
|
| 14 |
+
- social-network
|
| 15 |
+
- citation-network
|
| 16 |
+
- wikipedia
|
| 17 |
+
- self-supervised
|
| 18 |
+
---
|
| 19 |
+
|
| 20 |
+
# Khaos Node Embedding Subgraphs (social, citation, page links)
|
| 21 |
+
|
| 22 |
+
Ego-network subgraphs of up to 64 nodes cut from eleven real graphs: social media, research citations and Wikipedia page links. Used to pre-train a graph convolutional autoencoder whose node embeddings are checked by predicting node classes.
|
| 23 |
+
|
| 24 |
+
This dataset was built for the **`graph_node_embedding`** artifact of Khaos, a local-first library of pre-trained models for domain-specific tasks. It is part of the **v1** release.
|
| 25 |
+
|
| 26 |
+
## Sources
|
| 27 |
+
|
| 28 |
+
| Source | License | How it is used |
|
| 29 |
+
| --- | --- | --- |
|
| 30 |
+
| [Shchur et al. gnn-benchmark (Cora, CiteSeer, PubMed)](https://github.com/shchur/gnn-benchmark) | MIT (repository); data from McCallum et al. and Sen et al., research use | citation graphs |
|
| 31 |
+
| [Open Graph Benchmark ogbn-arxiv](https://ogb.stanford.edu/docs/nodeprop/#ogbn-arxiv) | ODC-BY 1.0 | 169k-paper arXiv citation graph |
|
| 32 |
+
| [WikiCS](https://github.com/pmernyei/wiki-cs-dataset) | MIT (repository), Wikipedia CC BY-SA text-derived features | hyperlinks between computer-science Wikipedia pages |
|
| 33 |
+
| [MUSAE Wikipedia page networks (chameleon, squirrel, crocodile)](https://snap.stanford.edu/data/wikipedia-article-networks.html) | GPL-3.0 (MUSAE repository) | hyperlinks between Wikipedia articles on three topics |
|
| 34 |
+
| [GADBench Reddit, Weibo, Tolokers via JaySuryavanshi/graph-anomaly-*](https://huggingface.co/datasets/JaySuryavanshi/graph-anomaly-reddit) | MIT (Hugging Face cards); original datasets by Kumar et al., Zhao et al. and Platonov et al. | social graphs with real anomalous accounts |
|
| 35 |
+
|
| 36 |
+
## How it was built
|
| 37 |
+
|
| 38 |
+
1. Each graph is symmetrized (undirected, no self-loops). Node features are reduced to 64 columns: 62 SVD components of the original features (padded when fewer), the log degree, and a constant.
|
| 39 |
+
2. Nodes of each graph are split 80/10/10; centers are drawn from the matching part (degree at least 2) and the subgraph is a breadth-first ego network capped at 64 nodes. Subgraphs can include nodes from other parts, so the split is by center, not by node.
|
| 40 |
+
3. 500 / 60 / 60 centers per graph for train / validation / test. citeseer, wikipedia_squirrel, weibo are never used in these splits.
|
| 41 |
+
4. `test_unseen_graph` holds 120 subgraphs from each of the three held-out graphs (citeseer, wikipedia_squirrel, weibo) to measure transfer to unseen graphs.
|
| 42 |
+
|
| 43 |
+
## Columns
|
| 44 |
+
|
| 45 |
+
| Column | Description |
|
| 46 |
+
| --- | --- |
|
| 47 |
+
| `x` | (n, 64) float32 node features, n at most 64. |
|
| 48 |
+
| `edge_index` | (2, E) int32, each undirected edge once, local node ids. |
|
| 49 |
+
| `node_class` | Per-node class from the source (-1 when it has none). |
|
| 50 |
+
| `graph` | Source graph name. |
|
| 51 |
+
| `domain` | `social`, `citation` or `page_links`. |
|
| 52 |
+
| `center` | Global id of the center node (local id 0). |
|
| 53 |
+
|
| 54 |
+
## Splits
|
| 55 |
+
|
| 56 |
+
| Split | Rows |
|
| 57 |
+
| --- | ---: |
|
| 58 |
+
| `train` | 4,000 |
|
| 59 |
+
| `validation` | 480 |
|
| 60 |
+
| `test` | 480 |
|
| 61 |
+
| `test_unseen_graph` | 360 |
|
| 62 |
+
|
| 63 |
+
Files are stored as `data/<split>.parquet`.
|
| 64 |
+
|
| 65 |
+
## Intended use
|
| 66 |
+
|
| 67 |
+
Training `graph_node_embedding` with masked-feature reconstruction, and evaluating its embeddings with a linear classifier on `node_class`.
|
| 68 |
+
|
| 69 |
+
## Limitations
|
| 70 |
+
|
| 71 |
+
- Class labels mean different things in each graph, so cross-graph class probes are not comparable.
|
| 72 |
+
- 64-node ego networks are a small window onto hub-heavy graphs; dense graphs (weibo, tolokers) are heavily truncated.
|
| 73 |
+
- Features were reduced to 64 dimensions per graph, so feature axes do not mean the same thing across graphs.
|
| 74 |
+
|
| 75 |
+
## License
|
| 76 |
+
|
| 77 |
+
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.
|
data/test.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:30697f91a430099dc842c09ee7a4de68fe5c25ddd2db48d8c7ac2500ed5a7ece
|
| 3 |
+
size 7672924
|
data/test_unseen_graph.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:89b634bd50c7a30dc3434be164f6b9eaf9991c0ce1a6842cd77ad6de7facfbcf
|
| 3 |
+
size 6000559
|
data/train.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6f5bb3b11d6abc8bdfc79e99d3456ce6c0406cada57aee134e9e544d98ae7b16
|
| 3 |
+
size 60432726
|
data/validation.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:365f10ee35b11ef60d2db459832b18267c6f411dd1a1a1546bb48b0da10371c4
|
| 3 |
+
size 7706748
|