Added _check_sample_weight