Skip to content

Commit 7e2628e

Browse files
committed
Removed code setting filtered samples to empty list from testing.
1 parent 5e736f8 commit 7e2628e

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

src/hypershap/utils.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -154,9 +154,6 @@ def search(self, coalition: np.ndarray) -> float:
154154
validity = np.apply_along_axis(self._is_valid, axis=1, arr=temp_random_sample)
155155
filtered_samples = temp_random_sample[validity]
156156

157-
if coalition.any():
158-
filtered_samples = []
159-
160157
if len(filtered_samples) < 0.05 * len(temp_random_sample): # pragma: no cover
161158
logger.warning(
162159
"WARNING: Due to blinding less than 5% of the samples in the random search remain valid. "

0 commit comments

Comments
 (0)