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: README.md
+42-12Lines changed: 42 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -156,38 +156,68 @@ These can be used for both GAT and ResGated architectures:
156
156
--model.n_linear_layers=2 # Default: 1
157
157
```
158
158
159
-
## Random Node Initialization
160
159
161
160
161
+
# Random Node Initialization
162
162
163
+
## Static Node Initialization
163
164
165
+
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.
In this type of node initialization, the node properties ( and/or edge properties) of the given molecular graph is initialized only once during dataset creation with given node initiliazation scheme.
172
+
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:
169
173
174
+
```
175
+
--data.distribution=zeros
176
+
```
170
177
171
-
In the below config, for each node we the 158 node properties we retrieve from RDKit along and add 54 features to node (specified by `--data.pad_node_features=45`) which is drawn from normal distribution (by default.) You can change the distribution from which additional features are drawn by using `--data.distribution=zeros`
if you to use all the features for node (and edge) drawn from given distribution, use the data class
184
-
`--data=../python-chebai-graph/configs/data/chebi50_static_gni.yml` . Refer the data class code.
193
+
Refer to the data class code for details.
185
194
186
-
### Dynamic Node Initialization
187
-
In this type of node initialization, the node properties ( and/or edge properties) of the given molecular graph is initialized at each forward pass of the model with given node initiliazation scheme.
188
195
196
+
## Dynamic Node Initialization
189
197
190
-
```bash
198
+
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.
199
+
200
+
Currently, dynamic node initialization is implemented only for the **resgated** architecture by specifying:
0 commit comments