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

Add visualization #49

Merged
merged 6 commits into from
Apr 20, 2022
Merged

Add visualization #49

merged 6 commits into from
Apr 20, 2022

Conversation

zStupan
Copy link
Collaborator

@zStupan zStupan commented Apr 19, 2022

  • Added method for visualizing association rules with hill slopes, as presented in this article.
  • Added a conditional statement to the rule constructor, allowing rules to be constructed without requiring transactions to be passed in,

I will add examples and more documentation on visualization in the future. And probably an improved interface.

Basic usage:

import matplotlib.pyplot as plt
from niaarm.visualize import tdf

# load dataset...
# get rules...

fig, ax = tdf(rule, transactions)
plt.show()

@firefly-cpp
Copy link
Owner

Wonderful! May I recommend changing the title of the visualization scheme from tdf to hill slopes (e.g. hill_slopes())?

@firefly-cpp firefly-cpp merged commit a5c3003 into firefly-cpp:main Apr 20, 2022
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