Skip to content
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

Error in running Introduction to Submodular Optimization tutorial: AttributeError: 'FeatureBasedSelection' object has no attribute 'indices' #11

Closed
DeekshaDixit15 opened this issue Apr 19, 2020 · 2 comments

Comments

@DeekshaDixit15
Copy link


AttributeError Traceback (most recent call last)
in
3 selector = FeatureBasedSelection(20)
4 selector.fit_transform(X_shap)
----> 5 Xi2 = X[selector.indices]
6 yi2 = y[selector.indices]
7

AttributeError: 'FeatureBasedSelection' object has no attribute 'indices'

@DeekshaDixit15 DeekshaDixit15 changed the title AttributeError: 'FeatureBasedSelection' object has no attribute 'indices' Error in running Introduction to Submodular Optimization tutorial: AttributeError: 'FeatureBasedSelection' object has no attribute 'indices' Apr 19, 2020
@jmschrei
Copy link
Owner

Thanks for the report. I think you meant the tutorial "3. Model-Based Selection." I reproduced the error and updated the code cells to use model.ranking rather than model.indices.

@DeekshaDixit15
Copy link
Author

Thanks for the update. Yes, I meant Model-Based Selection.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants