RelaxedEvaluation class for cost sensitive classification taken from
Ariel Stolerman, from the doppelganger finder project.