pub(crate) fn py_sample_entropy( binary_train: PyReadonlyArray1<'_, i32>, m: usize, r_factor: f64, ) -> f64