`safe_mask` shouldn't be necessary (sparse `sample_weight` is not supported).