clefourrier HF staff commited on
Commit
cc28f23
·
1 Parent(s): aa16083

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +3 -3
README.md CHANGED
@@ -8,7 +8,7 @@ pinned: false
8
  ---
9
 
10
  The goal of this repository is to store the different graph datasets currently available as benchmarks, to provide them in an homogeneous and easily loadable way. For example, to load them in PyGeometric, you can do the following:
11
- <br><br>
12
  ```python
13
  from datasets import load_dataset
14
 
@@ -16,10 +16,10 @@ from torch_geometric.data import Data
16
  from torch_geometric.loader import DataLoader
17
 
18
  graphs_dataset = load_dataset("graphs-datasets/<dataset-name>")
19
- # For the train set (replace by valid or test as needed)
20
- graphs_list = [Data(graph) for graph in graphs_dataset["train"]]
21
  graphs_pygeometric = DataLoader(graph_list)
22
  ```
 
23
 
24
  <br><br><br>
25
  Currently available graphs are:
 
8
  ---
9
 
10
  The goal of this repository is to store the different graph datasets currently available as benchmarks, to provide them in an homogeneous and easily loadable way. For example, to load them in PyGeometric, you can do the following:
11
+ <br><br><small>
12
  ```python
13
  from datasets import load_dataset
14
 
 
16
  from torch_geometric.loader import DataLoader
17
 
18
  graphs_dataset = load_dataset("graphs-datasets/<dataset-name>")
19
+ graphs_list = [Data(graph) for graph in graphs_dataset["<train/valid/test>"]]
 
20
  graphs_pygeometric = DataLoader(graph_list)
21
  ```
22
+ </small>
23
 
24
  <br><br><br>
25
  Currently available graphs are: