fix _temp_run can't be pickled; pass indices to allow evaluation on subset
Duplicate from codeparrot/apps_metric