daqh commited on
Commit
7f3f4f7
·
verified ·
1 Parent(s): 312de30

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +14 -1
README.md CHANGED
@@ -12,6 +12,15 @@ task_categories:
12
 
13
  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.
14
 
 
 
 
 
 
 
 
 
 
15
  <div align="center">
16
  <table>
17
  <tbody>
@@ -38,6 +47,8 @@ NDC-classes is an undirected hypergraph built from the U.S. FDA’s National Dru
38
  </table>
39
  </div>
40
 
 
 
41
  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.
42
 
43
  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:
@@ -45,7 +56,9 @@ In addition to the raw hypergraph topology, vector features are provided for bot
45
  - Node2Vec embeddings: random-walk–based structural embeddings.
46
  - VilLain embeddings: self-supervised hypergraph representation learning via virtual label propagation.
47
 
48
- Basic statistics (as packaged here): 1,161 nodes, 1,222 hyperedges, 183 connected component (Largest Connected Component Ratio 0.540913006029285).
 
 
49
 
50
  ```
51
  @article{Benson-2018-simplicial,
 
12
 
13
  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.
14
 
15
+ ## Usage
16
+
17
+ ```python
18
+ dataset = load_dataset("daqh/NDC-classes", split="full")
19
+ hypergraphs = [xgi.from_hif_dict(d, nodetype=int, edgetype=int) for d in dataset]
20
+ ```
21
+
22
+ ## Statistics
23
+
24
  <div align="center">
25
  <table>
26
  <tbody>
 
47
  </table>
48
  </div>
49
 
50
+ ## Content
51
+
52
  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.
53
 
54
  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:
 
56
  - Node2Vec embeddings: random-walk–based structural embeddings.
57
  - VilLain embeddings: self-supervised hypergraph representation learning via virtual label propagation.
58
 
59
+ Basic statistics (as packaged here): 327 nodes, 12,799 hyperedges, 1 connected component.
60
+
61
+ ## Citation
62
 
63
  ```
64
  @article{Benson-2018-simplicial,