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

AttributeError: 'MutualInformationFeatureSelector' object has no attribute 'support_' #28

Open
ejlai opened this issue Jul 2, 2019 · 1 comment

Comments

@ejlai
Copy link

ejlai commented Jul 2, 2019

New issue found...

$ python3 examples.py 
/.../.local/lib/python3.6/site-packages/sklearn/externals/joblib/__init__.py:15: DeprecationWarning: sklearn.externals.joblib is deprecated in 0.21 and will be removed in 0.23. Please import this functionality directly from joblib, which can be installed with: pip install joblib. If this warning is raised when loading pickled models, you may need to re-serialize those models with scikit-learn 0.21+.
  warnings.warn(msg, category=DeprecationWarning)
Auto selected feature #1 : 11, JMI : 0.0684383100490189
Auto selected feature #2 : 10, JMI : 0.2072219896820795
Auto selected feature #3 : 13, JMI : 0.14946908422839966
Auto selected feature #4 : 8, JMI : 0.12245840290111998
Auto selected feature #5 : 14, JMI : 0.12245840290111998
Auto selected feature #6 : 4, JMI : 0.1000503773473076
Auto selected feature #7 : 0, JMI : 0.1000503773473076
Auto selected feature #8 : 6, JMI : 0.09800851343094807
Auto selected feature #9 : 5, JMI : 0.093447512891502
Auto selected feature #10 : 2, JMI : 0.093447512891502
Auto selected feature #11 : 7, JMI : 0.057598055546301374
Auto selected feature #12 : 9, JMI : 0.057598055546301374
Auto selected feature #13 : 3, JMI : 0.042444329907475264
Auto selected feature #14 : 1, JMI : 0.04044575359988212
Auto selected feature #15 : 64, JMI : 0.03845355583264709
Auto selected feature #16 : 88, JMI : 0.03793724882524119
Auto selected feature #17 : 83, JMI : 0.03793724882524119
Auto selected feature #18 : 47, JMI : 0.03793724882524119
Traceback (most recent call last):
  File "examples.py", line 50, in <module>
    sens, prec = check_selection(np.where(MIFS.support_)[0], i, r)
AttributeError: 'MutualInformationFeatureSelector' object has no attribute 'support_'
@Davidoreilly12
Copy link

In the code it is as "_support_mask" instead

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