jmschrei / apricot

apricot implements submodular optimization for the purpose of selecting subsets of massive data sets to train machine learning models quickly. See the documentation page: https://apricot-select.readthedocs.io/en/latest/index.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.