debug detectpeaksvm, change global vars for errormetrics