Re: TopKClassRule Running error - Java heap space - out of memory
Date: January 06, 2019 04:06AM
Hi,
I see. It means that the search space is perhaps too big. There are a few solutions:
- You can use the optional parameter "maximum antecedent size. If you set it to a small value, it will greatly reduce the search space and the algorithm will consume less memory.
- You can also use the optional parameter to set some required items in the consequen of rules. This will also reduce the number of possibilities that must be considered by the algorithm. It will reduce the memory and the runtime.
- You could do some preprocessing on your data to remove some information that is not useful. Or you could use some part of your data rather than all the data. For example, if you have 1,000,000 transactions, you could perhaps use the first 10,000 transactions for testing, or you could preprocess the data to remove some information that you don't need or transform it.
That is my main suggestions.
Thanks for using SPMF!
Best regards,
Philippe