The Data Mining Forum                             open-source data mining software data science journal data mining conferences high utility mining workshop
This forum is about data mining, data science and big data: algorithms, source code, datasets, implementations, optimizations, etc. You are welcome to post call for papers, data mining job ads, link to source code of data mining algorithms or anything else related to data mining. The forum is hosted by P. Fournier-Viger. No registration is required to use this forum!.  
Input suitable .txt file to SPMF
Posted by: Al Mahdi Bakkali
Date: November 16, 2018 02:36AM

Hello everyone,

So, I'm trying to run some algorithms in SPMF (Apriori, and AprioriInverse specifically).

My dataset is a .csv or .xlsx file, that I can convert to different formats thanks to MSExcel. I have tried to export the file to a .txt (both space and tab delimited) and then input it to SPMF, but neither seem to work properly.

As I looked through the net, I believe I need a SPMF text format.

How can I get this from my .csv file?

Options: ReplyQuote
Re: Input suitable .txt file to SPMF
Posted by: Al Mahdi Bakkali
Date: November 16, 2018 02:38AM

I would also like to get my headers included, so I can get 'explicit' association rules.

Options: ReplyQuote
Re: Input suitable .txt file to SPMF
Date: November 16, 2018 03:41AM

I am not sure what you mean by "headers included". But you can check the documentation of SPMF. All the features of SPMF are described there. If it is no there, then it is not implemented.

Options: ReplyQuote
Re: Input suitable .txt file to SPMF
Date: November 16, 2018 03:39AM

Hi,

Yes, the format used by SPMF is explained in the documentation of SPMF for each algorithm offered in SPMF. You can go to "Documentation" on the website, click on an algorithm, and then you will see how to run the algorithm and the input format.

Because there exists so many formats out there, I could unfortunately not support all of them. The most simple is to write a short program to convert your data to the correct format and then apply SPMF. You can convert your data using any languages you like.

Best regards,

Options: ReplyQuote


This forum is powered by Phorum and provided by P. Fournier-Viger (© 2012).
Terms of use.