jableable commited on
Commit
3e3a8b8
·
verified ·
1 Parent(s): 0098dd7

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +18 -9
README.md CHANGED
@@ -19,15 +19,24 @@ This repository hosts a single PyTorch Geometric dataset file used for the TAG-D
19
 
20
  ## Contents
21
 
22
- - `data.pt`
23
- A serialized object with the following keys:
24
- - `data` (PyG `Data` object with collated node features, edges and labels)
25
- - `slices` (index information for reconstructing individual graphs)
26
- - `train_idx` (tensor of graph indices for training)
27
- - `val_idx` (tensor of graph indices for validation)
28
- - `test_idx` (tensor of graph indices for testing)
29
-
30
- ## Basic usage
 
 
 
 
 
 
 
 
 
31
 
32
  ```python
33
  import torch
 
19
 
20
  ## Contents
21
 
22
+ - **`data.pt`**
23
+ A preprocessed graph dataset containing:
24
+ - `data` — collated PyG `Data` object storing all node features, edges, and labels
25
+ - `slices` indexing information for reconstructing individual graphs
26
+ - `train_idx`, `val_idx`, `test_idx` fixed graph-level splits
27
+
28
+ ## Dataset Description
29
+
30
+ - Contains the **first 10,000 proofs** from the ~45,000-theorem Metamath database
31
+ - Each example is a **directed acyclic graph** (DAG)
32
+ - **Node features:** 768-dimensional **CodeBERT embeddings** of Metamath statements
33
+ - **Labels:** the **theorem required to justify each node**
34
+ - **Conclusion masking:** the conclusion node’s embedding is zeroed out so the model must predict the final logical step directly from the graph structure and the other nodes
35
+ - **Rare labels** (<=5 occurrences) are collapsed into a single UNK class
36
+ - **All theorem statements** (not just proofs) are included in training, since the model must treat theorems themselves as prior knowledge
37
+ - Under the Metamath proof language, any theorem used to justify a step always has an index <= the theorem being proved. So a later theorem never appears in an earlier proof
38
+
39
+ ## Basic Usage
40
 
41
  ```python
42
  import torch