diff --git a/shaphypetune/_classes.py b/shaphypetune/_classes.py index e500252..d4922dd 100644 --- a/shaphypetune/_classes.py +++ b/shaphypetune/_classes.py @@ -571,7 +571,7 @@ def fit(self, X, y, **fit_params): imp_history = np.vstack((imp_history, imp_real)) # register which feature is more imp than the max of shadows - hit_reg[np.where(imp_real[~np.isnan(imp_real)] > imp_sha_max)[0]] += 1 + hit_reg[imp_real > imp_sha_max] += 1 # check if a feature is doing better than expected by chance dec_reg = self._do_tests(dec_reg, hit_reg, i + 1)