-
Notifications
You must be signed in to change notification settings - Fork 254
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
d:\Anaconda3\lib\site-packages\boruta\boruta_py.py:418: RuntimeWarning: invalid value encountered in greater hits = np.where(cur_imp[0] > imp_sha_max)[0] #30
Comments
Can you provide a bit more background on this issue such as function used, parameters, dataset, .. ? |
OK. I got myself that same error message. My understanding is that it is Can you confirm that the attribute |
Dear all, `from sklearn.ensemble import RandomForestClassifier, RandomForestRegressor Xdum, ydum = make_regression(n_samples = 100, n_features=50, feat_selector = BorutaPy(rf, n_estimators=1000, perc=100, max_iter=20, verbose=2) Please note that I set n_informative to 10 and at the end Boruta finds indeed 7 relevant features: feat_selector.n_features_ returns 7. The problem appears also with max_iter=100. |
Note that the higher max_iter, the more likely you get this error message. |
Thanks a lot! |
Thanks @tagomatech ,accepted the PR. |
Please re-open this issue, as the proposed (and implemented) solution introduces an error: Referred to as code variant A: Instead of using the actual features, it uses the n first not rejected features. Referred to as code variant B:
|
solving issue scikit-learn-contrib#30 in _assign_hits
d:\Anaconda3\lib\site-packages\boruta\boruta_py.py:418: RuntimeWarning: invalid value encountered in greater
hits = np.where(cur_imp[0] > imp_sha_max)[0]
The text was updated successfully, but these errors were encountered: