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

reorder by feature importance #12

Merged
merged 1 commit into from Mar 1, 2019

Conversation

floriangardin
Copy link
Contributor

@floriangardin floriangardin commented Mar 16, 2018

The terms of the rules are now ordered by feature importance. see #1

Copy link
Member

@ngoix ngoix left a comment

Choose a reason for hiding this comment

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

+1 for merge, though I have not checked if it is safe to remove self.rule

@@ -29,7 +29,7 @@ def __init__(self, rule, args=None):
self.terms = [t.split(' ') for t in self.rule.split(' and ')]
self.agg_dict = {}
self.factorize()
self.rule = str(self)
Copy link
Member

Choose a reason for hiding this comment

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

was this attribute not used?

@AlJohri
Copy link

AlJohri commented Jan 14, 2019

@ngoix bumping this PR; I'm interested in this feature as well

@ngoix ngoix merged commit 6908ed0 into scikit-learn-contrib:dev Mar 1, 2019
@ngoix
Copy link
Member

ngoix commented Mar 1, 2019

LGTM thanks @floriangardin, finally merging :)

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.

None yet

3 participants