The Altair Community is migrating to a new platform to provide a better experience for you. In preparation for the migration, the Altair Community is on read-only mode from October 28 - November 6, 2024. Technical support via cases will continue to work as is. For any urgent requests from Students/Faculty members, please submit the form linked here
"Association rules"
Hi,
I have built a model with the FP-Growth and Association rules operators on training data. Can anyone please show me an example of how to apply the results back to a new (test) set of data?
Thanks
BK
I have built a model with the FP-Growth and Association rules operators on training data. Can anyone please show me an example of how to apply the results back to a new (test) set of data?
Thanks
BK
Tagged:
0
Answers
I'm developing an Association Rules generator in CUDA, and use RM to compare results; in order to convert RM Association Rules to an example set I use a Groovy script, like this... I'm also eager to hear from anybody with packages other than RM, such as Clementine, as I have a frequent item set benchmarking process and data which I would like to time on other platforms.
Thanks for the response! I have never used Groovy script before, but I have added the part you showed me to my process. I get all the results as I think it is intended to be - compared to the Iris example, BUT it still doesn't want to write to either DB or CSV?
Any suggestions?
Thanks
BK
You need to deliver the results explicitly, like this.. Prior to execution the CSV writer cannot know that it will in fact get examples, so it posts an error. Just ignore it, as the process runs fine.
in order to apply Association Rules, you can use the Association Rules Applier. It will create on column for each suggested item of a conclusion. The value in the column will depend on the confidence. If the Item is suggested by more than rule, the confidence has to be aggregated, a parameter controls how this is done.
@Haddock,
you ever thought of building an extension containing all this pieces of code as a regular operator?
Greetings,
Sebastian
Sebastian, thanks to you too, I have managed to apply the association rules, but my biggest problem still is how to run the FP-Growth and Association rules PER customer and not across the whole bunch of customers. Currently my SQL uses where customer = 'xyz' and then I repeat this for where customer = 'abc', but that is such a long and dumb way of doing it. I want to run one process and get the Association rules PER customer. Any ideas? I explained this problem in detail in my other post on Association rules in this forum.
Cheers
BK
Greetings,
Sebastian