Datasets:
Update README.md
#1
by
busraasan
- opened
README.md
CHANGED
@@ -49,9 +49,9 @@ from datasets import load_dataset
|
|
49 |
from torch_geometric.data import Data
|
50 |
from torch_geometric.loader import DataLoader
|
51 |
|
52 |
-
graphs_dataset = load_dataset("graphs-datasets/ogbg-code2)
|
53 |
# For the train set (replace by valid or test as needed)
|
54 |
-
|
55 |
graphs_pygeometric = DataLoader(graph_list)
|
56 |
|
57 |
```
|
|
|
49 |
from torch_geometric.data import Data
|
50 |
from torch_geometric.loader import DataLoader
|
51 |
|
52 |
+
graphs_dataset = load_dataset("graphs-datasets/ogbg-code2")
|
53 |
# For the train set (replace by valid or test as needed)
|
54 |
+
graph_list = [Data(graph) for graph in graphs_dataset["train"]]
|
55 |
graphs_pygeometric = DataLoader(graph_list)
|
56 |
|
57 |
```
|