We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5e736f8 commit 7e2628eCopy full SHA for 7e2628e
1 file changed
src/hypershap/utils.py
@@ -154,9 +154,6 @@ def search(self, coalition: np.ndarray) -> float:
154
validity = np.apply_along_axis(self._is_valid, axis=1, arr=temp_random_sample)
155
filtered_samples = temp_random_sample[validity]
156
157
- if coalition.any():
158
- filtered_samples = []
159
-
160
if len(filtered_samples) < 0.05 * len(temp_random_sample): # pragma: no cover
161
logger.warning(
162
"WARNING: Due to blinding less than 5% of the samples in the random search remain valid. "
0 commit comments