rename group to sample_group to be consistent with sample_weight