Doesn't look like this is used and it isn't that helpful in understanding the anomaly example.  You might remove it (and the metrics specs at the top).