Fix for using custom Error Metric for anomaly models

Fix for using custom Error Metric for anomaly models
apply devs comments to Ewulczyn's PR #153 , update