Anomaly detector: implemented the predictor