Error in running Introduction to Submodular Optimization tutorial: AttributeError: 'FeatureBasedSelection' object has no attribute 'indices'
DeekshaDixit15 opened this issue · comments
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'
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
.
Thanks for the update. Yes, I meant Model-Based Selection.