Hello,
I am using RM in java and I am generating associating rules using FPGrowth. My question is how to parse the resulting rules as in the Gui manner, I wan to get for each rule its support, its confidence, its lift....Is it possible to have the rules in a table as in the gui so as to seperate the premises and the conclusions.
Here is the XML file I used :
<operator name="Root" class="Process" expanded="yes">
<operator name="CSVExampleSource" class="CSVExampleSource">
<parameter key="filename" value="...attributes.csv"/>
</operator>
<operator name="Nominal2Binominal" class="Nominal2Binominal">
</operator>
<operator name="FPGrowth" class="FPGrowth">
<parameter key="min_support" value="0.1"/>
</operator>
<operator name="AssociationRuleGenerator" class="AssociationRuleGenerator">
<parameter key="min_confidence" value="0.7"/>
</operator>
</operator>
and here is the java code:
RapidMiner.init(false, true, true, true);
String modelFile = "operator.xml";
File processFile = new File(modelFile);
Process process;
try {
process = RapidMiner.readProcessFile(processFile);
IOContainer input = new IOContainer();
IOContainer output = process.run(input);
.....
With this code, I can see the generated rules in this manner:
[att1= val1] --> [att2= val2] (confidence: 1.000)
And I want to see the values of the support, lift... and not only the confidence.
Thanks in advance.