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
@@ -118,62 +121,50 @@ These can be used for both GAT and ResGated architectures:
118
121
119
122
## Static Node Initialization
120
123
121
-
In this type of node initialization, the node properties (and/or edge properties) of the given molecular graph are initialized only once during dataset creation with the given initialization scheme.
122
-
124
+
In this type of node initialization, the node features (and/or edge features) of the given molecular graph are initialized only once during dataset creation with the given initialization scheme.
In the above config, for each node we use the 158 node properties retrieved from RDKit and add 45 additional features (specified by `--data.pad_node_features=45`) drawn from a normal distribution (default). You can change the distribution using:
130
+
In the above command, for each node we use the 158 node features (corresponding the node properties defined in `chebi50_graph_properties.yml`) which are retrieved from RDKit and add 45 additional features (specified by `--data.pad_node_features=45`) drawn from a normal distribution (default).
129
131
130
-
```
131
-
--data.distribution=zeros
132
-
```
132
+
You can change the distribution using the following config in above command: `--data.distribution=zeros`
133
133
134
-
Available distributions:
134
+
Available distributions:`"normal", "uniform", "xavier_normal", "xavier_uniform", "zeros"`
Similarly, each edge is initialized with 7 RDKit properties and 4 additional features drawn from the given distribution.
137
+
Similarly, each edge is initialized with 7 RDKit features and 4 additional features drawn from the given distribution.
141
138
142
139
143
-
If you want all node (and edge) features to be drawn from a given distribution (i.e., ignore RDKit features), use:
140
+
If you want all node (and edge) features to be drawn from a given distribution (i.e., ignore RDKit features), use:`--data=../python-chebai-graph/configs/data/chebi50_static_gni.yml`
In this type of node initialization, the node properties (and/or edge properties) of the molecular graph are initialized at **each forward pass** of the model using the given initialization scheme.
148
+
In this type of node initialization, the node features (and/or edge features) of the molecular graph are initialized at **each forward pass** of the model using the given initialization scheme.
155
149
156
-
Currently, dynamic node initialization is implemented only for the **resgated** architecture by specifying:
To keep RDKit features and *add* dynamically initialized features:
152
+
Currently, dynamic node initialization is implemented only for the **resgated** architecture by specifying: `--model=../python-chebai-graph/configs/model/resgated_dynamic_gni.yml`
153
+
154
+
To keep RDKit features and *add* dynamically initialized features use the following config in the command:
163
155
164
156
```
165
157
--model.config.complete_randomness=False
166
158
--model.config.pad_node_features=45
167
159
```
168
160
169
-
The additional features are drawn from normal distribution (default). You can change it using:
170
-
171
-
```
172
-
--model.config.distribution=uniform
173
-
```
161
+
The additional features are drawn from normal distribution (default). You can change it using:`--model.config.distribution=uniform`
174
162
175
163
If all features should be initialized from the given distribution, remove the complete_randomness flag (default is True).
176
164
177
-
```
165
+
166
+
Please find below the command for a typical dynamic node initialization:
0 commit comments