The Data Mining Forum
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!
SMPF: Error Dataset.createTransaction
Date: March 27, 2018 07:10PM
When I ran one of the programs in SMPF (eg. MainTestEFIM_saveToFile) and I used my own data (I have already changed the name of the file in the program) I've error like this:
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 48
Java Result: 1
how can I resolve that problem? Any constraint about data?
Tq for help
Re: SMPF: Error Dataset.createTransaction
Date: March 29, 2018 01:01AM
The most likely problem is that the name of the items in your input file are not contiguous.
Items should have names like 1,2,3,4,5..., that is they should be contiguous.
But if in your files you have items like 100, 200, 300, 400, 500, then the names of the items are not contiguous. I think it may be the problem.
If you use the user interface of SPMF, there is a tool called "Fixed_item_ids_in_transaction_database" that can automatically fix this problem in your file.“
If it still does not work, you may send me your file by e-mail and I can check it for other problems.