Skip to content

Commit 142f110

Browse files
committed
updated matbench training.
1 parent 9973c34 commit 142f110

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

changelog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ v2.2.3
55
* Fix bug in latest ``train_force.py`` of v2.2.2 that forgets to apply inverse scaling to dataset, causing subsequent folds to have wrong labels.
66
* HOTFIX: Updated ``MolDynamicsModelPredictor`` to call keras model without very expensive retracing. Alternative mode use `use_predict=True` .
77
* Update training results and data subclasses for matbench datasets.
8+
* Added ``GraphInstanceNormalization`` and `GraphNormalization` to `kgcnn.layers.norm` .
89

910

1011
v2.2.2

kgcnn/layers/mlp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ def __init__(self, units, num_relations: int, num_bases: int = None, num_blocks:
380380
**self._conf_mlp_norm_layer_kwargs[i])
381381
else:
382382
raise NotImplementedError(
383-
"Normalization via %s not supported." % self._conf_normalization_technique[i])
383+
"Normalization via '%s' not supported." % self._conf_normalization_technique[i])
384384

385385
def build(self, input_shape):
386386
"""Build layer."""

kgcnn/layers/norm.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -406,8 +406,9 @@ def _ragged_mean_std(self, inputs):
406406
if self.mean_shift:
407407
mean = mean * tf.expand_dims(self.alpha, axis=0)
408408
mean = tf.repeat(mean, inputs.row_lengths(), axis=0)
409-
diff = values - tf.stop_gradient(mean)
410-
square_diff = tf.square(diff)
409+
diff = values - mean
410+
# Not sure whether to stop gradients for variance if alpha ist used.
411+
square_diff = tf.square(diff) # values - tf.stop_gradient(mean)
411412
variance = segment_ops_by_name("mean", square_diff, inputs.value_rowids())
412413
std = tf.sqrt(variance + self._eps)
413414
std = tf.repeat(std, inputs.row_lengths(), axis=0)

0 commit comments

Comments
 (0)