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!.  
Using TRuleGrowth in Python for sequential rule mining
Posted by: Andrea Silva
Date: May 15, 2018 07:50AM

Hello, Prof. Philippe Fournier-Viger.
I'm a master's degree student and I'm doing a project, "Inteligent problem assignment to students", that intends to choose an exercise to present to the user based on what he has already done, and based on data from other users, where the order of the elaborated exercises matters. For that, I intend to use TRuleGrowth algorithm, could you please give me your opinion if this is the apropriate algorithm to use or if you would choose another one?
I only have learned python, so, do you know any python library or python implementation for TRuleGrowth?

Thank you for your attention.

Edited 1 time(s). Last edit at 05/15/2018 04:58PM by webmasterphilfv.

Options: ReplyQuote
Re: TRuleGrowth
Date: May 15, 2018 08:49AM

Hi Andrea,

You can definitely try these algorithms (RuleGrowth / ERMiner) to discover sequential rules, which could be use to suggest activities to learners. You could consider using the TRuleGrowth algorithm for example, which is an improved version of RuleGrowth offering and additional window parameter.

As for using SPMF from Python, a very simple way could be to call the spmf.jar as an external application from your Python program. SPMF is actually designed to be used from the command line, and takes a text file as input and produce a text file as output. So from a Python program you could call SPMF with a text and then generates the patterns and read the output file to get the result back in your Python program. That would be one way to do it.

Otherwise, it is possible to make some wrapper between SPMF and Python. For example, I know one project that have done something like that:
A wrapper for using some SPMF algorithm (VMSP) in Python:
However, that code is only for one algorithm of SPMF called VMSP and is not written by me. But it could be used as an example of how to make some interface between Java and Python for other algorithms in SPMF.



Options: ReplyQuote
Re: TRuleGrowth
Posted by: Andrea Silva
Date: May 15, 2018 09:21AM

Thank you very much for your help.
I'll try your suggestions to use python.

Best regards,
Andrea Silva

Options: ReplyQuote

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