View quantitative high utility itemsets with the Visual Pattern Viewer (SPMF documentation)
Quantitative high utility itemsets are a type of patterns that can be produced by different algorithms offered in SPMF.
This page explains how to visualize the quantitative high utility itemsets found by an algorithm using the Visual Pattern Viewer.
How to run this example?
If you want to run this example using the graphical user interface of SPMF, follow these steps.
1) First, select a quantitative high utility itemset mining algorithm offered in SPMF. Several algorithms are offered and are described in the documentation of SPMF.
2) Then, in the user interface of SPMF, after selecting an algorithm and setting its input file path, output file path, and parameters, click on the combo-box besides "Open output file using:", and select "Visualize_Quantitative_high_Utility_itemsets" so that the discovered patterns will be opened with the visual pattern viewer.
3) Then click on "Run algorithm" to run the algorithm.
After the algorithm terminates, the discovered patterns will be displayed using the Visual Pattern Viewer:
The Visual Pattern Viewer interface is quite intuitive. It displays each pattern with its value for each evaluation measure using a colored bar.
The Visual Pattern Viewer offers several features such as:
- Viewing patterns using different layouts (grid, horizontal and vertical layout).
- Sorting patterns by size and measure values.
- Searching and filtering using measure values
- Displaying statistics about the number of patterns found.
Other ways of running the Visual Pattern Viewer
It is also possible to run the Visual Pattern Viewer as an algorithm from the GUI of SPMF..
In this case, in the user interface of SPMF, select "Visualize_Quantitative_high_Utility_itemsets" as algorithm. Then, select a file containing quantitative high utility itemsets as input file. Then, click "run algorithm".
This will display the patterns from the file using the Visual Pattern Viewer.
Besides, it is also possible to call the Visual Pattern Viewer from the command line interface of SPMF using this syntax:
java -jar spmf.jar run ALGORITHM_NAME PATTERN_FILE.TXT in a folder containing spmf.jar and an input file containing a pattern file, here called: PATTERN_FILE.txt.
What is the input file format?
The algorithm takes as input a file containing quantitative high utility itemsets.
The file format is defined as follows. It is a text file, where each line represents a quantitative high utility itemset .
An itemset contains several items. Each item is represented in the form (x,y) where x is the item and y is its purchase quantity, or by the form (x,y,z) indicating that from y to z units of item x where purchased. At the end of each line, the utility of the itemset is indicated after the keyword #UTIL: For examle, here is a few line of a pattern file:
(4,4,6) #UTIL: 1455
(4,5,6) #UTIL: 1067
(3,9) (2,8) #UTIL: 1542
(3,9) (4,6) #UTIL: 1428
(3,9) (1,7) #UTIL: 1140
(3,9) (2,8) (4,6) #UTIL: 2124
(3,9) (2,8) (1,7) #UTIL: 1836
(3,9) (2,8) (4,6) (1,7) #UTIL: 2418
(3,9) (4,6) (1,7) #UTIL: 1722
(2,8) (4,6) #UTIL: 1278
(2,8) (4,6) (1,7) #UTIL: 1572
(4,4,6) (1,7) #UTIL: 1558
(2,6) (4,4) (1,7) #UTIL: 1204