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 With a Particular Structure in Rapid Minner
moeinmohebbi
Member Posts: 2 Contributor I
In Rapid Minner , I need to generate association rules with particular structure , such as :
[temp=cold, wind=slow] --> [rain=true]
[temp=hot , wind=slow] --> [rain=false]
[temp=cold, wind=fast] --> [rain=true]
That prediction of raining should be a part of the conclusion. I have studied Documentation of RapidMinner, it suggests to use Regular Expression in FP-Growth node (must contain a field). But it doesn't include any samples for using regular expression in association rules. I need a sample for using regular expressions (regex) in association rules.
[temp=cold, wind=slow] --> [rain=true]
[temp=hot , wind=slow] --> [rain=false]
[temp=cold, wind=fast] --> [rain=true]
That prediction of raining should be a part of the conclusion. I have studied Documentation of RapidMinner, it suggests to use Regular Expression in FP-Growth node (must contain a field). But it doesn't include any samples for using regular expression in association rules. I need a sample for using regular expressions (regex) in association rules.
0
Answers
Bear in mind that FPGrowth grows the Frequent Pattern tree, from which another operator creates the rules, so using the regex filter on FPGrowth will only ensure that the rules contain the term, it will not ensure that the rules contain the term as a conclusion, check this out... This means that you put the regex on the frequent itemset search, as a simple string i.e "REGEX", and the rules will contain matching terms, in my example that means " make me rules that contain a1, however it gets discretized". Don't forget the quotes!
Going on to only use the rules whose conclusion matches the regex is actually quite tricky, a while back I posted a Groovy script to convert association rules to examples, that could help.
Good luck!
Shameless plug, if you want to see association rules done on news 24/7 check my link!
H
PS This machine has 5.3 ~ I think the operators work the same on 6.x
Thanks a lot
H