We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bffc9a6 commit 18794e8Copy full SHA for 18794e8
src/autoencoder/training.py
@@ -28,7 +28,7 @@ def anomaly_diff(
28
"""Calculates mean training/anomalous data reconstruction error difference."""
29
# calculate the dynamic mean reconstruction error on training data
30
train_reconstruction_errors = tf.reduce_mean(
31
- tf.square(y_true - y_pred), axis=(1, 2, 3)
+ tf.square(y_true - y_pred), axis=axis
32
)
33
dynamic_threshold = tf.reduce_mean(train_reconstruction_errors)
34
0 commit comments