Re: Apriori - frequent category sets
Date: June 09, 2020 05:22PM
Hi,
If you are using SPMF, you need to make sure that your file follows the correct input format. The input format is explained in the documentation.
For example, for Apriori, see the example and explanation here:
http://www.philippe-fournier-viger.com/spmf/Apriori.php
Briefly, it could be like this:
1 3 4
2 3 5
1 2 3 5
2 5
1 2 3 5
or like that if you use the GUI:
@CONVERTED_FROM_TEXT
@ITEM=1=apple
@ITEM=2=orange
@ITEM=3=tomato
@ITEM=4=milk
@ITEM=5=bread
1 3 4
2 3 5
1 2 3 5
2 5
1 2 3 5
Then using the proper format, you will get the results that you are looking for. So maybe you first need to do some preprocessing to convert your file to a suitable format.
Best regards,