We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When the number of features is odd, TuRF often leaves out one feature (causing a value error at this line https://github.com/EpistasisLab/scikit-rebate/blob/master/skrebate/turf.py#L166) because segmenting of features into selected and non_selected is based on the number of features to retain: https://github.com/EpistasisLab/scikit-rebate/blob/master/skrebate/turf.py#L131
This code fixes the problem for me:
num_features_non_select = len(features_iter[iter_count]) - num_features non_select = np.array(features_iter[iter_count].argsort()[:num_features_non_select])
The text was updated successfully, but these errors were encountered:
Hi,
I'm an undergraduate at Penn working on this project; could you provide the data you used that caused this error? Thank you!
Sorry, something went wrong.
No branches or pull requests
When the number of features is odd, TuRF often leaves out one feature (causing a value error at this line https://github.com/EpistasisLab/scikit-rebate/blob/master/skrebate/turf.py#L166) because segmenting of features into selected and non_selected is based on the number of features to retain:
https://github.com/EpistasisLab/scikit-rebate/blob/master/skrebate/turf.py#L131
This code fixes the problem for me:
The text was updated successfully, but these errors were encountered: