compute_results_oneclass adapted as a function