Datasets:
metadata dict | network-type string | nodes list | edges list | incidences list |
|---|---|---|---|---|
{
"dataset_name": "daqh/NDC-classes"
} | undirected | [{"attrs":{"eigsh":[4.952745995945674e-6,2.2203681860033436e-6,-0.00006889722893339,-0.0000296222582(...TRUNCATED) | [{"attrs":{"eigsh":[-0.018751456793094975,4.212754795773475e-6,-0.000014199111752987417,-2.086742785(...TRUNCATED) | [{"edge":0,"node":444},{"edge":0,"node":445},{"edge":1,"node":40},{"edge":1,"node":766},{"edge":1,"n(...TRUNCATED) |
NDC-classes
Zenodo | Cornell | Source Paper
NDC-classes is an undirected hypergraph built from the U.S. FDA’s National Drug Code (NDC) Directory, designed for higher-order network / hypergraph machine learning in the drug domain. Each hyperedge corresponds to a drug and connects the set of pharmacologic/therapeutic class labels assigned to that drug, while nodes represent the class labels themselves (e.g., “serotonin reuptake inhibitor”), capturing co-classification patterns as higher-order interactions rather than pairwise links.
Usage
dataset = load_dataset("daqh/NDC-classes", split="full")
hypergraphs = [xgi.from_hif_dict(d, nodetype=int, edgetype=int) for d in dataset]
Statistics
|
|
|
|
Content
The hypergraph is stored in HIF (Hypergraph Interchange Format) as a JSON object, following the schema used to exchange higher-order network data across tools. Concretely, the dataset provides the canonical HIF fields-network-type, metadata, nodes, edges, and incidences-so you can reconstruct the full incidence structure without additional processing.
In addition to the raw hypergraph topology, vector features are provided for both nodes and hyperedges (in their attribute dictionaries), enabling out-of-the-box experimentation with representation learning and downstream tasks:
- Spectral features: eigenvectors of the (hypergraph) Laplacian (computed via sparse eigensolvers).
- Node2Vec embeddings: random-walk–based structural embeddings.
- VilLain embeddings: self-supervised hypergraph representation learning via virtual label propagation.
Basic statistics (as packaged here): 1161 nodes, 1088 hyperedges, 183 connected component, largest connected component ratio is 0.540913006029285.
Citation
@article{Benson-2018-simplicial,
author = {Benson, Austin R. and Abebe, Rediet and Schaub, Michael T. and Jadbabaie, Ali and Kleinberg, Jon},
title = {Simplicial closure and higher-order link prediction},
year = {2018},
doi = {10.1073/pnas.1800683115},
publisher = {National Academy of Sciences},
issn = {0027-8424},
journal = {Proceedings of the National Academy of Sciences}
}
- Downloads last month
- 198