Refactor sample_weights as generic scorer_params