Skip to content

Commit 18794e8

Browse files
Fixed axis variable usage (#37)
1 parent bffc9a6 commit 18794e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/autoencoder/training.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def anomaly_diff(
2828
"""Calculates mean training/anomalous data reconstruction error difference."""
2929
# calculate the dynamic mean reconstruction error on training data
3030
train_reconstruction_errors = tf.reduce_mean(
31-
tf.square(y_true - y_pred), axis=(1, 2, 3)
31+
tf.square(y_true - y_pred), axis=axis
3232
)
3333
dynamic_threshold = tf.reduce_mean(train_reconstruction_errors)
3434

0 commit comments

Comments
 (0)