You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: ogb/io/README.md
+11-10Lines changed: 11 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ The `DatasetSaver` class allows external contributors to prepare their datasets
5
5
Below is the quick example of how to use `DatasetSaver` class, where we focus on graph property prediction datasets.
6
6
Please follow the steps below **in the exact order** to generate final dataset files.
7
7
8
-
## 0. Constructor
8
+
## 1. Constructor
9
9
Create a constructor of `DatasetSaver`. `dataset_name` needs to follow OGB convention and start from either `ogbn-`, `ogbl-`, or `ogbg-`. `is_hetero` is `True` for heterogeneous graphs, and `version` indicates the dataset version.
Save task information by calling `saver.save_task_info(task_type = 'classification', eval_metric = 'acc', num_classes = num_classes)`.
92
+
Save task information by calling `saver.save_task_info(task_type, eval_metric, num_classes = num_classes)`.
93
+
`eval_metric` is used to call `Evaluator` (c.f. [here](https://github.com/snap-stanford/ogb/blob/master/ogb/graphproppred/evaluate.py)). You can reuse one of the existing metrics, or you can implement your own by creating a pull request.
0 commit comments