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

[WIP] Mutual info based feature selection #19

Open
wants to merge 12 commits into
base: main
Choose a base branch
from

Conversation

aivarsoo
Copy link

@aivarsoo aivarsoo commented Apr 2, 2024

Adding another algorithm for feature selection based on mutual information. The algorithms are based on these publications:

[1] Peng, F. Long, and C. Ding. Feature selection based on mutual information criteria of max-dependency,
max-relevance, and min-redundancy. IEEE Transactions on pattern analysis and machine intelligence,
27(8):1226–1238, 2005.
[2] X. V. Nguyen, J. Chan, S. Romano, and J. Bailey. Effective global approaches for mutual information
based feature selection. In Proceedings of the 20th ACM SIGKDD international conference on
Knowledge discovery and data mining, pages 512–521. ACM, 2014.

Copy link
Member

@arcondello arcondello left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did a quick pass, looking more closely at the logic on a second pass.

dwave/plugins/sklearn/transformers.py Show resolved Hide resolved
dwave/plugins/sklearn/utilities.py Outdated Show resolved Hide resolved
dwave/plugins/sklearn/utilities.py Outdated Show resolved Hide resolved
dwave/plugins/sklearn/transformers.py Outdated Show resolved Hide resolved
dwave/plugins/sklearn/transformers.py Outdated Show resolved Hide resolved
dwave/plugins/sklearn/utilities.py Outdated Show resolved Hide resolved
dwave/plugins/sklearn/transformers.py Outdated Show resolved Hide resolved
requirements.txt Outdated
scikit-learn==1.2.0; python_version >= '3.8'
scikit-learn==1.0.2; python_version < '3.8'
scikit-learn==1.2.1
scipy>=1.7.3
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rule of thumb, we want the versions in requirements.txt to be fixed for reproducibility, but as wide as possible in setup.cfg for flexibility.

packages =
dwave
dwave.plugins
dwave.plugins.sklearn
python_requires = >=3.7
python_requires = >=3.8
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should note this in the release notes. E.g. Drop support for Python 3.7. or Upgrade your python to 3.8+. We no longer support python 3.7 and below..

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

Successfully merging this pull request may close these issues.

2 participants