Closed tagomatech closed 6 years ago
Solved NA issue in the _assign_hits() function, reported by several users (https://github.com/scikit-learn-contrib/boruta_py/issues/30).
_assign_hits()
https://github.com/scikit-learn-contrib/boruta_py/issues/30)
Message error RuntimeWarning: invalid value encountered in greater hits = np.where(cur_imp[0] > imp_sha_max)[0] was due to numpy comparison with NAs.
RuntimeWarning: invalid value encountered in greater hits = np.where(cur_imp[0] > imp_sha_max)[0]
Fix was to remove any possible NAs from the cur_imp[0] numpy array. This fix has NO impact on the workings of the algorithm per se.
cur_imp[0]
Thank you for this!
Solved NA issue in the
_assign_hits()
function, reported by several users (https://github.com/scikit-learn-contrib/boruta_py/issues/30)
.Message error
RuntimeWarning: invalid value encountered in greater hits = np.where(cur_imp[0] > imp_sha_max)[0]
was due to numpy comparison with NAs.Fix was to remove any possible NAs from the
cur_imp[0]
numpy array. This fix has NO impact on the workings of the algorithm per se.