clefourrier HF staff commited on
Commit
6ccc9dd
1 Parent(s): 7e9914e

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +125 -0
README.md CHANGED
@@ -1,3 +1,128 @@
1
  ---
2
  license: mit
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
  license: mit
3
  ---
4
+
5
+ # Dataset Card for ogbg-molpcba
6
+
7
+ ## Table of Contents
8
+ - [Table of Contents](#table-of-contents)
9
+ - [Dataset Description](#dataset-description)
10
+ - [Dataset Summary](#dataset-summary)
11
+ - [Supported Tasks and Leaderboards](#supported-tasks-and-leaderboards)
12
+ - [External Use](#external-use)
13
+ - [PyGeometric](#pygeometric)
14
+ - [Dataset Structure](#dataset-structure)
15
+ - [Data Properties](#data-properties)
16
+ - [Data Fields](#data-fields)
17
+ - [Data Splits](#data-splits)
18
+ - [Additional Information](#additional-information)
19
+ - [Licensing Information](#licensing-information)
20
+ - [Citation Information](#citation-information)
21
+ - [Contributions](#contributions)
22
+
23
+ ## Dataset Description
24
+
25
+ - **[Homepage](https://ogb.stanford.edu/docs/graphprop/#ogbg-mol)**
26
+ - **[Repository](https://github.com/snap-stanford/ogb):**:
27
+ - **Paper:**: Open Graph Benchmark: Datasets for Machine Learning on Graphs (see citation)
28
+ - **Leaderboard:**: [OGB leaderboard](https://ogb.stanford.edu/docs/leader_graphprop/#ogbg-molpcba) and [Papers with code leaderboard](https://paperswithcode.com/sota/graph-property-prediction-on-ogbg-molpcba)
29
+
30
+ ### Dataset Summary
31
+
32
+ The `ogbg-molpcba` dataset is a small molecular property prediction dataset, adapted from MoleculeNet by teams at Stanford, to be a part of the Open Graph Benchmark.
33
+
34
+ ### Supported Tasks and Leaderboards
35
+
36
+ `ogbg-molpcba` should be used for molecular property prediction (with 128 properties to predict, not all present for all graphs), a binary classification task.
37
+ The score used is Average Precision (AP) averaged over the tasks.
38
+
39
+ The associated leaderboards are here: [OGB leaderboard](https://ogb.stanford.edu/docs/leader_graphprop/#ogbg-molpcba) and [Papers with code leaderboard](https://paperswithcode.com/sota/graph-property-prediction-on-ogbg-molpcba).
40
+
41
+ ## External Use
42
+ ### PyGeometric
43
+ To load in PyGeometric, do the following:
44
+
45
+ ```python
46
+ from datasets import load_dataset
47
+
48
+ from torch_geometric.data import Data
49
+ from torch_geometric.loader import DataLoader
50
+
51
+ dataset = load_dataset("graphs-datasets/ogbg-molpcba")
52
+ # For the train set (replace by valid or test as needed)
53
+ graphs_list_pygeometric = [Data(graph) for graph in dataset["train"]]
54
+ dataset_pygeometric = DataLoader(graphs_list_pygeometric)
55
+
56
+ ```
57
+
58
+
59
+ ## Dataset Structure
60
+
61
+ ### Data Properties
62
+
63
+ | property | value |
64
+ |---|---|
65
+ | scale | medium |
66
+ | #graphs | 437,929 |
67
+ | average #nodes | 26.0 |
68
+ | average #edges | 28.1 |
69
+ | average node degree | 2.2 |
70
+ | average cluster coefficient | 0.002 |
71
+ | MaxSCC ratio | 0.999 |
72
+ | graph diameter | 13.6 |
73
+
74
+ ### Data Fields
75
+
76
+ Each row of a given file is a graph, with:
77
+ - `x` (list: #nodes x #node-features): nodes
78
+ - `edge_index` (list: 2 x #edges): pairs of nodes constituting edges
79
+ - `edge_attr` (list: #edges x #edge-features): for the aforementioned edges, contains their features
80
+ - `y` (list: 1 x #labels): contains the number of labels available to predict (here 128 labels, equal to zero, one, or Nan if the property is not relevant for the graph)
81
+ - `num_nodes` (int): number of nodes of the graph
82
+
83
+ ### Data Splits
84
+
85
+ This data comes from the PyGeometric version of the dataset provided by OGB, and follows the provided data splits.
86
+ This information can be found back using
87
+ ```python
88
+ from ogb.graphproppred import PygGraphPropPredDataset
89
+
90
+ dataset = PygGraphPropPredDataset(name = 'ogbg-molhiv')
91
+
92
+ split_idx = dataset.get_idx_split()
93
+ train = dataset[split_idx['train']] # valid, test
94
+ ```
95
+
96
+ ## Additional Information
97
+
98
+ ### Licensing Information
99
+ The dataset has been released under MIT license.
100
+
101
+ ### Citation Information
102
+ ```
103
+ @inproceedings{hu-etal-2020-open,
104
+ author = {Weihua Hu and
105
+ Matthias Fey and
106
+ Marinka Zitnik and
107
+ Yuxiao Dong and
108
+ Hongyu Ren and
109
+ Bowen Liu and
110
+ Michele Catasta and
111
+ Jure Leskovec},
112
+ editor = {Hugo Larochelle and
113
+ Marc Aurelio Ranzato and
114
+ Raia Hadsell and
115
+ Maria{-}Florina Balcan and
116
+ Hsuan{-}Tien Lin},
117
+ title = {Open Graph Benchmark: Datasets for Machine Learning on Graphs},
118
+ booktitle = {Advances in Neural Information Processing Systems 33: Annual Conference
119
+ on Neural Information Processing Systems 2020, NeurIPS 2020, December
120
+ 6-12, 2020, virtual},
121
+ year = {2020},
122
+ url = {https://proceedings.neurips.cc/paper/2020/hash/fb60d411a5c5b72b2e7d3527cfc84fd0-Abstract.html},
123
+ }
124
+ ```
125
+
126
+ ### Contributions
127
+
128
+ Thanks to [@clefourrier](https://github.com/clefourrier) for adding this dataset.