pub fn validate_sample_weight( sample_weight: &Option<Array1<f64>>, n_samples: usize, ) -> PyResult<()>
Validate sample weights if provided