We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9f0bf33 commit 53f54d5Copy full SHA for 53f54d5
1 file changed
PAMI/extras/graph/plotFrequentPatternSetsGraph.py
@@ -27,6 +27,8 @@
27
along with this program. If not, see <https://www.gnu.org/licenses/>.
28
"""
29
30
+import sys
31
+
32
import matplotlib.pyplot as plt
33
from typing import Dict, Union
34
@@ -94,19 +96,7 @@ def getStatistics(self) -> None:
94
96
95
97
98
if __name__ == "__main__":
- samplePatterns = {
- ('A',): 110,
99
- ('B',): 150,
100
- ('C',): 120,
101
- ('A', 'B'): 80,
102
- ('A', 'C'): 70,
103
- ('B', 'C'): 90,
104
- ('A', 'B', 'C'): 50,
105
- ('D',): 110,
106
- ('A', 'D'): 60,
107
- ('B', 'D'): 65,
108
- }
109
-
110
- obj = plotFrequentPatternSetsGraph(samplePatterns)
+ # Usage: python plotFrequentPatternSetsGraph.py patterns.txt
+ obj = plotFrequentPatternSetsGraph(sys.argv[1])
111
obj.plot()
112
obj.getStatistics()
0 commit comments